scsjc Well-Known Member Licensed User Longtime User Feb 22, 2017 #1 Hello, Is possible change the colortext from current tab with a DSTabLayout and is possible put a icon with a text ??? thanks !!!
Hello, Is possible change the colortext from current tab with a DSTabLayout and is possible put a icon with a text ??? thanks !!!
Erel B4X founder Staff member Licensed User Longtime User Feb 22, 2017 #2 It is possible to do it with TabStripViewPager (not sure about DSTabLayout). Upvote 0
corwin42 Expert Licensed User Longtime User Feb 22, 2017 #3 scsjc said: Hello, Is possible change the colortext from current tab with a DSTabLayout and is possible put a icon with a text ??? Click to expand... You can use TabLayout.SetTabTextColors(NormalColor, SelectedColor) for setting the tab text colors. Using Text and Icon has the problem that icon and text will be displayed in one row and not with the text below the icon (at least that was the case when I last tried it. Maybe this is now changed in the support library?). To be totally free with the tabs you can create custom views for each tab. Unfortunately this is a bit complicated. See the TabsWithCustomViewExample2_0.zip of the DesignSupport library. Upvote 0
scsjc said: Hello, Is possible change the colortext from current tab with a DSTabLayout and is possible put a icon with a text ??? Click to expand... You can use TabLayout.SetTabTextColors(NormalColor, SelectedColor) for setting the tab text colors. Using Text and Icon has the problem that icon and text will be displayed in one row and not with the text below the icon (at least that was the case when I last tried it. Maybe this is now changed in the support library?). To be totally free with the tabs you can create custom views for each tab. Unfortunately this is a bit complicated. See the TabsWithCustomViewExample2_0.zip of the DesignSupport library.