1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2021 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 18<LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:gravity="center_vertical" 24 android:orientation="vertical" 25 android:layout_marginStart="?android:attr/listPreferredItemPaddingStart" 26 android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd" 27 android:paddingBottom="16dp"> 28 29 <androidx.constraintlayout.widget.ConstraintLayout 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content"> 32 <TextView 33 android:id="@+id/usage_summary" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 app:layout_constraintStart_toStartOf="parent" 37 app:layout_constraintBaseline_toBaselineOf="@id/total_summary" 38 android:ellipsize="marquee" 39 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" 40 android:textSize="14sp" 41 android:textAlignment="viewStart"/> 42 <TextView 43 android:id="@+id/total_summary" 44 android:layout_width="0dp" 45 android:layout_height="wrap_content" 46 app:layout_constraintStart_toEndOf="@id/usage_summary" 47 app:layout_constraintEnd_toStartOf="@id/custom_content" 48 android:ellipsize="marquee" 49 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" 50 android:textSize="14sp" 51 android:textAlignment="viewEnd"/> 52 <FrameLayout 53 android:id="@+id/custom_content" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:visibility="gone" 57 app:layout_constraintEnd_toEndOf="parent" 58 app:layout_constraintBottom_toBottomOf="@id/total_summary"/> 59 </androidx.constraintlayout.widget.ConstraintLayout> 60 61 <ProgressBar 62 android:id="@android:id/progress" 63 style="?android:attr/progressBarStyleHorizontal" 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:max="100" 67 android:scaleY="1"/> 68 69 <TextView 70 android:id="@+id/bottom_summary" 71 android:layout_width="match_parent" 72 android:layout_height="wrap_content" 73 android:layout_marginTop="10dp" 74 android:visibility="gone" 75 android:ellipsize="marquee" 76 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" 77 android:textSize="14sp"/> 78</LinearLayout> 79