【文件属性】:
文件名称:Android 自定义按钮点击事件和长按事件对比
文件大小:48KB
文件格式:PDF
更新时间:2021-01-04 06:07:04
id seekbar 事件
Android 自定义按钮点击事件和长按事件对比
一个按钮同时实现点击和长按事件,有时候会有冲突,我们针对这一现象来自定义按钮来区分点击和长按事件
1.xml中
<LinearLayout xmlns:android=http://schemas.android.com/apk/res/android
xmlns:tools=http://schemas.android.com/tools
android:layout_width=match_parent
android:layout_height=match_parent
tools:context=