• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2022 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<com.android.customization.picker.quickaffordance.ui.view.KeyguardQuickAffordanceSectionView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_height="wrap_content"
20    android:layout_width="match_parent"
21    android:background="?selectableItemBackground"
22    android:clickable="true"
23    android:paddingVertical="@dimen/option_section_vertical_padding"
24    android:paddingHorizontal="@dimen/section_horizontal_padding"
25    android:orientation="horizontal">
26
27    <LinearLayout
28        android:layout_width="0dp"
29        android:layout_height="wrap_content"
30        android:layout_weight="1"
31        android:orientation="vertical"
32        android:layout_gravity="center">
33
34        <TextView
35            android:layout_width="match_parent"
36            android:layout_height="wrap_content"
37            android:text="@string/keyguard_quick_affordance_section_title"
38            style="@style/SectionTitleTextStyle" />
39
40        <TextView
41            android:id="@+id/keyguard_quick_affordance_description"
42            android:layout_width="match_parent"
43            android:layout_height="wrap_content"
44            style="@style/SectionSubtitleTextStyle"/>
45    </LinearLayout>
46
47    <LinearLayout
48        android:layout_width="@dimen/option_tile_width"
49        android:layout_height="@dimen/option_tile_width"
50        android:orientation="horizontal"
51        android:background="@drawable/picker_section_icon_background"
52        android:importantForAccessibility="noHideDescendants"
53        android:gravity="center"
54        android:divider="@drawable/horizontal_divider_14dp"
55        android:layout_gravity="center"
56        android:showDividers="middle">
57
58        <ImageView
59            android:id="@+id/icon_1"
60            android:layout_width="wrap_content"
61            android:layout_height="wrap_content"
62            android:visibility="gone"
63            android:tint="@color/system_on_surface" />
64
65        <ImageView
66            android:id="@+id/icon_2"
67            android:layout_width="wrap_content"
68            android:layout_height="wrap_content"
69            android:visibility="gone"
70            android:tint="@color/system_on_surface" />
71
72    </LinearLayout>
73
74
75</com.android.customization.picker.quickaffordance.ui.view.KeyguardQuickAffordanceSectionView>