Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20929206 Change-Id: I38f7acc1b1c5cbb08432d6e3b3229305da381379 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
		
			
				
	
	
		
			139 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			139 lines
		
	
	
		
			5.7 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <!--
 | |
|     Copyright (C) 2018 The Android Open Source Project
 | |
| 
 | |
|     Licensed under the Apache License, Version 2.0 (the "License");
 | |
|     you may not use this file except in compliance with the License.
 | |
|     You may obtain a copy of the License at
 | |
| 
 | |
|          http://www.apache.org/licenses/LICENSE-2.0
 | |
| 
 | |
|     Unless required by applicable law or agreed to in writing, software
 | |
|     distributed under the License is distributed on an "AS IS" BASIS,
 | |
|     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | |
|     See the License for the specific language governing permissions and
 | |
|     limitations under the License
 | |
|   -->
 | |
| 
 | |
| <FrameLayout
 | |
|     xmlns:android="http://schemas.android.com/apk/res/android"
 | |
|     android:id="@+id/panel_container"
 | |
|     android:layout_width="@dimen/settings_panel_width"
 | |
|     android:layout_height="wrap_content"
 | |
|     android:fitsSystemWindows="true"
 | |
|     android:layout_gravity="center_horizontal"
 | |
|     android:background="@drawable/settings_panel_rounded_top_corner_background" >
 | |
| 
 | |
|     <LinearLayout
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:orientation="vertical">
 | |
| 
 | |
|         <LinearLayout
 | |
|             android:id="@+id/panel_header"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:layout_marginStart="@dimen/settings_panel_title_margin"
 | |
|             android:layout_marginEnd="@dimen/settings_panel_title_margin"
 | |
|             android:layout_marginTop="@dimen/settings_panel_title_margin"
 | |
|             android:layout_marginBottom="@dimen/settings_panel_title_margin"
 | |
|             android:gravity="start|center_vertical"
 | |
|             android:orientation="horizontal"
 | |
|             android:visibility="gone">
 | |
| 
 | |
|             <LinearLayout
 | |
|                 android:id="@+id/title_group"
 | |
|                 android:layout_width="wrap_content"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:orientation="horizontal"
 | |
|                 android:layout_marginStart="16dp">
 | |
|                 <ImageView
 | |
|                     android:id="@+id/title_icon"
 | |
|                     android:layout_width="@dimen/output_switcher_panel_icon_size"
 | |
|                     android:layout_height="@dimen/output_switcher_panel_icon_size"/>
 | |
|             </LinearLayout>
 | |
| 
 | |
|             <LinearLayout
 | |
|                 android:id="@+id/header_layout"
 | |
|                 android:layout_width="match_parent"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:orientation="vertical">
 | |
| 
 | |
|                 <TextView
 | |
|                     android:id="@+id/header_title"
 | |
|                     android:layout_width="wrap_content"
 | |
|                     android:layout_height="wrap_content"
 | |
|                     android:layout_marginBottom="8dp"
 | |
|                     android:ellipsize="end"
 | |
|                     android:maxLines="1"
 | |
|                     android:textColor="?android:attr/textColorPrimary"
 | |
|                     android:textSize="24sp"
 | |
|                     android:fontFamily="@*android:string/config_headlineFontFamilyMedium"/>
 | |
| 
 | |
|                 <TextView
 | |
|                     android:id="@+id/header_subtitle"
 | |
|                     android:layout_width="wrap_content"
 | |
|                     android:layout_height="wrap_content"
 | |
|                     android:ellipsize="end"
 | |
|                     android:maxLines="1"
 | |
|                     android:textColor="?android:attr/textColorSecondary"
 | |
|                     android:textSize="14sp"
 | |
|                     android:fontFamily="@*android:string/config_headlineFontFamilyMedium" />
 | |
|             </LinearLayout>
 | |
|         </LinearLayout>
 | |
| 
 | |
|         <TextView
 | |
|             android:id="@+id/panel_title"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:layout_marginTop="@dimen/settings_panel_title_margin"
 | |
|             android:layout_marginBottom="@dimen/settings_panel_title_margin_bottom"
 | |
|             android:gravity="center"
 | |
|             android:textColor="?android:attr/textColorPrimary"
 | |
|             android:textSize="24sp"
 | |
|             android:fontFamily="@*android:string/config_headlineFontFamilyMedium"/>
 | |
| 
 | |
|         <ProgressBar
 | |
|             android:id="@+id/progress_bar"
 | |
|             android:indeterminate="true"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:minHeight="1dp"
 | |
|             android:maxHeight="1dp"
 | |
|             android:visibility="gone"
 | |
|             style="@style/TrimmedHorizontalProgressBar"/>
 | |
| 
 | |
|         <!-- Note: There is a landscape version of panel_slice_list which supports scrolling. -->
 | |
|         <include layout="@layout/panel_slice_list"/>
 | |
| 
 | |
|         <LinearLayout
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:orientation="horizontal"
 | |
|             android:layout_marginTop="16dp"
 | |
|             android:layout_marginHorizontal="24dp"
 | |
|             android:layout_marginBottom="18dp">
 | |
| 
 | |
|             <Button
 | |
|                 android:id="@+id/see_more"
 | |
|                 style="@style/PanelOptionRoundedOutlinedButton"
 | |
|                 android:layout_width="wrap_content"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:minWidth="0dp"
 | |
|                 android:text="@string/settings_button"/>
 | |
| 
 | |
|             <Space
 | |
|                 android:layout_weight="1"
 | |
|                 android:layout_width="0dp"
 | |
|                 android:layout_height="match_parent" />
 | |
| 
 | |
|             <Button
 | |
|                 android:id="@+id/done"
 | |
|                 style="@style/PanelOptionRoundedSolidButton"
 | |
|                 android:layout_width="wrap_content"
 | |
|                 android:layout_height="wrap_content"
 | |
|                 android:minWidth="0dp"
 | |
|                 android:text="@string/done"/>
 | |
|         </LinearLayout>
 | |
|     </LinearLayout>
 | |
| </FrameLayout> |