I'm trying to create a ListView that will consist of two types of elements: Strings and a GridView.
I.e. putting both Strings and a GridView inside one single ListView.
The layout should look something like this:
- String Item 1.1
- String Item 1.2
- String Item 1.3
- String Item 1.4
-
GridView Item 1 GridView Item 2
GridView Item 3 GridView Item 4 - String Item 2.1
- String Item 2.2
- String Item 2.3
- String Item 2.4
Is there any way to do this?
As per now I can only show the first item in the GridView, and it acts just as a regular String element in the ListView.
The code can be viewed here:
- CustomListViewActivity.java
- SectionAdapter.java
- main.xml
- header_row.xml
- simple_list_row.xml
- grid_list_row.xml
Any help is appreciated :)