I want to add GridView inside the ExpandableListView in Android. I found a tutorial inside the Extended ListView of a GridView but it does not provide the addition / addition of GridView in Extensions / Envelopes.
Here's the link: In this tutorial, the problem is included in the tutorial when someone is successful in putting GridView ExpandableListView. But my problem is to take such a layout first. Who has not been given this link has not found me anywhere to add GridView to the ExpandableListView?
Actually I want to create this type of view:
####### ## ExpandableListView ######### ###> gt;> gt; & Gt; & Gt; & Gt; & Gt; & Gt; Grid view & gt; & Gt; & Gt; & Gt; & Gt; & Gt; ; & Gt; & Gt; & Gt; & Gt; & Gt; & Gt; & Gt; & Gt; & Gt; # Column # 1 # # Column # 2 Item # 2 Item # 3 Item # # Item # 2 # Item # 3 Item # Item # Item # 2 Item # 3 Item # Item 2 # Item 2 # # Item 3 & gt; >>> >>> & Gt; GridView >>>>>>>>>>>>>> & Gt; & Gt; # Column # 1 # # Column # 2 Item # 2 Item # 3 Item # # Item # 2 # Item # 3 Item # Item # Item # 2 Item # 3 Item # Item 2 # Item 2 # # Item 3 & gt; >>> >>> & Gt; GridView >>>>>>>>>>>>>> & Gt; & Gt; # Column # 1 # # Column # 2 Item # 2 Item # 3 Item # # Item # 2 # Item # 3 Item # Item # Item # 2 Item # 3 Item # Item 2 # Item 2 # # Item 3 & gt; >>> >>> & Gt; GridView >>>>>>>>>>>>>> & Gt; & Gt; # Column # 1 # # Column # 2 Item # 2 Item # 3 Item # # Item # 2 # Item # 3 Item # Item # Item # 2 Item # 3 Item # Item 2 # Item 2 # # Item 3
I got the answer. Just create LIVE-WV, which will be a linear target in the form of her child's items. And each child will have other Android layout items in linear timer such as image view, IMAGA button, textview, button, etc.
& lt; ListView & gt; & Lt; LinearLayout & gt; & Lt; ChildItem1 & gt; & Lt; ChildItem1 & gt; & Lt; ChildItem1 & gt; & Lt; ChildItem1 & gt; & Lt; / LinearLayout & gt; & Lt; / ListView & gt; You can just follow this example.
No comments:
Post a Comment