- 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
		
			
				
	
	
		
			227 lines
		
	
	
		
			9.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			227 lines
		
	
	
		
			9.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?xml version="1.0" encoding="utf-8"?>
 | 
						|
<!-- Copyright (C) 2016 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.
 | 
						|
-->
 | 
						|
 | 
						|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
 | 
						|
    android:layout_width="match_parent"
 | 
						|
    android:layout_height="match_parent"
 | 
						|
    android:fillViewport="true"
 | 
						|
    android:background="?android:attr/colorBackgroundFloating"
 | 
						|
    android:importantForAccessibility="noHideDescendants">
 | 
						|
 | 
						|
    <view class="com.android.settings.TouchBlockingFrameLayout"
 | 
						|
        android:id="@+id/frame"
 | 
						|
        android:layout_width="match_parent"
 | 
						|
        android:layout_height="wrap_content">
 | 
						|
 | 
						|
        <LinearLayout
 | 
						|
            android:layout_width="match_parent"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            android:orientation="vertical">
 | 
						|
 | 
						|
            <!-- Wifi Setting -->
 | 
						|
            <LinearLayout
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:paddingTop="16dp"
 | 
						|
                android:paddingStart="8dp"
 | 
						|
                android:orientation="horizontal">
 | 
						|
 | 
						|
                <ImageView
 | 
						|
                    android:layout_width="48dp"
 | 
						|
                    android:layout_height="48dp"
 | 
						|
                    android:src="@drawable/ic_settings_wireless"
 | 
						|
                    android:tint="?android:attr/colorAccent"
 | 
						|
                    android:scaleType="center" />
 | 
						|
 | 
						|
                <LinearLayout
 | 
						|
                    android:layout_width="0dp"
 | 
						|
                    android:layout_height="wrap_content"
 | 
						|
                    android:layout_weight="1"
 | 
						|
                    android:orientation="vertical"
 | 
						|
                    android:paddingStart="16dp">
 | 
						|
 | 
						|
                    <TextView
 | 
						|
                        android:layout_width="wrap_content"
 | 
						|
                        android:layout_height="wrap_content"
 | 
						|
                        android:text="@string/wifi_settings"
 | 
						|
                        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"
 | 
						|
                        android:textColor="?android:attr/textColorPrimary" />
 | 
						|
 | 
						|
 | 
						|
                    <TextView
 | 
						|
                        android:layout_width="wrap_content"
 | 
						|
                        android:layout_height="wrap_content"
 | 
						|
                        android:text="@string/wifi_display_status_not_available"
 | 
						|
                        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
 | 
						|
                        android:textColor="?android:attr/textColorSecondary" />
 | 
						|
                </LinearLayout>
 | 
						|
            </LinearLayout>
 | 
						|
 | 
						|
            <!-- Data usage Setting -->
 | 
						|
            <LinearLayout
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:paddingTop="16dp"
 | 
						|
                android:paddingStart="8dp"
 | 
						|
                android:orientation="horizontal">
 | 
						|
 | 
						|
                <ImageView
 | 
						|
                    android:layout_width="48dp"
 | 
						|
                    android:layout_height="48dp"
 | 
						|
                    android:src="@drawable/ic_settings_data_usage"
 | 
						|
                    android:tint="?android:attr/colorAccent"
 | 
						|
                    android:scaleType="center" />
 | 
						|
 | 
						|
                <LinearLayout
 | 
						|
                    android:layout_width="0dp"
 | 
						|
                    android:layout_height="wrap_content"
 | 
						|
                    android:layout_weight="1"
 | 
						|
                    android:orientation="vertical"
 | 
						|
                    android:paddingStart="16dp">
 | 
						|
 | 
						|
                    <TextView
 | 
						|
                        android:layout_width="wrap_content"
 | 
						|
                        android:layout_height="wrap_content"
 | 
						|
                        android:text="@string/data_usage_summary_title"
 | 
						|
                        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"
 | 
						|
                        android:textColor="?android:attr/textColorPrimary" />
 | 
						|
 | 
						|
                    <TextView
 | 
						|
                        android:layout_width="wrap_content"
 | 
						|
                        android:layout_height="wrap_content"
 | 
						|
                        android:text="@string/no_data_usage"
 | 
						|
                        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
 | 
						|
                        android:textColor="?android:attr/textColorSecondary" />
 | 
						|
                </LinearLayout>
 | 
						|
            </LinearLayout>
 | 
						|
 | 
						|
            <!-- Display Setting -->
 | 
						|
            <LinearLayout
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:paddingTop="16dp"
 | 
						|
                android:paddingStart="8dp"
 | 
						|
                android:orientation="horizontal">
 | 
						|
 | 
						|
                <ImageView
 | 
						|
                    android:layout_width="48dp"
 | 
						|
                    android:layout_height="48dp"
 | 
						|
                    android:src="@drawable/ic_settings_display"
 | 
						|
                    android:tint="?android:attr/colorAccent"
 | 
						|
                    android:scaleType="center" />
 | 
						|
 | 
						|
                <LinearLayout
 | 
						|
                    android:layout_width="0dp"
 | 
						|
                    android:layout_height="wrap_content"
 | 
						|
                    android:layout_weight="1"
 | 
						|
                    android:orientation="vertical"
 | 
						|
                    android:paddingStart="16dp">
 | 
						|
 | 
						|
                    <TextView
 | 
						|
                        android:layout_width="wrap_content"
 | 
						|
                        android:layout_height="wrap_content"
 | 
						|
                        android:text="@string/display_settings_title"
 | 
						|
                        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"
 | 
						|
                        android:textColor="?android:attr/textColorPrimary" />
 | 
						|
 | 
						|
                    <TextView
 | 
						|
                        android:layout_width="wrap_content"
 | 
						|
                        android:layout_height="wrap_content"
 | 
						|
                        android:text="@string/display_summary_example"
 | 
						|
                        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
 | 
						|
                        android:textColor="?android:attr/textColorSecondary" />
 | 
						|
                </LinearLayout>
 | 
						|
            </LinearLayout>
 | 
						|
 | 
						|
            <!-- Sound & Notification Setting -->
 | 
						|
            <LinearLayout
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:paddingTop="16dp"
 | 
						|
                android:paddingStart="8dp"
 | 
						|
                android:orientation="horizontal">
 | 
						|
 | 
						|
                <ImageView
 | 
						|
                    android:layout_width="48dp"
 | 
						|
                    android:layout_height="48dp"
 | 
						|
                    android:src="@drawable/ic_settings_sound"
 | 
						|
                    android:tint="?android:attr/colorAccent"
 | 
						|
                    android:scaleType="center" />
 | 
						|
 | 
						|
                <LinearLayout
 | 
						|
                    android:layout_width="0dp"
 | 
						|
                    android:layout_height="wrap_content"
 | 
						|
                    android:layout_weight="1"
 | 
						|
                    android:orientation="vertical"
 | 
						|
                    android:paddingStart="16dp">
 | 
						|
 | 
						|
                    <TextView
 | 
						|
                        android:layout_width="wrap_content"
 | 
						|
                        android:layout_height="wrap_content"
 | 
						|
                        android:text="@string/sound_settings"
 | 
						|
                        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"
 | 
						|
                        android:textColor="?android:attr/textColorPrimary" />
 | 
						|
 | 
						|
                    <TextView
 | 
						|
                        android:layout_width="wrap_content"
 | 
						|
                        android:layout_height="wrap_content"
 | 
						|
                        android:text="@string/sound_settings_example_summary"
 | 
						|
                        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
 | 
						|
                        android:textColor="?android:attr/textColorSecondary" />
 | 
						|
                </LinearLayout>
 | 
						|
            </LinearLayout>
 | 
						|
 | 
						|
            <!-- Apps Setting -->
 | 
						|
            <LinearLayout
 | 
						|
                android:layout_width="match_parent"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:paddingTop="16dp"
 | 
						|
                android:paddingStart="8dp"
 | 
						|
                android:orientation="horizontal">
 | 
						|
 | 
						|
                <ImageView
 | 
						|
                    android:layout_width="48dp"
 | 
						|
                    android:layout_height="48dp"
 | 
						|
                    android:src="@drawable/ic_settings_applications"
 | 
						|
                    android:tint="?android:attr/colorAccent"
 | 
						|
                    android:scaleType="center" />
 | 
						|
 | 
						|
                <LinearLayout
 | 
						|
                    android:layout_width="0dp"
 | 
						|
                    android:layout_height="wrap_content"
 | 
						|
                    android:layout_weight="1"
 | 
						|
                    android:orientation="vertical"
 | 
						|
                    android:paddingStart="16dp">
 | 
						|
 | 
						|
                    <TextView
 | 
						|
                        android:layout_width="wrap_content"
 | 
						|
                        android:layout_height="wrap_content"
 | 
						|
                        android:text="@string/applications_settings"
 | 
						|
                        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"
 | 
						|
                        android:textColor="?android:attr/textColorPrimary" />
 | 
						|
 | 
						|
                    <TextView
 | 
						|
                        android:layout_width="wrap_content"
 | 
						|
                        android:layout_height="wrap_content"
 | 
						|
                        android:text="@string/apps_summary_example"
 | 
						|
                        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
 | 
						|
                        android:textColor="?android:attr/textColorSecondary" />
 | 
						|
                </LinearLayout>
 | 
						|
            </LinearLayout>
 | 
						|
        </LinearLayout>
 | 
						|
    </view>
 | 
						|
</ScrollView>
 |