In every activity in my app, the users are able to press two button at the same time. How can I prevent they to do this?
you can disable the multi touch in the screen...which can allow only single touch by
place this line button viewGroup layout
android:splitMotionEvents="false"
<LinearLayout
android:id="@+id/list_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:splitMotionEvents="false" >
<Button
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:scrollbars="none" >
</Button>
<Button
android:id="@+id/listView2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:scrollbars="none" >
</Button>
</LinearLayout>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments