开发者

how to change image when checking and unchecking the checked textview in android?

开发者 https://www.devze.com 2023-03-19 16:58 出处:网络
I am 开发者_JS百科implementing the listView containing checked TextViews. Problem is when I check one list item one image should be display and when I unchecked another image should display.U could us

I am 开发者_JS百科implementing the listView containing checked TextViews.

Problem is when I check one list item one image should be display and when I unchecked another image should display.


U could use a checkbox in listViwe and customize checkbox to display wat image when checked and unchecked.Try this:android:button="@drawable/selecter"..Here selecter s an xml file where u can say whivh image to be displayed at different.

0

精彩评论

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