1. set fragment icon for WifiDppChooseSavedWifiNetworkFragment 2. set fragment icon of success for WifiDppAddDeviceFragment All Wi-Fi DPP fragment icons are VectorDrawable of instinct size 24dp draw on a 48dp canvas. Except for ic_devices_check_circle_green, it's a LayerDrawable of different size. I dynamically change ImageView layout width & height between these 2 different kind of drawable. Bug: 122982132 Test: manual test Change-Id: Idab8cd8b0798363e447da00dc6bc68a86498b8be
		
			
				
	
	
		
			31 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <!--
 | |
|     Copyright (C) 2019 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.
 | |
| -->
 | |
| <layer-list
 | |
|     xmlns:android="http://schemas.android.com/apk/res/android">
 | |
|     <item
 | |
|         android:drawable="@drawable/ic_devices_other_opaque_black"
 | |
|         android:width="@dimen/wifi_dpp_fragment_icon_width_height"
 | |
|         android:height="@dimen/wifi_dpp_fragment_icon_width_height"
 | |
|         android:gravity="center"/>
 | |
| 
 | |
|     <item
 | |
|         android:drawable="@drawable/ic_check_circle_green"
 | |
|         android:top="28dp"
 | |
|         android:left="44dp"
 | |
|         android:gravity="center"/>
 | |
| 
 | |
| </layer-list>
 |