Screenshots and mocks are linked in the bug comments. Bug: 393569303 Test: manually verified on test device Flag: com.android.server.accessibility.enable_mouse_key_enhancement Change-Id: Ib5c046e33b842bca39767dfbad9f3c19dde02580
117 lines
5.3 KiB
XML
117 lines
5.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2024 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:androidprv="http://schemas.android.com/apk/prv/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/mouse_keys_info_icon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start|top"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="12dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="8dp"
|
|
android:visibility="gone"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@+id/title_mouse_keys_image_recycler_list">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/settingslib_ic_info_outline_24"
|
|
android:tint="@color/settingslib_materialColorOnSurfaceVariant"
|
|
android:importantForAccessibility="no"/>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/title_mouse_keys_image_recycler_list"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/mouse_keys_primary_keys_image_list_title"
|
|
android:textSize="16sp"
|
|
android:textColor="@androidprv:color/materialColorPrimary"
|
|
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
|
android:paddingHorizontal="16dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:visibility="gone"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/mouse_keys_info_icon"
|
|
app:layout_constraintBottom_toTopOf="@+id/mouse_keys_image_recycler_list"/>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/mouse_keys_image_recycler_list"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="true"
|
|
android:nestedScrollingEnabled="false"
|
|
android:padding="12dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/title_mouse_keys_image_recycler_list"
|
|
app:layout_constraintBottom_toTopOf="@+id/title_mouse_keys_numpad_image_recycler_list"/>
|
|
|
|
<TextView
|
|
android:id="@+id/title_mouse_keys_numpad_image_recycler_list"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/mouse_keys_numpad_keys_image_list_title"
|
|
android:textSize="16sp"
|
|
android:textColor="@androidprv:color/materialColorPrimary"
|
|
android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
|
|
android:paddingHorizontal="16dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:visibility="gone"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/mouse_keys_image_recycler_list"
|
|
app:layout_constraintBottom_toTopOf="@+id/summary_mouse_keys_numpad_image_recycler_list"/>
|
|
|
|
<TextView
|
|
android:id="@+id/summary_mouse_keys_numpad_image_recycler_list"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/mouse_keys_numpad_keys_image_list_summary"
|
|
android:textSize="14sp"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:paddingHorizontal="16dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:visibility="gone"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/title_mouse_keys_numpad_image_recycler_list"
|
|
app:layout_constraintBottom_toTopOf="@+id/mouse_keys_numpad_image_recycler_list"/>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/mouse_keys_numpad_image_recycler_list"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="true"
|
|
android:nestedScrollingEnabled="false"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/mouse_keys_image_recycler_list"
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |