1、listView中一定要加上android:focusable="true"

2、对应的listView的item_layout切记千万不要在TextView中加上android:focusable="true"

3、在代码adapter中,要滚动textview添加setSelected(true)

1、listView中一定要加上android:focusable="true"
2、对应的listView的item_layout切记千万不要在TextView中加上android:focusable="true"
3、在代码adapter中,要滚动textview添加setSelected(true)
本文标题:安卓之 (解决方法)在listview中的textview的滚动
本文链接:https://www.haomeiwen.com/subject/hmtdettx.html
网友评论