|
17 | 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
18 | 18 | android:id="@+id/header_text_container" |
19 | 19 | android:layout_width="match_parent" |
20 | | - android:layout_height="@dimen/qs_header_tooltip_height" |
| 20 | + android:layout_height="wrap_content" |
21 | 21 | android:layout_below="@id/quick_status_bar_system_icons" |
22 | 22 | android:visibility="invisible" |
23 | 23 | android:theme="@style/QSHeaderTheme" |
24 | | - android:forceHasOverlappingRendering="false"> |
| 24 | + android:orientation="vertical" |
| 25 | + android:layout_gravity="center" |
| 26 | + android:layout_marginTop="10dip" |
| 27 | + android:layout_marginBottom="5dip" |
| 28 | + android:paddingStart="@dimen/status_bar_start_padding" |
| 29 | + android:forceHasOverlappingRendering="true"> |
25 | 30 |
|
26 | | - <com.android.systemui.qs.QSHeaderInfoLayout |
27 | | - android:id="@+id/status_container" |
28 | | - android:layout_width="0dp" |
29 | | - android:layout_weight="1" |
30 | | - android:layout_height="match_parent"> |
| 31 | + <LinearLayout |
| 32 | + android:id="@+id/big_clock_layout" |
| 33 | + android:layout_gravity="center" |
| 34 | + android:layout_marginBottom="-5dip" |
| 35 | + android:layout_marginStart="8.0dip" |
| 36 | + android:layout_marginEnd="8.0dip" |
| 37 | + android:layout_width="match_parent" |
| 38 | + android:layout_height="wrap_content"> |
| 39 | + |
| 40 | + <RelativeLayout |
| 41 | + android:id="@+id/big_clock" |
| 42 | + android:layout_width="wrap_content" |
| 43 | + android:layout_height="wrap_content"> |
| 44 | + |
| 45 | + <TextClock |
| 46 | + android:id="@+id/full_clock" |
| 47 | + android:textSize="38.0dip" |
| 48 | + android:textColor="?android:textColorPrimary" |
| 49 | + android:layout_gravity="start|bottom|center" |
| 50 | + android:layout_width="wrap_content" |
| 51 | + android:layout_height="wrap_content" |
| 52 | + android:singleLine="true" |
| 53 | + android:format12Hour="kk:mm" |
| 54 | + android:format24Hour="kk:mm" /> |
| 55 | + |
| 56 | + <TextClock |
| 57 | + android:textSize="38.0dip" |
| 58 | + android:textColor="@*android:color/accent_device_default" |
| 59 | + android:layout_gravity="start|bottom|center" |
| 60 | + android:layout_width="wrap_content" |
| 61 | + android:layout_height="wrap_content" |
| 62 | + android:singleLine="true" |
| 63 | + android:maxLength="1" |
| 64 | + android:format12Hour="kk" |
| 65 | + android:format24Hour="kk" /> |
| 66 | + |
| 67 | + </RelativeLayout> |
| 68 | + |
| 69 | + <TextClock |
| 70 | + android:id="@+id/qs_date" |
| 71 | + android:textSize="16.0dip" |
| 72 | + android:textColor="?android:textColorPrimary" |
| 73 | + android:layout_width="wrap_content" |
| 74 | + android:layout_height="wrap_content" |
| 75 | + android:singleLine="true" |
| 76 | + android:layout_marginStart="8.0dip" |
| 77 | + android:format12Hour="EEEE, d MMMM" |
| 78 | + android:format24Hour="EEEE, d MMMM" /> |
| 79 | + |
| 80 | + </LinearLayout> |
| 81 | + |
| 82 | + <LinearLayout |
| 83 | + android:gravity="center" |
| 84 | + android:layout_gravity="center" |
| 85 | + android:layout_width="match_parent" |
| 86 | + android:layout_height="wrap_content" |
| 87 | + android:layout_marginStart="5.0dip" |
| 88 | + android:paddingTop="8.0dp"> |
31 | 89 |
|
32 | 90 | <LinearLayout |
33 | | - android:id = "@+id/alarm_container" |
| 91 | + android:id="@+id/status_container" |
34 | 92 | android:layout_width="wrap_content" |
35 | | - android:layout_height="match_parent" |
36 | | - android:gravity="center_vertical" |
37 | | - android:focusable="true" |
38 | | - android:clickable="true"> |
39 | | - |
40 | | - <ImageView |
41 | | - android:id="@+id/next_alarm_icon" |
42 | | - android:layout_width="@dimen/qs_header_alarm_icon_size" |
43 | | - android:layout_height="@dimen/qs_header_alarm_icon_size" |
44 | | - android:src="@drawable/ic_alarm" |
45 | | - android:contentDescription="@string/accessibility_quick_settings_alarm_set" |
46 | | - android:visibility="gone"/> |
| 93 | + android:layout_height="wrap_content"> |
47 | 94 |
|
48 | | - <com.android.systemui.util.AutoMarqueeTextView |
49 | | - android:id="@+id/next_alarm_text" |
| 95 | + <LinearLayout |
| 96 | + android:id="@+id/alarm_container" |
50 | 97 | android:layout_width="wrap_content" |
51 | 98 | android:layout_height="wrap_content" |
52 | | - android:singleLine="true" |
53 | | - android:ellipsize="marquee" |
54 | | - android:marqueeRepeatLimit="marquee_forever" |
55 | | - android:layout_marginStart="@dimen/qs_header_alarm_text_margin_start" |
56 | | - android:textAppearance="@style/TextAppearance.QS.Status" |
57 | | - android:visibility="gone"/> |
58 | | - </LinearLayout> |
| 99 | + android:gravity="center_vertical" |
| 100 | + android:focusable="true" |
| 101 | + android:clickable="true"> |
59 | 102 |
|
60 | | - <View |
61 | | - android:id="@+id/status_separator" |
62 | | - android:layout_width="@dimen/qs_header_separator_width" |
63 | | - android:layout_height="match_parent" |
64 | | - android:visibility="gone"/> |
| 103 | + <ImageView |
| 104 | + android:id="@+id/next_alarm_icon" |
| 105 | + android:layout_width="@dimen/qs_header_alarm_icon_size" |
| 106 | + android:layout_height="@dimen/qs_header_alarm_icon_size" |
| 107 | + android:src="@drawable/ic_alarm" |
| 108 | + android:contentDescription="@string/accessibility_quick_settings_alarm_set" |
| 109 | + android:visibility="gone"/> |
65 | 110 |
|
66 | | - <LinearLayout |
67 | | - android:id = "@+id/ringer_container" |
68 | | - android:layout_width="wrap_content" |
69 | | - android:layout_height="match_parent" |
70 | | - android:gravity="center_vertical" |
71 | | - android:focusable="true" |
72 | | - android:clickable="true"> |
73 | | - |
74 | | - <ImageView |
75 | | - android:id="@+id/ringer_mode_icon" |
76 | | - android:layout_width="@dimen/qs_header_alarm_icon_size" |
77 | | - android:layout_height="@dimen/qs_header_alarm_icon_size" |
| 111 | + <com.android.systemui.util.AutoMarqueeTextView |
| 112 | + android:id="@+id/next_alarm_text" |
| 113 | + android:layout_width="wrap_content" |
| 114 | + android:layout_height="wrap_content" |
| 115 | + android:singleLine="true" |
| 116 | + android:ellipsize="marquee" |
| 117 | + android:marqueeRepeatLimit="marquee_forever" |
| 118 | + android:layout_marginStart="@dimen/qs_header_alarm_text_margin_start" |
| 119 | + android:textAppearance="@style/TextAppearance.QS.Status" |
| 120 | + android:visibility="gone"/> |
| 121 | + </LinearLayout> |
| 122 | + |
| 123 | + <View |
| 124 | + android:id="@+id/status_separator" |
| 125 | + android:layout_width="@dimen/qs_header_separator_width" |
| 126 | + android:layout_height="2dp" |
78 | 127 | android:visibility="gone"/> |
79 | 128 |
|
80 | | - <com.android.systemui.util.AutoMarqueeTextView |
81 | | - android:id="@+id/ringer_mode_text" |
| 129 | + <LinearLayout |
| 130 | + android:id="@+id/ringer_container" |
82 | 131 | android:layout_width="wrap_content" |
83 | 132 | android:layout_height="wrap_content" |
84 | | - android:singleLine="true" |
85 | | - android:ellipsize="marquee" |
86 | | - android:marqueeRepeatLimit="marquee_forever" |
87 | | - android:layout_marginStart="@dimen/qs_header_alarm_text_margin_start" |
88 | | - android:textAppearance="@style/TextAppearance.QS.Status" |
89 | | - android:visibility="gone"/> |
| 133 | + android:gravity="center_vertical" |
| 134 | + android:focusable="true" |
| 135 | + android:clickable="true"> |
| 136 | + |
| 137 | + <ImageView |
| 138 | + android:id="@+id/ringer_mode_icon" |
| 139 | + android:layout_width="@dimen/qs_header_alarm_icon_size" |
| 140 | + android:layout_height="@dimen/qs_header_alarm_icon_size" |
| 141 | + android:visibility="gone"/> |
| 142 | + |
| 143 | + <com.android.systemui.util.AutoMarqueeTextView |
| 144 | + android:id="@+id/ringer_mode_text" |
| 145 | + android:layout_width="wrap_content" |
| 146 | + android:layout_height="wrap_content" |
| 147 | + android:singleLine="true" |
| 148 | + android:ellipsize="marquee" |
| 149 | + android:marqueeRepeatLimit="marquee_forever" |
| 150 | + android:layout_marginStart="@dimen/qs_header_alarm_text_margin_start" |
| 151 | + android:textAppearance="@style/TextAppearance.QS.Status" |
| 152 | + android:visibility="gone"/> |
| 153 | + </LinearLayout> |
90 | 154 | </LinearLayout> |
91 | | - </com.android.systemui.qs.QSHeaderInfoLayout> |
92 | | - |
93 | | - <include layout="@layout/qs_carrier_group" |
94 | | - android:id="@+id/carrier_group" |
95 | | - android:layout_width="wrap_content" |
96 | | - android:layout_height="match_parent" |
97 | | - android:layout_marginStart="@dimen/qs_status_separator" |
98 | | - android:layout_gravity="end|center_vertical" |
99 | | - android:focusable="false"/> |
| 155 | + |
| 156 | + <include layout="@layout/qs_carrier_group" |
| 157 | + android:id="@+id/carrier_group" |
| 158 | + android:layout_height="wrap_content" |
| 159 | + android:layout_width="0dp" |
| 160 | + android:layout_weight="1" |
| 161 | + android:layout_marginStart="@dimen/qs_status_separator" |
| 162 | + android:layout_gravity="end|center_vertical" |
| 163 | + android:focusable="false"/> |
| 164 | + |
| 165 | + </LinearLayout> |
100 | 166 |
|
101 | 167 | </LinearLayout> |
0 commit comments