How to get active tab position in android material -


how active tab position in material tabs?
1 me.

try

tablayout tablayout = (tablayout) findviewbyid(r.id.tabs); tablayout.getselectedtabposition(); 

Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

file - Python: AttributeError: 'str' object has no attribute 'readlines' -

c# - Get the Class name in a class with atribute inside a attribute method -