Add filterTouchesWhenObscured to prevent Touch-Event Hijacking

This commit is contained in:
Dominik Schürmann 2014-10-01 10:51:02 +02:00
parent 84fcbba74d
commit f841203f5f
2 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,10 @@
android:layout_height="match_parent"
android:layout_weight="1">
<!--
android:filterTouchesWhenObscured="true" to prevent Touch-Event Hijacking
https://blog.lookout.com/blog/2010/12/09/android-touch-event-hijacking/
-->
<TextView
android:id="@+id/actionbar_cancel_text"
android:layout_width="wrap_content"
@ -30,6 +34,7 @@
android:drawablePadding="8dp"
android:gravity="center_vertical"
android:paddingRight="20dp"
android:filterTouchesWhenObscured="true"
style="@style/Widget.AppCompat.Light.ActionBar.TabText"
android:text="Cancel (set in-code!)" />

View File

@ -21,6 +21,10 @@
android:layout_height="match_parent"
android:layout_weight="1">
<!--
android:filterTouchesWhenObscured="true" to prevent Touch-Event Hijacking
https://blog.lookout.com/blog/2010/12/09/android-touch-event-hijacking/
-->
<TextView
android:id="@+id/actionbar_done_text"
android:layout_width="wrap_content"
@ -30,6 +34,7 @@
android:drawablePadding="8dp"
android:gravity="center_vertical"
android:paddingRight="20dp"
android:filterTouchesWhenObscured="true"
style="@style/Widget.AppCompat.Light.ActionBar.TabText"
android:text="Done (set in-code!)" />