I think you might be able to achieve a solution to your problem using one of the following libraries:
Color line below title in PagerTitleStrip
-
30-06-2022 - |
Question
I have implemented a FragmentPagerAdapter of 4-pages and a PagerTitleStrip with the titles of each of them. I wanted to know if there are any attributes to put a color line below title to highlight the one selected at the time.
I've looked PagerTitleStrip attributes but I have not found anything for this purpose.
Thank you very much.
Solution
OTHER TIPS
Put a new line at the top of all 4 layout and make it invisible. When certain page come. OnPageSelected make this line visible.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow