对不起,我的英语不好.
我有一个TextView,它有一个背景图像资源.但是当我点击这个TextView时,Android需要将当前背景图像资源与可绘制文件夹中的R.drawable.bg_images之一进行比较.
bg_image_1 bg_image_2
如果TextView setBackgroundImageResource是bg_image_1并且我单击它,则将TextView背景图像切换为gb_image_2资源.
怎么样?
谢谢
android textview
android ×1
textview ×1