Updates Settings to use the DayNight theme (real name TBD) and fixes several colors that were pinned to non-theme values. Adds a setting for switching theme between light/dark/auto. Bug: 19368658 Bug: 19369392 Change-Id: I7cd23b7ad38bdb25a01b92e67ff1ee1cdd8a3958
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <!-- Copyright (C) 2014 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.
 | |
| -->
 | |
| 
 | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | |
|         android:id="@+id/category"
 | |
|         android:layout_width="match_parent"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:paddingStart="@dimen/dashboard_category_padding_start"
 | |
|         android:paddingEnd="@dimen/dashboard_category_padding_end"
 | |
|         android:orientation="vertical"
 | |
|         android:background="@color/card_background"
 | |
|         android:layout_marginBottom="8dip"
 | |
|         android:elevation="@dimen/dashboard_category_elevation">
 | |
| 
 | |
|     <TextView android:id="@+id/category_title"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="@dimen/dashboard_category_title_height"
 | |
|             android:paddingStart="@dimen/dashboard_category_title_margin_start"
 | |
|             android:singleLine="true"
 | |
|             android:ellipsize="marquee"
 | |
|             android:gravity="center_vertical"
 | |
|             android:textAppearance="@style/TextAppearance.CategoryTitle"
 | |
|             android:textAlignment="viewStart"
 | |
|             />
 | |
| 
 | |
|     <com.android.settings.dashboard.DashboardContainerView
 | |
|             android:id="@+id/category_content"
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             />
 | |
| 
 | |
| </LinearLayout>
 |