How To Pass Arraylist Of Objects To Populate Each Section Heading Text And Its Content?
I'am using StickyGridHeaders for GridView with sections. this library is using R.array.countries to populate GridView with provided data and extracting first letter from passed str
Solution 1:
I downloaded it and checked to solve your problem. so here is solution.
First of all that project is replaced to SuperSlim it is showing on your given link itself, so get superslim.
Then follow the example in that project to achieve it. In that example there is a file named CountryNamesAdapter.java
open it, in the 37th line there i found this
finalString[] countryNames = context.getResources().getStringArray(R.array.country_names);
which means the data is loaded from Array resource
replace it with
your data - convert your arraylist to string array and assign it like this
finalString[] countryNames = myData.
Post a Comment for "How To Pass Arraylist Of Objects To Populate Each Section Heading Text And Its Content?"