android listview display all available items without scroll with static header

前端 未结 12 655
一生所求
一生所求 2020-12-02 10:12

I\'m having a little difficulties while trying to get a certain layout to work: I want to have list. List does not have to be scrollable, but should be shown completely. But

12条回答
  •  半阙折子戏
    2020-12-02 10:46

    The solution I used is to replace ListView with LinearLayout. You can create all your items inside LinearLayout, they will all be displayed. So there's really no need to use ListView.

    LinearLayout list = (LinearLayout)findViewById(R.id.list_recycled_parts);
    for (int i=0; i

提交回复
热议问题