- Airplane mode message - WiFi Disable: “Airplane mode is on” - WiFi Enabled: “Viewing airplane mode networks” - “View airplane mode networks” button - WiFi Disable: “View airplane mode networks” - WiFi Enabled: hide button - Screenshot https://screenshot.googleplex.com/7PuKwaJMLpiDdKh Bug: 177155647 Test: manual test - atest ViewAirplaneModeNetworksLayoutPreferenceControllerTest - make RunSettingsRoboTests ROBOTEST_FILTER=NetworkProviderSettingsTest Change-Id: I3222cb04a66d07681709cc95b729b5ecdf999298
		
			
				
	
	
		
			46 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <!--
 | |
|   ~ Copyright (C) 2021 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:layout_width="match_parent"
 | |
|     android:layout_height="wrap_content"
 | |
|     android:orientation="vertical">
 | |
| 
 | |
|     <TextView
 | |
|         android:id="@+id/airplane_mode_text"
 | |
|         android:text="@string/condition_airplane_title"
 | |
|         android:textAppearance="?android:attr/textAppearanceSmall"
 | |
|         android:layout_width="wrap_content"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:layout_gravity="center_horizontal"
 | |
|         android:layout_marginStart="@dimen/content_margin_left"
 | |
|         android:layout_marginEnd="@dimen/content_margin_left"
 | |
|         android:layout_marginTop="@dimen/view_airplane_mode_networks_button_margin_vertical"
 | |
|         android:layout_marginBottom="@dimen/view_airplane_mode_networks_button_margin_vertical"/>
 | |
| 
 | |
|     <Button
 | |
|         android:id="@+id/view_airplane_mode_networks_button"
 | |
|         android:text="@string/view_airplane_safe_networks"
 | |
|         android:layout_width="fill_parent"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:layout_gravity="center_horizontal"
 | |
|         android:layout_marginStart="@dimen/content_margin_left"
 | |
|         android:layout_marginEnd="@dimen/content_margin_left"
 | |
|         android:layout_marginBottom="@dimen/view_airplane_mode_networks_button_margin_vertical"
 | |
|         style="@style/ActionPrimaryButton"/>
 | |
| </LinearLayout> |