• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright 2024 The Android Open Source Project
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:gravity="center_vertical"
23    android:minHeight="?android:attr/listPreferredItemHeightSmall"
24    android:orientation="vertical"
25    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
26    android:paddingStart="?android:attr/listPreferredItemPaddingStart">
27
28    <TextView
29        android:id="@+id/title"
30        android:layout_width="match_parent"
31        android:layout_height="wrap_content"
32        android:layout_marginTop="@dimen/pointer_fill_style_circle_padding"
33        android:text="@string/pointer_fill_style"
34        android:textSize="14sp"
35        android:textColor="@androidprv:color/materialColorPrimary"
36        android:textAlignment="viewStart"
37        android:fontWeight="500" />
38
39    <LinearLayout
40        android:id="@+id/button_holder"
41        android:layout_width="wrap_content"
42        android:layout_height="@dimen/pointer_fill_container_height"
43        android:layout_marginBottom="@dimen/pointer_fill_style_circle_padding"
44        android:layout_marginTop="@dimen/pointer_fill_style_circle_padding"
45        android:gravity="left|center_vertical"
46        android:paddingTop="@dimen/pointer_fill_style_container_padding"
47        android:paddingBottom="@dimen/pointer_fill_style_container_padding">
48
49        <ImageView
50            android:id="@+id/button_black"
51            android:layout_width="@dimen/pointer_fill_style_circle_background_outer_diameter"
52            android:layout_weight="0"
53            android:layout_height="@dimen/pointer_fill_style_circle_background_outer_diameter"
54            android:adjustViewBounds="true"
55            android:maxWidth="@dimen/pointer_fill_style_circle_background_outer_diameter"
56            android:contentDescription="@string/pointer_fill_style_black_button"
57            android:scaleType="center"
58            android:src="@drawable/pointer_icon_fill_color_background" />
59
60        <View
61            android:layout_width="@dimen/pointer_fill_style_circle_spacer"
62            android:layout_height="match_parent"
63            android:focusable="false"
64            android:clickable="false"
65            android:importantForAccessibility="no"/>
66
67        <ImageView
68            android:id="@+id/button_green"
69            android:layout_width="@dimen/pointer_fill_style_circle_background_outer_diameter"
70            android:layout_weight="0"
71            android:layout_height="@dimen/pointer_fill_style_circle_background_outer_diameter"
72            android:adjustViewBounds="true"
73            android:maxWidth="@dimen/pointer_fill_style_circle_background_outer_diameter"
74            android:contentDescription="@string/pointer_fill_style_green_button"
75            android:scaleType="center"
76            android:src="@drawable/pointer_icon_fill_color_background" />
77
78        <View
79            android:layout_width="@dimen/pointer_fill_style_circle_spacer"
80            android:layout_height="match_parent"
81            android:focusable="false"
82            android:clickable="false"
83            android:importantForAccessibility="no"/>
84
85        <ImageView
86            android:id="@+id/button_red"
87            android:layout_width="@dimen/pointer_fill_style_circle_background_outer_diameter"
88            android:layout_weight="0"
89            android:layout_height="@dimen/pointer_fill_style_circle_background_outer_diameter"
90            android:adjustViewBounds="true"
91            android:maxWidth="@dimen/pointer_fill_style_circle_background_outer_diameter"
92            android:contentDescription="@string/pointer_fill_style_red_button"
93            android:scaleType="center"
94            android:src="@drawable/pointer_icon_fill_color_background" />
95
96        <View
97            android:layout_width="@dimen/pointer_fill_style_circle_spacer"
98            android:layout_height="match_parent"
99            android:focusable="false"
100            android:clickable="false"
101            android:importantForAccessibility="no"/>
102
103        <ImageView
104            android:id="@+id/button_pink"
105            android:layout_width="@dimen/pointer_fill_style_circle_background_outer_diameter"
106            android:layout_weight="0"
107            android:layout_height="@dimen/pointer_fill_style_circle_background_outer_diameter"
108            android:adjustViewBounds="true"
109            android:maxWidth="@dimen/pointer_fill_style_circle_background_outer_diameter"
110            android:contentDescription="@string/pointer_fill_style_pink_button"
111            android:scaleType="center"
112            android:src="@drawable/pointer_icon_fill_color_background" />
113
114        <View
115            android:layout_width="@dimen/pointer_fill_style_circle_spacer"
116            android:layout_height="match_parent"
117            android:focusable="false"
118            android:clickable="false"
119            android:importantForAccessibility="no"/>
120
121        <ImageView
122            android:id="@+id/button_blue"
123            android:layout_width="@dimen/pointer_fill_style_circle_background_outer_diameter"
124            android:layout_weight="0"
125            android:layout_height="@dimen/pointer_fill_style_circle_background_outer_diameter"
126            android:adjustViewBounds="true"
127            android:maxWidth="@dimen/pointer_fill_style_circle_background_outer_diameter"
128            android:contentDescription="@string/pointer_fill_style_blue_button"
129            android:scaleType="center"
130            android:src="@drawable/pointer_icon_fill_color_background" />
131
132        <View
133            android:layout_width="@dimen/pointer_fill_style_circle_spacer"
134            android:layout_height="match_parent"
135            android:focusable="false"
136            android:clickable="false"
137            android:importantForAccessibility="no"/>
138
139        <ImageView
140            android:id="@+id/button_purple"
141            android:layout_width="@dimen/pointer_fill_style_circle_background_outer_diameter"
142            android:layout_weight="0"
143            android:layout_height="@dimen/pointer_fill_style_circle_background_outer_diameter"
144            android:adjustViewBounds="true"
145            android:maxWidth="@dimen/pointer_fill_style_circle_background_outer_diameter"
146            android:contentDescription="@string/pointer_fill_style_purple_button"
147            android:scaleType="center"
148            android:src="@drawable/pointer_icon_fill_color_background" />
149
150    </LinearLayout>
151
152</LinearLayout>
153