Files
app_Settings/res/layout/pointer_icon_fill_style_layout.xml
Pat Manning b50acbfeea Update pointer fill option backgrounds for color contrast and touch
target size.

Fix: 374885995
Fix: 374886964
Test: Manual.
Flag: EXEMPT Bugfix.
Change-Id: Ibf09bfae4a93868ac3605748854ccaaa10847eb6
2024-12-18 14:56:45 +00:00

173 lines
7.6 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:orientation="vertical"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
android:paddingStart="?android:attr/listPreferredItemPaddingStart">
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/pointer_fill_style_circle_padding"
android:text="@string/pointer_fill_style"
android:textSize="14sp"
android:textColor="@androidprv:color/materialColorPrimary"
android:textAlignment="viewStart"
android:fontWeight="500" />
<LinearLayout
android:id="@+id/button_holder"
android:layout_width="@dimen/pointer_fill_container_max_width"
android:layout_height="@dimen/pointer_fill_container_height"
android:layout_marginBottom="@dimen/pointer_fill_style_circle_padding"
android:layout_marginTop="@dimen/pointer_fill_style_circle_padding"
android:gravity="center"
android:paddingTop="@dimen/pointer_fill_style_container_padding"
android:paddingBottom="@dimen/pointer_fill_style_container_padding">
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:focusable="false"
android:clickable="false"
android:importantForAccessibility="no"
android:layout_weight="1" />
<ImageView
android:id="@+id/button_black"
android:layout_width="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:layout_weight="0"
android:layout_height="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:adjustViewBounds="true"
android:maxWidth="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:contentDescription="@string/pointer_fill_style_black_button"
android:scaleType="center"
android:src="@drawable/pointer_icon_fill_color_background" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:focusable="false"
android:clickable="false"
android:importantForAccessibility="no"
android:layout_weight="1" />
<ImageView
android:id="@+id/button_green"
android:layout_width="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:layout_weight="0"
android:layout_height="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:adjustViewBounds="true"
android:maxWidth="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:contentDescription="@string/pointer_fill_style_green_button"
android:scaleType="center"
android:src="@drawable/pointer_icon_fill_color_background" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:focusable="false"
android:clickable="false"
android:importantForAccessibility="no"
android:layout_weight="1" />
<ImageView
android:id="@+id/button_red"
android:layout_width="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:layout_weight="0"
android:layout_height="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:adjustViewBounds="true"
android:maxWidth="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:contentDescription="@string/pointer_fill_style_red_button"
android:scaleType="center"
android:src="@drawable/pointer_icon_fill_color_background" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:focusable="false"
android:clickable="false"
android:importantForAccessibility="no"
android:layout_weight="1" />
<ImageView
android:id="@+id/button_pink"
android:layout_width="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:layout_weight="0"
android:layout_height="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:adjustViewBounds="true"
android:maxWidth="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:contentDescription="@string/pointer_fill_style_pink_button"
android:scaleType="center"
android:src="@drawable/pointer_icon_fill_color_background" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:focusable="false"
android:clickable="false"
android:importantForAccessibility="no"
android:layout_weight="1" />
<ImageView
android:id="@+id/button_blue"
android:layout_width="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:layout_weight="0"
android:layout_height="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:adjustViewBounds="true"
android:maxWidth="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:contentDescription="@string/pointer_fill_style_blue_button"
android:scaleType="center"
android:src="@drawable/pointer_icon_fill_color_background" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:focusable="false"
android:clickable="false"
android:importantForAccessibility="no"
android:layout_weight="1" />
<ImageView
android:id="@+id/button_purple"
android:layout_width="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:layout_weight="0"
android:layout_height="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:adjustViewBounds="true"
android:maxWidth="@dimen/pointer_fill_style_circle_background_outer_diameter"
android:contentDescription="@string/pointer_fill_style_purple_button"
android:scaleType="center"
android:src="@drawable/pointer_icon_fill_color_background" />
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:focusable="false"
android:clickable="false"
android:importantForAccessibility="no"
android:layout_weight="1" />
</LinearLayout>
</LinearLayout>