• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2018 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:id="@+id/header_text_container"
19    android:layout_width="match_parent"
20    android:layout_height="@dimen/qs_header_tooltip_height"
21    android:layout_below="@id/quick_status_bar_system_icons"
22    android:paddingStart="@dimen/status_bar_padding_start"
23    android:paddingEnd="@dimen/status_bar_padding_end"
24    android:visibility="invisible"
25    android:theme="@style/QSHeaderTheme">
26
27        <com.android.systemui.qs.QSHeaderInfoLayout
28            android:id="@+id/status_container"
29            android:layout_width="match_parent"
30            android:layout_weight="1"
31            android:layout_height="match_parent">
32
33            <LinearLayout
34                android:id = "@+id/alarm_container"
35                android:layout_width="wrap_content"
36                android:layout_height="match_parent"
37                android:gravity="center_vertical"
38                android:focusable="true"
39                android:clickable="true">
40
41                <ImageView
42                    android:id="@+id/next_alarm_icon"
43                    android:layout_width="@dimen/qs_header_alarm_icon_size"
44                    android:layout_height="@dimen/qs_header_alarm_icon_size"
45                    android:src="@drawable/ic_alarm"
46                    android:contentDescription="@string/accessibility_quick_settings_alarm_set"
47                    android:visibility="gone"/>
48
49                <com.android.systemui.util.AutoMarqueeTextView
50                    android:id="@+id/next_alarm_text"
51                    android:layout_width="wrap_content"
52                    android:layout_height="wrap_content"
53                    android:singleLine="true"
54                    android:ellipsize="marquee"
55                    android:marqueeRepeatLimit="marquee_forever"
56                    android:layout_marginStart="@dimen/qs_header_alarm_text_margin_start"
57                    android:textAppearance="@style/TextAppearance.QS.Status"
58                    android:visibility="gone"/>
59            </LinearLayout>
60
61            <View
62                android:id="@+id/status_separator"
63                android:layout_width="@dimen/qs_header_separator_width"
64                android:layout_height="match_parent"
65                android:visibility="gone"/>
66
67            <LinearLayout
68                android:id = "@+id/ringer_container"
69                android:layout_width="wrap_content"
70                android:layout_height="match_parent"
71                android:gravity="center_vertical"
72                android:focusable="true"
73                android:clickable="true">
74
75                <ImageView
76                    android:id="@+id/ringer_mode_icon"
77                    android:layout_width="@dimen/qs_header_alarm_icon_size"
78                    android:layout_height="@dimen/qs_header_alarm_icon_size"
79                    android:visibility="gone"/>
80
81                <com.android.systemui.util.AutoMarqueeTextView
82                    android:id="@+id/ringer_mode_text"
83                    android:layout_width="wrap_content"
84                    android:layout_height="wrap_content"
85                    android:singleLine="true"
86                    android:ellipsize="marquee"
87                    android:marqueeRepeatLimit="marquee_forever"
88                    android:layout_marginStart="@dimen/qs_header_alarm_text_margin_start"
89                    android:textAppearance="@style/TextAppearance.QS.Status"
90                    android:visibility="gone"/>
91            </LinearLayout>
92        </com.android.systemui.qs.QSHeaderInfoLayout>
93
94        <include layout="@layout/qs_carrier_group"
95                 android:id="@+id/carrier_group"
96                 android:layout_width="wrap_content"
97                 android:layout_height="match_parent"
98                 android:layout_marginStart="@dimen/qs_status_separator"
99                 android:layout_gravity="end|center_vertical"
100                 android:focusable="false"/>
101
102</LinearLayout>
103