I am using the PagerSlidingTabStrip in myapp .In this titles are setting fine but images are not setting tabstrip .I searched alot in google but didn't get the correct result.But this is very important for me.
Please see screenshot below
Advance thanks to all.
I ever writed a project about this topic. Here is my project, take a look, maybe you will be inspired.
Well it wasn't hard looking at the code of
SlidingTabLayout
I have commented few lines of code. The code is self explanatory i guess.Well you can customize it according to your needs.
SlidingTabStrip.java
activity_main.xml
tab_indicator.xml
In Activity
I was also interested doing same as yours, Finally I did it for you.
Import 'SlidingTabsBasic' demo from android-sdk sample or download it from google android samples from Here.
1.create custom_tab.xml with only a TextView 2.In 'SlidingTabsBasicFragment.class' do below changes:
-add this code in onViewCreated()
-in SamplePagerAdapter class, replace this function code
If you have done it properly, You will get something like this:
Hope this will help!