android - GridView in ListView OR something works same -


what want make android layout looks :

example image

i thought out several options. (total lenth of list 80 rows.)

  1. listview has textview , gridview (i tried, gridview didn't stretched right size.)
  2. expandablelist/gridview https://stackoverflow.com/a/4536955/358813
  3. scrollview has linearlayout has textview , gridview.
  4. 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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -