android set listview height dynamically

前端 未结 4 1338
情话喂你
情话喂你 2021-01-02 23:39

i have ExpandableListview inside ScrollView and i know that\'s not good but i had too, the only solution to show the whole list is by set its heigh

4条回答
  •  -上瘾入骨i
    2021-01-03 00:18

    you can set a variable in dimensions file for different screen sizes and then multiply it by the number of items of list you want to display.

提交回复
热议问题