• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?><!--
2     Copyright (C) 2023 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<!-- Content description is set programmatically on the parent FrameLayout -->
17<!-- TODO (b/272109171): Remove after clock settings is refactored to use OptionItemAdapter -->
18<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="wrap_content"
21    android:layout_height="wrap_content"
22    android:orientation="vertical" >
23    <FrameLayout
24        android:id="@+id/icon_container"
25        android:layout_width="@dimen/option_item_size"
26        android:layout_height="@dimen/option_item_size"
27        android:importantForAccessibility="yes">
28
29        <ImageView
30            android:id="@id/selection_border"
31            android:layout_width="match_parent"
32            android:layout_height="match_parent"
33            android:background="@drawable/option_item_border"
34            android:alpha="0"
35            android:importantForAccessibility="no" />
36
37        <ImageView
38            android:id="@id/background"
39            android:layout_width="match_parent"
40            android:layout_height="match_parent"
41            android:background="@drawable/option_item_background"
42            android:importantForAccessibility="no" />
43
44        <ImageView
45            android:id="@+id/color_preview_0"
46            android:layout_width="@dimen/component_color_chip_small_radius_default2"
47            android:layout_height="@dimen/component_color_chip_small_radius_default2"
48            android:layout_gravity="center"
49            android:layout_marginRight="@dimen/color_seed_chip_margin2"
50            android:layout_marginBottom="@dimen/color_seed_chip_margin2"
51            android:src="@drawable/color_chip_seed_filled0"
52            android:importantForAccessibility="no"/>
53
54        <ImageView
55            android:id="@+id/color_preview_1"
56            android:layout_width="@dimen/component_color_chip_small_radius_default2"
57            android:layout_height="@dimen/component_color_chip_small_radius_default2"
58            android:layout_gravity="center"
59            android:layout_marginLeft="@dimen/color_seed_chip_margin2"
60            android:layout_marginBottom="@dimen/color_seed_chip_margin2"
61            android:src="@drawable/color_chip_seed_filled2"
62            android:importantForAccessibility="no"/>
63
64        <ImageView
65            android:id="@+id/color_preview_2"
66            android:layout_width="@dimen/component_color_chip_small_radius_default2"
67            android:layout_height="@dimen/component_color_chip_small_radius_default2"
68            android:layout_gravity="center"
69            android:layout_marginRight="@dimen/color_seed_chip_margin2"
70            android:layout_marginTop="@dimen/color_seed_chip_margin2"
71            android:src="@drawable/color_chip_seed_filled1"
72            android:importantForAccessibility="no"/>
73
74        <ImageView
75            android:id="@+id/color_preview_3"
76            android:layout_width="@dimen/component_color_chip_small_radius_default2"
77            android:layout_height="@dimen/component_color_chip_small_radius_default2"
78            android:layout_gravity="center"
79            android:layout_marginLeft="@dimen/color_seed_chip_margin2"
80            android:layout_marginTop="@dimen/color_seed_chip_margin2"
81            android:src="@drawable/color_chip_seed_filled3"
82            android:importantForAccessibility="no"/>
83    </FrameLayout>
84
85    <TextView
86        android:id="@+id/option_title"
87        android:layout_width="@dimen/option_tile_width"
88        android:layout_height="wrap_content"
89        android:layout_marginTop="@dimen/option_bottom_margin"
90        android:textColor="@color/text_color_primary"
91        android:visibility="gone"
92        android:gravity="center" />
93</LinearLayout>
94