blob: 3bf58944423b368950091b3e3af7de85315b2efc [file] [log] [blame]
Aran Ink143eea42020-06-16 19:18:49 -04001<!--
2 ~ Copyright (C) 2020 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<com.android.systemui.globalactions.GlobalActionsItem
17 xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="@dimen/global_actions_power_dialog_item_width"
19 android:layout_height="@dimen/global_actions_power_dialog_item_height"
20 android:gravity="bottom|center_horizontal"
21 android:orientation="vertical"
22 android:paddingTop="12dp"
23 android:paddingBottom="12dp"
24 android:stateListAnimator="@anim/control_state_list_animator">
25 <ImageView
26 android:id="@*android:id/icon"
27 android:layout_width="24dp"
28 android:layout_height="24dp"
Matt Pietal250a34c2020-06-26 11:12:25 -040029 android:layout_marginBottom="@dimen/global_actions_power_dialog_item_bottom_margin"
Aran Ink143eea42020-06-16 19:18:49 -040030 android:scaleType="centerInside"
31 android:tint="@color/control_primary_text" />
32 <TextView
33 android:id="@*android:id/message"
34 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
36 android:marqueeRepeatLimit="marquee_forever"
37 android:ellipsize="marquee"
38 android:layout_marginBottom="16dp"
39 android:maxLines="1"
40 android:textSize="16sp"
41 android:gravity="center"
42 android:textColor="@color/control_primary_text"
43 android:textAppearance="?android:attr/textAppearanceSmall" />
44</com.android.systemui.globalactions.GlobalActionsItem>
45