I have the same problem with title icons for multiple topics.
The only way is to create headers in the code ...
@Override public void onBuildHeaders(List<Header> target) { final TypedArray a = getTheme().obtainStyledAttributes(R.style.<YourTheme>, new int[] = { R.attr.icon1, R.attr.icon2}); final Header h1 = new Header(); h1.title = "title 1"; h1.iconRes = a.getResourceId(0, 0); h1.fragment = "<your_fragment_path>"; h1.fragmentArguments = new Bundle(); h1.fragmentArguments.putString("id", "fragment1"); final Header h2 = new Header(); h2.title = "title 2"; h2.iconRes = a.getResourceId(1, 0); h2.fragment = "<your_fragment_path>"; h2.fragmentArguments = new Bundle(); h2.fragmentArguments.putString("id", "fragment2"); target.add(h1); target.add(h2); a.recycle(); }
Nevro source share