blob: 730f24ff9dd2cdfe86840772177b2328a8d2a548 [file] [log] [blame]
Beverlyae79ab92017-12-11 09:20:02 -05001<?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 -->
Beverly47fb7e72018-07-20 12:05:41 -040026 <ImageView
Beverlyae79ab92017-12-11 09:20:02 -050027 android:id="@+id/wireless_charging_view"
Beverly47fb7e72018-07-20 12:05:41 -040028 android:layout_width="wrap_content"
29 android:layout_height="wrap_content"
30 android:layout_gravity="center"
31 android:src="@drawable/wireless_charging_animation"/>
Beverlyae79ab92017-12-11 09:20:02 -050032
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 Li97b5f012020-05-27 11:55:50 +080039 android:orientation="horizontal">
Beverlyae79ab92017-12-11 09:20:02 -050040
41 <TextView
John Li97b5f012020-05-27 11:55:50 +080042 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
Beverlyae79ab92017-12-11 09:20:02 -050055 android:id="@+id/wireless_charging_percentage"
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
John Li97b5f012020-05-27 11:55:50 +080058 android:layout_gravity="center"/>
Beverlyae79ab92017-12-11 09:20:02 -050059 </LinearLayout>
60
John Li97b5f012020-05-27 11:55:50 +080061</FrameLayout>