tag:blogger.com,1999:blog-5478652748522272780.post1507814161863029147..comments2019-03-17T01:30:08.674-07:00Comments on CodeLog: Material design tab in xamarin android Suchith Madavunoreply@blogger.comBlogger6125tag:blogger.com,1999:blog-5478652748522272780.post-11914308270634106392016-10-02T03:44:06.214-07:002016-10-02T03:44:06.214-07:00Also because i have a viewpager(for the tabs) insi...Also because i have a viewpager(for the tabs) inside a viewpager(the slider on the 1st tab) im trying to disable tab swiping when i swipe on slider.<br /><br />I have find out that in order to do what i want i have to override on Parrent ViewPager this:<br /><br />@Override<br />protected boolean canScroll(View v, boolean checkV, int dx, int x, int y) {<br /> if (v != this &amp;&amp; v instanceof ViewPager) {<br /> return true;<br /> }<br /> return super.canScroll(v, checkV, dx, x, y);<br />}<br />Im not sure how to do this. I have create this class<br /><br />public class ExternalViewPager : Android.Support.V4.View.ViewPager<br /> {<br /> public ExternalViewPager(Context context, IAttributeSet attrs) : base(context, attrs)<br /> { }<br /> public ExternalViewPager(Context context) : base(context)<br /> { }<br /> protected override bool CanScroll(View vValue, bool checkV, int dx, int xValue, int yValue)<br /> {<br /> if (vValue != this &amp;&amp; vValue.GetType() == typeof(ViewPager))<br /> {<br /> return true;<br /> }<br /> return base.CanScroll(vValue, checkV, dx, xValue, yValue);<br /> }<br /><br /> }<br />And im trying to use it like this:<br /><br />var profileviewPager = (InternalViewPager)FindViewById (Resource.Id.ProfileViewpager);<br /><br />or<br /><br />var profileviewPager = FindViewById (Resource.Id.ProfileViewpager);<br /><br />But i get errors, What i have to do? thanksXristoforos Drososhttps://www.blogger.com/profile/15308266252276649648noreply@blogger.comtag:blogger.com,1999:blog-5478652748522272780.post-33664035154765207762016-10-02T03:38:42.774-07:002016-10-02T03:38:42.774-07:00Hello friend, first thanks for your amazing job wi...Hello friend, first thanks for your amazing job with xamarin android tutorials.<br />Im trying to implement something with no luck.<br />I have animage slider in the 1st tab and i want every time i swype of the image slider the other tabs fragments to be updated.<br /><br />I have try to call tabhost.invalidate() but i didnt see any changes, do you have any solution to that?<br />In stuckoverflow im finding some solutions but are from java and im unable to reproduce<br />ThanksXristoforos Drososhttps://www.blogger.com/profile/15308266252276649648noreply@blogger.comtag:blogger.com,1999:blog-5478652748522272780.post-44843422073567345782016-09-05T04:47:54.145-07:002016-09-05T04:47:54.145-07:00You can explore the github link https://github.com...You can explore the github link https://github.com/suchithm/MaterialDesignTab to find the complete code of fragments and setting iconsSuchith Madavuhttps://www.blogger.com/profile/13334981347260075605noreply@blogger.comtag:blogger.com,1999:blog-5478652748522272780.post-64169243322265402422016-07-11T17:04:53.724-07:002016-07-11T17:04:53.724-07:00Also how to add Toolbar in FragmentActivity?Also how to add Toolbar in FragmentActivity?Jonney Shihhttps://www.blogger.com/profile/00050392990580069618noreply@blogger.comtag:blogger.com,1999:blog-5478652748522272780.post-55416667188035223952016-07-11T17:02:08.456-07:002016-07-11T17:02:08.456-07:00Why did you stop?! continue please, how to add fra...Why did you stop?! continue please, how to add fragments? why all tutorials are missing:(Jonney Shihhttps://www.blogger.com/profile/00050392990580069618noreply@blogger.comtag:blogger.com,1999:blog-5478652748522272780.post-57964500329311795322016-07-06T07:04:53.940-07:002016-07-06T07:04:53.940-07:00How to set icon for tab?How to set icon for tab?Unknownhttps://www.blogger.com/profile/12019586509340517311noreply@blogger.com