Android: Use FrameLayout as root for notouch emulation layout
When inflating this layout, the layout inflater doesn't expect a View and rather a descendant of ViewGroup. This resulted in a crash which is resolved by using a FrameLayout instead.
This commit is contained in:
parent
db679ab620
commit
ff38fef2e4
|
@ -1,4 +1,4 @@
|
|||
<View
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layout_emulation"
|
||||
android:layout_height="match_parent"
|
||||
|
@ -11,4 +11,4 @@
|
|||
android:focusable="false"
|
||||
android:focusableInTouchMode="false" />
|
||||
|
||||
</View>
|
||||
</FrameLayout>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<View
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layout_emulation"
|
||||
android:layout_height="match_parent"
|
||||
|
@ -11,4 +11,4 @@
|
|||
android:focusable="false"
|
||||
android:focusableInTouchMode="false" />
|
||||
|
||||
</View>
|
||||
</FrameLayout>
|
||||
|
|
Loading…
Reference in New Issue