feat: SettingsLib验证通过-使用App module启用
This commit is contained in:
74
CarSettings/res/xml/wifi_tether_fragment.xml
Normal file
74
CarSettings/res/xml/wifi_tether_fragment.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 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.
|
||||
-->
|
||||
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||
android:title="@string/tether_settings_title_all"
|
||||
android:key="@string/psk_wifi_tether">
|
||||
<com.android.car.settings.common.ColoredSwitchPreference
|
||||
android:key="@string/pk_wifi_tether_state_switch"
|
||||
android:title="@string/wifi_hotspot_switch_title"
|
||||
style="@style/ColoredSwitchPreferenceStyle"
|
||||
settings:occupant_front_passenger="read"
|
||||
settings:occupant_rear_passenger="read"
|
||||
settings:controller="com.android.car.settings.wifi.WifiTetherStateSwitchPreferenceController"
|
||||
settings:searchable="false"/>
|
||||
<com.android.car.settings.wifi.preferences.WifiTetherQrCodePreference
|
||||
android:key="@string/pk_wifi_tether_qr_code"
|
||||
android:selectable="false"
|
||||
settings:controller="com.android.car.settings.wifi.WifiTetherQrCodePreferenceController"
|
||||
settings:showChevron="false"/>
|
||||
<com.android.car.settings.common.ValidatedEditTextPreference
|
||||
android:key="@string/pk_wifi_tether_name"
|
||||
android:title="@string/wifi_hotspot_name_title"
|
||||
settings:occupant_front_passenger="read"
|
||||
settings:occupant_rear_passenger="read"
|
||||
settings:controller="com.android.car.settings.wifi.WifiTetherNamePreferenceController"
|
||||
settings:showChevron="false"/>
|
||||
<com.android.car.settings.common.ValidatedEditTextPreference
|
||||
android:key="@string/pk_wifi_tether_password"
|
||||
android:title="@string/wifi_hotspot_password_title"
|
||||
android:persistent="false"
|
||||
settings:occupant_front_passenger="read"
|
||||
settings:occupant_rear_passenger="read"
|
||||
settings:controller="com.android.car.settings.wifi.WifiTetherPasswordPreferenceController"
|
||||
settings:showChevron="false"/>
|
||||
<com.android.car.settings.common.DividerPreference/>
|
||||
<SwitchPreference
|
||||
android:key="@string/pk_wifi_tether_auto_off"
|
||||
android:title="@string/wifi_hotspot_auto_off_title"
|
||||
android:summary="@string/wifi_hotspot_auto_off_summary"
|
||||
android:persistent="false"
|
||||
settings:occupant_front_passenger="read"
|
||||
settings:occupant_rear_passenger="read"
|
||||
settings:controller="com.android.car.settings.wifi.WifiTetherAutoOffPreferenceController"/>
|
||||
<ListPreference
|
||||
android:key="@string/pk_wifi_tether_security"
|
||||
android:title="@string/wifi_hotspot_security_title"
|
||||
android:dialogTitle="@string/wifi_hotspot_security_title"
|
||||
android:persistent="false"
|
||||
settings:occupant_front_passenger="read"
|
||||
settings:occupant_rear_passenger="read"
|
||||
settings:controller="com.android.car.settings.wifi.WifiTetherSecurityPreferenceController"/>
|
||||
<ListPreference
|
||||
android:key="@string/pk_wifi_tether_ap_band"
|
||||
android:title="@string/wifi_hotspot_ap_band_title"
|
||||
android:dialogTitle="@string/wifi_hotspot_ap_band_title"
|
||||
android:persistent="false"
|
||||
settings:occupant_front_passenger="read"
|
||||
settings:occupant_rear_passenger="read"
|
||||
settings:controller="com.android.car.settings.wifi.WifiTetherApBandPreferenceController"/>
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user