long1eu / SpaceTabLayout

Not actively maintained, but PR are welcomed
1.6k stars 265 forks source link

Change Tab position Programmatically #13

Open shishram opened 7 years ago

shishram commented 7 years ago

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.

long1eu commented 7 years ago

Not yet but will add that.

On Mar 16, 2017 10:45 AM, "shishram" notifications@github.com 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 .

ahmadmiraj commented 6 years ago

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

ahmadmiraj commented 6 years ago

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

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

long1eu commented 6 years ago

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

iwebnetid commented 5 years ago

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

ahmadmiraj commented 5 years ago

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

prit29 commented 4 years ago

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

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

Superb!