SpaceTabLayout icon indicating copy to clipboard operation
SpaceTabLayout copied to clipboard

Change Tab position Programmatically

Open shishram opened this issue 7 years ago • 7 comments

I want to change the tabs from an Activity. like in XML we have starting_position and that opens whichever position we want spaceTabLayout to be selected by-default, Can I implement this programmatically.

shishram avatar Mar 16 '17 08:03 shishram

Not yet but will add that.

On Mar 16, 2017 10:45 AM, "shishram" [email protected] wrote:

I want to change the tabs from an Activity. like in XML we have starting_position and that opens whichever position we want spaceTabLayout to be selected by-default, Can I implement this programmatically.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/thelong1EU/SpaceTabLayout/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/AI2nVjpd-wOGBr4Z6NsJYsZWAoesAcRBks5rmPbDgaJpZM4Me_dh .

long1eu avatar Mar 16 '17 09:03 long1eu

@long1eu Please add that functionality. your library is very good, it is just lacking in that functionality.

ahmadmiraj avatar Sep 09 '18 21:09 ahmadmiraj

Just find the solution @long1eu @shishram and it is working perfectly okay for me

void selectPage(int pageIndex){ // your viewPager viewPager.setCurrentItem(pageIndex); }

ahmadmiraj avatar Sep 09 '18 21:09 ahmadmiraj

You can make a pull request. This library is not maintained.

long1eu avatar Sep 10 '18 04:09 long1eu

@ahmadmiraj can you make the tab on the page ? not below ? thank you

iwebnetid avatar Dec 28 '18 09:12 iwebnetid

@iwebnetid what do you mean by on the page ??

ahmadmiraj avatar Dec 28 '18 10:12 ahmadmiraj

Just find the solution @long1eu @shishram and it is working perfectly okay for me

void selectPage(int pageIndex){ // your viewPager viewPager.setCurrentItem(pageIndex); }

Superb!

prit29 avatar Dec 24 '19 18:12 prit29