The NearestTouchFrame spanned the entire nav bar that took any tap to hit the nearest button such as the back button. Reducing it prevents taps from the edge of the nav bar. Related: ag/4179853 Change-Id: I25a73cc995ed8d479ca9d5da85ec8a7cb629769d Fixes: 112298917 Test: tap the left side of the nav bar (cherry picked from commit 9e90f24dc5dc2574700c46288617bea18b28bf29)
55 lines
2.1 KiB
XML
55 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2016 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<FrameLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:systemui="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="@dimen/rounded_corner_content_padding"
|
|
android:layout_marginEnd="@dimen/rounded_corner_content_padding"
|
|
android:paddingStart="@dimen/nav_content_padding"
|
|
android:paddingEnd="@dimen/nav_content_padding">
|
|
|
|
<com.android.systemui.statusbar.phone.NearestTouchFrame
|
|
android:id="@+id/nav_buttons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ends_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:clipToPadding="false"
|
|
android:clipChildren="false" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/center_group"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:clipToPadding="false"
|
|
android:clipChildren="false" />
|
|
|
|
</com.android.systemui.statusbar.phone.NearestTouchFrame>
|
|
|
|
</FrameLayout>
|