Width of clickable area in ListView w/ onListItemClick

后端 未结 1 2002
既然无缘
既然无缘 2021-01-11 19:48

I\'m trying to get my list items in a ListView clickable. At the moment they are clickable (see my screenshot) but they\'re only clickable within the rectangle the text tak

1条回答
  •  一个人的身影
    2021-01-11 20:27

    The TextView in your list.xml needs to be set to fill_parent. The selection will then fit the width of the parent ListView.

          android:layout_width="wrap_content"
    

    0 讨论(0)
提交回复
热议问题