Selim Cinek | aa9db1f | 2018-02-27 17:35:47 -0800 | [diff] [blame] | 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 | <com.android.systemui.statusbar.HeadsUpStatusBarView |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:layout_height="match_parent" |
| 20 | android:layout_width="match_parent" |
| 21 | android:visibility="invisible" |
| 22 | android:id="@+id/heads_up_status_bar_view" |
Selim Cinek | 332c23f | 2018-03-16 17:37:50 -0700 | [diff] [blame] | 23 | android:alpha="0" |
Selim Cinek | aa9db1f | 2018-02-27 17:35:47 -0800 | [diff] [blame] | 24 | > |
| 25 | <!-- This is a space just used as a layout and it's not actually displaying anything. We're |
| 26 | repositioning the statusbar icon to the position where this is laid out when showing this |
| 27 | view. --> |
| 28 | <Space |
| 29 | android:id="@+id/icon_placeholder" |
| 30 | android:layout_width="@dimen/status_bar_icon_drawing_size" |
| 31 | android:layout_height="@dimen/status_bar_icon_drawing_size" |
| 32 | android:layout_gravity="center_vertical" |
| 33 | /> |
| 34 | <TextView |
| 35 | android:id="@+id/text" |
| 36 | android:textAppearance="@style/TextAppearance.HeadsUpStatusBarText" |
| 37 | android:layout_width="match_parent" |
| 38 | android:layout_height="wrap_content" |
| 39 | android:singleLine="true" |
| 40 | android:ellipsize="marquee" |
| 41 | android:fadingEdge="horizontal" |
| 42 | android:textAlignment="viewStart" |
| 43 | android:paddingStart="6dp" |
| 44 | android:layout_weight="1" |
| 45 | android:layout_gravity="center_vertical" |
| 46 | /> |
| 47 | |
| 48 | </com.android.systemui.statusbar.HeadsUpStatusBarView> |