开发者

how to display text on list view when click on the list view in android

开发者 https://www.devze.com 2023-03-04 15:26 出处:网络
i have list view which is generated from adapter it contain two images one when it is in normal form and one when the list view is click. my problem is that when click on list view the image will chan

i have list view which is generated from adapter it contain two images one when it is in normal form and one when the list view is click. my problem is that when click on list view the image will change but the text开发者_如何学运维 written on list view in normal form will not display on new image please help. thanks


You need to set attr_android:duplicateParentState to true so your TextView receive state changes from it's parent.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号