由于ImageView默认是没焦点,不可点击的,所以要设置背景颜色,就必须要有如下代码:
1.如果组件只需要点击,那么就设置:
2.如果组件还需要选中,那么就再加一个设置:
由于ImageView默认是没焦点,不可点击的,所以要设置背景颜色,就必须要有如下代码:
1.如果组件只需要点击,那么就设置:
2.如果组件还需要选中,那么就再加一个设置:
Idea中双击选中整行问题解决
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M