Open dieuhd opened 9 years ago
Hi in your adapter you must override getPageIconResId, below an example.
private int[] ICONS; //This will hold your icons resource ids
public YourAdapter(FragmentManager fm, Context context) { super(fm); this.context = context; TITLES = new String[]{context.getResources().getString(R.string.string_feed), ICONS = new int[]{R.mipmap.areousrceid}; }
@Override public int getPageIconResId(int i) { return ICONS[i]; }
Have in mind that this will substitute any string based titles to the icon ones.
The current version com.astuetz:pagerslidingtabstrip:1.0.1 has no getPageIconResId
even PagerSlidingTabStrip.IconTabProvider
I want to use IconTitleProvider but not working Please help me