Defines options to change the order of the buttons on the Navbar. This also migrates the Navbar's settings page to catalyst, as it would've needed to be done anyway. This notably excludes the assistant setting present on the page, as to our understanding it's not intended to be used anymore, and is usually disabled. NO_IFTTT= Change to SystemNavigationGestureSettings does not conflict with SystemNavigationGestureScreen Flag: android.view.accessibility.navbar_flip_order_option Bug: 410601652 Test: launch page manually Test: atest com.android.settings.gestures Change-Id: I2cf5f14f31ac8c22f2620412a912a8d43438a381
106 lines
4.7 KiB
XML
106 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2025 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.
|
|
-->
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/radioButtonLayout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
|
android:padding="16dp">
|
|
|
|
<LinearLayout
|
|
android:id="@android:id/widget_frame"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
settings:layout_constraintBottom_toTopOf="@+id/icon_preview_frame"
|
|
settings:layout_constraintHorizontal_chainStyle="packed"
|
|
settings:layout_constraintStart_toStartOf="parent"
|
|
settings:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/order_label"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:textAppearance="?android:attr/textAppearanceListItem"
|
|
settings:layout_constraintBottom_toBottomOf="@android:id/widget_frame"
|
|
settings:layout_constraintStart_toEndOf="@android:id/widget_frame"
|
|
settings:layout_constraintEnd_toEndOf="parent"
|
|
settings:layout_constraintTop_toTopOf="@android:id/widget_frame" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/icon_preview_frame"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:background="@drawable/button_item_accent_background"
|
|
android:screenReaderFocusable="true"
|
|
android:padding="32dp"
|
|
android:paddingStart="64dp"
|
|
android:paddingEnd="64dp"
|
|
settings:layout_constraintBottom_toBottomOf="parent"
|
|
settings:layout_constraintEnd_toEndOf="parent"
|
|
settings:layout_constraintStart_toStartOf="parent"
|
|
settings:layout_constraintTop_toBottomOf="@android:id/widget_frame">
|
|
|
|
<ImageView
|
|
android:id="@+id/icon_start"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_sysbar_back"
|
|
android:contentDescription="@string/navbar_back_button"
|
|
android:screenReaderFocusable="false"
|
|
android:layout_marginHorizontal="40dp"
|
|
settings:layout_constraintBottom_toBottomOf="parent"
|
|
settings:layout_constraintEnd_toStartOf="@+id/icon_center"
|
|
settings:layout_constraintStart_toStartOf="parent"
|
|
settings:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/icon_center"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_sysbar_back"
|
|
android:contentDescription="@string/navbar_back_button"
|
|
android:screenReaderFocusable="false"
|
|
android:layout_marginHorizontal="40dp"
|
|
settings:layout_constraintBottom_toBottomOf="parent"
|
|
settings:layout_constraintEnd_toStartOf="@+id/icon_end"
|
|
settings:layout_constraintStart_toEndOf="@+id/icon_start"
|
|
settings:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/icon_end"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_sysbar_back"
|
|
android:contentDescription="@string/navbar_back_button"
|
|
android:screenReaderFocusable="false"
|
|
android:layout_marginHorizontal="40dp"
|
|
settings:layout_constraintBottom_toBottomOf="parent"
|
|
settings:layout_constraintEnd_toEndOf="parent"
|
|
settings:layout_constraintStart_toEndOf="@+id/icon_center"
|
|
settings:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |