- Replace all TextAppearance.Material styles with the equivalent TextAppearance.DeviceDefault style - Reparent Theme.Settings.HomeBase to inherit from Theme.Settings. This ensures that the correct textAppearance theme attributes are applied throughout the Settings application. Bug: 121211932 Test: manually opening Settings and enabling/disabling HotDogOverlay Change-Id: Ibe4873ed0294de79dbb6aeca464d14c291239c4b
		
			
				
	
	
		
			138 lines
		
	
	
		
			5.6 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			138 lines
		
	
	
		
			5.6 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.
 | 
						|
-->
 | 
						|
<RelativeLayout
 | 
						|
    xmlns:android="http://schemas.android.com/apk/res/android"
 | 
						|
    android:layout_width="match_parent"
 | 
						|
    android:layout_height="wrap_content">
 | 
						|
 | 
						|
    <RelativeLayout
 | 
						|
        android:id="@+id/zen_onboarding_choices"
 | 
						|
        android:layout_width="match_parent"
 | 
						|
        android:layout_height="wrap_content"
 | 
						|
        android:paddingLeft="24dp"
 | 
						|
        android:paddingRight="24dp"
 | 
						|
        android:paddingTop="18dp">
 | 
						|
 | 
						|
        <TextView
 | 
						|
            android:id="@+id/header"
 | 
						|
            android:layout_width="wrap_content"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            android:text="@string/zen_onboarding_dnd_visual_disturbances_header"
 | 
						|
            android:textAppearance="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle" />
 | 
						|
 | 
						|
        <LinearLayout
 | 
						|
            android:id="@+id/zen_onboarding_new_setting"
 | 
						|
            android:layout_width="match_parent"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            android:layout_below="@+id/header"
 | 
						|
            android:layout_centerHorizontal="true"
 | 
						|
            android:layout_marginTop="22dp"
 | 
						|
            android:orientation="horizontal">
 | 
						|
 | 
						|
            <RadioButton
 | 
						|
                android:id="@+id/zen_onboarding_new_setting_button"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:paddingHorizontal="8dp"
 | 
						|
                android:minHeight="48dp"/>
 | 
						|
 | 
						|
            <LinearLayout
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:orientation="vertical">
 | 
						|
 | 
						|
                <TextView
 | 
						|
                    android:id="@+id/zen_onboarding_new_setting_title"
 | 
						|
                    android:layout_width="match_parent"
 | 
						|
                    android:layout_height="wrap_content"
 | 
						|
                    android:text="@string/zen_onboarding_new_setting_title"
 | 
						|
                    android:textAppearance="?android:attr/textAppearanceListItem" />
 | 
						|
 | 
						|
                <TextView
 | 
						|
                    android:id="@+id/zen_onboarding_new_setting_summary"
 | 
						|
                    android:layout_width="match_parent"
 | 
						|
                    android:layout_height="wrap_content"
 | 
						|
                    android:text="@string/zen_onboarding_new_setting_summary" />
 | 
						|
            </LinearLayout>
 | 
						|
 | 
						|
        </LinearLayout>
 | 
						|
 | 
						|
        <LinearLayout
 | 
						|
            android:id="@+id/zen_onboarding_current_setting"
 | 
						|
            android:layout_width="match_parent"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            android:layout_below="@+id/zen_onboarding_new_setting"
 | 
						|
            android:layout_centerHorizontal="true"
 | 
						|
            android:layout_marginTop="10dp"
 | 
						|
            android:orientation="horizontal">
 | 
						|
 | 
						|
            <RadioButton
 | 
						|
                android:id="@+id/zen_onboarding_current_setting_button"
 | 
						|
                android:layout_width="wrap_content"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:paddingHorizontal="8dp"
 | 
						|
                android:minHeight="48dp"/>
 | 
						|
 | 
						|
            <LinearLayout
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:orientation="vertical">
 | 
						|
 | 
						|
                <TextView
 | 
						|
                    android:id="@+id/zen_onboarding_current_setting_title"
 | 
						|
                    android:layout_width="match_parent"
 | 
						|
                    android:layout_height="wrap_content"
 | 
						|
                    android:text="@string/zen_onboarding_current_setting_title"
 | 
						|
                    android:textAppearance="?android:attr/textAppearanceListItem" />
 | 
						|
 | 
						|
                <TextView
 | 
						|
                    android:id="@+id/zen_onboarding_current_setting_summary"
 | 
						|
                    android:layout_width="match_parent"
 | 
						|
                    android:layout_height="wrap_content"
 | 
						|
                    android:text="@string/zen_onboarding_current_setting_summary" />
 | 
						|
            </LinearLayout>
 | 
						|
        </LinearLayout>
 | 
						|
    </RelativeLayout>
 | 
						|
 | 
						|
    <RelativeLayout
 | 
						|
        android:id="@+id/buttons"
 | 
						|
        android:layout_width="match_parent"
 | 
						|
        android:layout_height="wrap_content"
 | 
						|
        android:layout_below="@+id/zen_onboarding_choices"
 | 
						|
        android:layout_marginLeft="8dp"
 | 
						|
        android:layout_marginTop="20dp"
 | 
						|
        android:layout_marginBottom="10dp">
 | 
						|
 | 
						|
        <Button
 | 
						|
            android:id="@+id/settings"
 | 
						|
            android:layout_width="wrap_content"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            android:text="@string/zen_onboarding_settings"
 | 
						|
            android:layout_alignParentStart="true"
 | 
						|
            style="@style/TextAppearance.ZenOnboardingButton"
 | 
						|
            android:onClick="launchSettings" />
 | 
						|
 | 
						|
        <Button
 | 
						|
            android:id="@+id/ok"
 | 
						|
            android:layout_width="wrap_content"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            android:layout_alignParentEnd="true"
 | 
						|
            android:text="@string/zen_onboarding_ok"
 | 
						|
            style="@style/TextAppearance.ZenOnboardingButton"
 | 
						|
            android:onClick="save" />
 | 
						|
    </RelativeLayout>
 | 
						|
</RelativeLayout> |