有没有办法检查位图是否相同?有人可以帮我吗?
android bitmap
对不起,我的英语不好.
我有一个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 ×2
bitmap ×1
textview ×1