[Settings] Refactor: Add App language layout
Bug: 388199937 Test: manual Flag: EXEMPT refactor Change-Id: I4062bfe0e882a40fb55fbf0b2164b558fe83328b
This commit is contained in:
51
res/xml/app_language_picker.xml
Normal file
51
res/xml/app_language_picker.xml
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2024 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<PreferenceScreen
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:title="@string/app_locale_picker_title"
|
||||||
|
android:key="key_app_language_picker_page">
|
||||||
|
|
||||||
|
<com.android.settingslib.widget.TopIntroPreference
|
||||||
|
android:key="app_locale_disclaimer"
|
||||||
|
android:title="@string/desc_app_locale_disclaimer"
|
||||||
|
settings:isPreferenceVisible="false"
|
||||||
|
android:order="1"/>
|
||||||
|
|
||||||
|
<com.android.settingslib.widget.IntroPreference
|
||||||
|
android:key="app_intro"
|
||||||
|
android:order="2"/>
|
||||||
|
|
||||||
|
<com.android.settingslib.widget.TopIntroPreference
|
||||||
|
android:key="app_locale_description"
|
||||||
|
android:title="@string/desc_no_available_supported_locale"
|
||||||
|
android:order="3"
|
||||||
|
android:selectable="false"
|
||||||
|
settings:isPreferenceVisible="false"
|
||||||
|
settings:searchable="false"/>
|
||||||
|
|
||||||
|
<PreferenceCategory
|
||||||
|
android:key="app_language_suggested_category"
|
||||||
|
android:title="@string/suggested_locales_title"
|
||||||
|
android:order="4"/>
|
||||||
|
|
||||||
|
<PreferenceCategory
|
||||||
|
android:key="app_language_all_supported_category"
|
||||||
|
android:title="@string/all_supported_locales_title"
|
||||||
|
android:order="5"/>
|
||||||
|
|
||||||
|
</PreferenceScreen>
|
Reference in New Issue
Block a user