Closed vipulyaara closed 8 years ago
Hi, @vipulyaara
By creating a CustomLayout, you may be able to control if override the setSelected
method.
For example,
public class CustomLayout extends FrameLayout {
TextView textView;
@Override
public void setSelected(boolean isSelected) {
textView.setVisibility(...);
}
}
SmartTabLayout calls the View#setSelected
method of the selected TabView.
Is my understanding correct? I'm sorry I was wrong meaning because never used Tinder
Thanks. Amazing job!
Thanks to the flexibility of smartTabLayout, I have experimented with icons and text in tabs successfully. I am using both text and icons and using TabProvider to implement it. But I am not sure how to show text for the tab item when it is seletced and show icons for rest. So basically, I want to set visibility of text to visible only for the item that is selected. (Kind of like Tinder's home tab)