-3

I want the output as it is shown in this gif

enter image description here

I implemented tabs as mentioned in this tutorial https://guides.codepath.com/android/ViewPager-with-FragmentPagerAdapter . I came across this tutorial https://github.com/ogaclejapan/SmartTabLayout/ , but it has a copyright and licensing on it. But I would like to know if the same could be achieved using in built android functionalities

sofs1
  • 3,834
  • 11
  • 51
  • 89
  • @Charuka The question is how to programmatically (Writing java code and using android framework) to achieve something like above. – sofs1 Jan 01 '17 at 06:50

1 Answers1

2

This seems fairly easy. You need two set's of each icon. One grey and one white.

When you select an item (TabItem) , change the icon of tab to the white one, and change the icon of last selected tab to grey one.

Kartik Sharma
  • 723
  • 8
  • 19