Menu ime button takes nav button width to show recents button for tablets
Menu ime button was pushing the recents button out of screen because of the order of the nav layout (where right side was before the recents button) and menu ime button took full width (match parent). Fixed with a fixed width for menu ime button to show the recents button on nav bar for tablets (screen density smaller than ~250). Change-Id: I61a0206e40b7a69d52db4a97a1b76767ba752f85 Fixes: 77913318 Test: 'adb shell wm density 240' on phone
This commit is contained in:
@@ -17,13 +17,13 @@
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:systemui="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/menu_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="@dimen/navigation_key_width"
|
||||
android:layout_height="match_parent"
|
||||
android:importantForAccessibility="no"
|
||||
>
|
||||
<!-- Use width & height=match_parent for parent FrameLayout and buttons because they are placed
|
||||
inside a view that has a size controlled by weight. Ensure weight is large enough to support
|
||||
icon size. -->
|
||||
<!-- Use nav button width & height=match_parent for parent FrameLayout and buttons because they
|
||||
are placed inside a view that has a size controlled by weight. Ensure weight is large enough to
|
||||
support icon size. -->
|
||||
|
||||
<com.android.systemui.statusbar.policy.KeyButtonView
|
||||
android:id="@+id/menu"
|
||||
|
||||
Reference in New Issue
Block a user