This allows us to specify a drawable resource in xml that is simply another drawable with a different tint. This is necessary to overlay the settings wifi icons since the tint is resolved using a theme attribute. This change also replaces a few icons other duplicate icons to demonstrate usage. Fixes: 123363812 Test: make; use class in XML and run app Change-Id: Id80f318e96dab2e1ad9db8430e8371ac6497b753
		
			
				
	
	
		
			21 lines
		
	
	
		
			874 B
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			874 B
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <!--
 | |
|     Copyright (C) 2015 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.
 | |
| -->
 | |
| <com.android.settings.widget.TintDrawable
 | |
|     xmlns:android="http://schemas.android.com/apk/res/android"
 | |
|     android:drawable="@*android:drawable/ic_wifi_signal_2"
 | |
|     android:tint="?attr/wifi_signal_color" />
 |