android - GridView in ListView OR something works same -
what want make android layout looks :
i thought out several options. (total lenth of list 80 rows.)
- listview has textview , gridview (i tried, gridview didn't stretched right size.)
- expandablelist/gridview https://stackoverflow.com/a/4536955/358813
- scrollview has linearlayout has textview , gridview.
- calculate gridview height using array source , set layoutparams.
expandablegridview looks good, there a comment under similar question. app uses pretty bitmaps, i'm worried comment :
this solution not memory efficient , app crash if cells images.
and expandablelistview using hack. it's not big problem, makes me not comfortable.
calculating height seems work, didn't try. should solve problem way?
is there solution not using hack(or being able recyle view)? i'm familiar html&css, can't understand why stuff not easy.. @ first thought not difficult because looks similiar expandablelistview.
you can put horizontal listview inside vertical listview. think way facebook shows photos in it's mobile apps. way won't breaking standard behavior of listview , won't need hacking.
Comments
Post a Comment