Refer to other settings with the checkbox to read the checkbox and corresponding text together, such as "Erase SIMs" or "Show password" in WiFi settings. Bug: 288223637 Bug: 317927064 Test: Perform some accessibility test like TalkBack and Select to Speak Change-Id: I571fe3f2f8d7b6b4f4c7b5804d0217a2a2b97757
		
			
				
	
	
		
			102 lines
		
	
	
		
			4.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			102 lines
		
	
	
		
			4.2 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.
 | |
| -->
 | |
| 
 | |
| <com.android.settings.localepicker.LocaleDragCell
 | |
|     xmlns:android="http://schemas.android.com/apk/res/android"
 | |
|     xmlns:app="http://schemas.android.com/apk/res-auto"
 | |
|     android:layout_width="match_parent"
 | |
|     android:layout_height="wrap_content"
 | |
|     android:minHeight="?android:listPreferredItemHeight"
 | |
|     android:background="?android:colorBackground"
 | |
|     android:layout_marginTop="12dp"
 | |
|     android:layout_marginBottom="12dp"
 | |
|     android:layoutDirection="locale"
 | |
|     android:textDirection="locale">
 | |
| 
 | |
|     <LinearLayout
 | |
|         android:id="@+id/numberLayout"
 | |
|         android:layout_width="wrap_content"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:layout_centerVertical="true"
 | |
|         android:gravity="center_vertical|center_horizontal"
 | |
|         android:paddingStart="?android:attr/listPreferredItemPaddingStart">
 | |
|         <CheckBox
 | |
|             android:id="@+id/checkbox"
 | |
|             style="@style/LanguageCheckboxAndLabel"
 | |
|             android:layout_marginRight="0dp"
 | |
|             android:minWidth="24dp"
 | |
|             android:paddingEnd="-8dp"
 | |
|             android:clickable="false"
 | |
|             android:focusable="false"/>
 | |
| 
 | |
|         <TextView
 | |
|             android:id="@+id/miniLabel"
 | |
|             style="@style/LanguageCheckboxAndLabel"
 | |
|             android:textColor="?android:attr/colorAccent"
 | |
|             android:minWidth="24dp"
 | |
|             android:gravity="center_vertical|center_horizontal"/>
 | |
|     </LinearLayout>
 | |
| 
 | |
|     <androidx.constraintlayout.widget.ConstraintLayout
 | |
|         android:layout_width="wrap_content"
 | |
|         android:layout_height="wrap_content"
 | |
|         android:minHeight="?android:listPreferredItemHeight"
 | |
|         android:layout_toStartOf="@+id/dragHandle"
 | |
|         android:layout_toEndOf="@+id/numberLayout"
 | |
|         android:paddingStart="32dp">
 | |
|         <LinearLayout
 | |
|             android:layout_width="match_parent"
 | |
|             android:layout_height="wrap_content"
 | |
|             android:orientation="vertical"
 | |
|             app:layout_constraintStart_toStartOf="parent"
 | |
|             app:layout_constraintTop_toTopOf="parent"
 | |
|             app:layout_constraintEnd_toEndOf="parent"
 | |
|             app:layout_constraintBottom_toBottomOf="parent">
 | |
|             <TextView
 | |
|                 android:id="@+id/label"
 | |
|                 style="@style/LanguageCheckboxAndLabel"/>
 | |
| 
 | |
|             <TextView
 | |
|                 android:id="@+id/l10nWarn"
 | |
|                 style="@style/LanguageCheckboxAndLabel"
 | |
|                 android:textAppearance="?android:attr/textAppearanceListItemSecondary"
 | |
|                 android:textColor="?android:textColorSecondary"
 | |
|                 android:layout_marginTop="4dp"
 | |
|                 android:text="@string/locale_not_translated"/>
 | |
| 
 | |
|             <TextView
 | |
|                 android:id="@+id/default_locale"
 | |
|                 style="@style/LanguageCheckboxAndLabel"
 | |
|                 android:textAppearance="?android:attr/textAppearanceListItemSecondary"
 | |
|                 android:textColor="?android:textColorSecondary"
 | |
|                 android:layout_marginTop="4dp"
 | |
|                 android:text="@string/desc_current_default_language"/>
 | |
| 
 | |
|         </LinearLayout>
 | |
|     </androidx.constraintlayout.widget.ConstraintLayout>
 | |
| 
 | |
|     <ImageView
 | |
|         android:id="@+id/dragHandle"
 | |
|         android:layout_width="wrap_content"
 | |
|         android:layout_height="match_parent"
 | |
|         android:paddingStart="?android:attr/listPreferredItemPaddingStart"
 | |
|         android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
 | |
|         android:src="@drawable/drag_handle"
 | |
|         android:importantForAccessibility="no"
 | |
|         android:layout_alignParentEnd="true"
 | |
|         android:layout_centerVertical="true"/>
 | |
| 
 | |
| </com.android.settings.localepicker.LocaleDragCell> |