TextView添加Onclick点击无效没反应解决办法
16lz
2021-12-04
再给TextView添加Onclick事件时,发现点击无效没反应,原因是还需要配置android:clickable="true"。
<TextView android:id="@id/group" style="@style/BottomTab" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:clickable="true" android:onClick="Tuan" android:drawableTop="@drawable/ic_menu_deal_selector" android:text="@string/deal" />
更多相关文章
- java.lang.ClassCastException: android.app.Application cannot
- ListView滑动变黑的处理
- Android(安卓)Studio + NDK 之 Hello Word
- Android中SDK安装出错Failed to fectch URl https://dl-ssl.goog
- Android添加单元测试的方法与步骤
- 【转载】android仿QQ列表的效果实现
- Android(安卓)通过程序添加桌面快捷方式
- Android使用jjdxm-ijkplayer播放视频
- Android个人手机通讯录开发详解