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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -