简体   繁体   中英

Dynamically Change TextView Background color in onclicklistener in android

如果我们单击Listview中的任何Textview,则背景颜色必须更改并onclick释放,因此在android中必须更改为透明颜色。如何在android中的Textview的onclicklistener中实现此目的。

将文本视图的背景设置为状态列表

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM