Beverly | ae79ab9 | 2017-12-11 09:20:02 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* |
| 4 | ** Copyright 2018, The Android Open Source Project |
| 5 | ** |
| 6 | ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | ** you may not use this file except in compliance with the License. |
| 8 | ** You may obtain a copy of the License at |
| 9 | ** |
| 10 | ** http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | ** |
| 12 | ** Unless required by applicable law or agreed to in writing, software |
| 13 | ** distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | ** See the License for the specific language governing permissions and |
| 16 | ** limitations under the License. |
| 17 | */ |
| 18 | --> |
| 19 | |
| 20 | <FrameLayout |
| 21 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="match_parent"> |
| 24 | |
| 25 | <!-- Circle animation --> |
Beverly | 47fb7e7 | 2018-07-20 12:05:41 -0400 | [diff] [blame] | 26 | <ImageView |
Beverly | ae79ab9 | 2017-12-11 09:20:02 -0500 | [diff] [blame] | 27 | android:id="@+id/wireless_charging_view" |
Beverly | 47fb7e7 | 2018-07-20 12:05:41 -0400 | [diff] [blame] | 28 | android:layout_width="wrap_content" |
| 29 | android:layout_height="wrap_content" |
| 30 | android:layout_gravity="center" |
| 31 | android:src="@drawable/wireless_charging_animation"/> |
Beverly | ae79ab9 | 2017-12-11 09:20:02 -0500 | [diff] [blame] | 32 | |
| 33 | <!-- Text inside circle --> |
| 34 | <LinearLayout |
| 35 | android:id="@+id/wireless_charging_text_layout" |
| 36 | android:layout_width="wrap_content" |
| 37 | android:layout_height="wrap_content" |
| 38 | android:layout_gravity="center" |
John Li | 97b5f01 | 2020-05-27 11:55:50 +0800 | [diff] [blame] | 39 | android:orientation="horizontal"> |
Beverly | ae79ab9 | 2017-12-11 09:20:02 -0500 | [diff] [blame] | 40 | |
| 41 | <TextView |
John Li | 97b5f01 | 2020-05-27 11:55:50 +0800 | [diff] [blame] | 42 | android:id="@+id/reverse_wireless_charging_percentage" |
| 43 | android:layout_width="wrap_content" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:layout_gravity="center" |
| 46 | android:visibility="gone"/> |
| 47 | <ImageView |
| 48 | android:id="@+id/reverse_wireless_charging_icon" |
| 49 | android:layout_width="wrap_content" |
| 50 | android:layout_height="wrap_content" |
| 51 | android:layout_gravity="center" |
| 52 | android:src="@drawable/ic_reverse_charging" |
| 53 | android:visibility="gone"/> |
| 54 | <TextView |
Beverly | ae79ab9 | 2017-12-11 09:20:02 -0500 | [diff] [blame] | 55 | android:id="@+id/wireless_charging_percentage" |
| 56 | android:layout_width="wrap_content" |
| 57 | android:layout_height="wrap_content" |
John Li | 97b5f01 | 2020-05-27 11:55:50 +0800 | [diff] [blame] | 58 | android:layout_gravity="center"/> |
Beverly | ae79ab9 | 2017-12-11 09:20:02 -0500 | [diff] [blame] | 59 | </LinearLayout> |
| 60 | |
John Li | 97b5f01 | 2020-05-27 11:55:50 +0800 | [diff] [blame] | 61 | </FrameLayout> |