How to set particular Tab and get Current Tab while using TabLayout of android.support.design.widget.TabLayout; -
i'm referring this example implement tablayout , i'm done it. problem per app requirement want jump perticular tab activity.and perform action on current tab. can tell me how get current tab , set particular tab.
this how solved it:
tablayout.gettabat(currentitem).getcustomview().setselected(true); mviewpager.setcurrentitem(currentitem);
Comments
Post a Comment