fix: 引入Settings的Module
This commit is contained in:
68
Settings/res/xml/wifi_tether_settings.xml
Normal file
68
Settings/res/xml/wifi_tether_settings.xml
Normal file
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2017 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/wifi_hotspot_checkbox_text">
|
||||
|
||||
<com.android.settings.wifi.tether.WifiTetherSsidPreference
|
||||
android:key="wifi_tether_network_name"
|
||||
android:title="@string/wifi_hotspot_name_title"
|
||||
android:summary="@string/summary_placeholder"/>
|
||||
|
||||
<ListPreference
|
||||
android:key="wifi_tether_security"
|
||||
android:title="@string/wifi_security"
|
||||
android:summary="@string/summary_placeholder"
|
||||
android:entries="@array/wifi_tether_security"
|
||||
android:entryValues="@array/wifi_tether_security_values"/>
|
||||
|
||||
<Preference
|
||||
android:key="wifi_hotspot_security"
|
||||
android:title="@string/wifi_security"
|
||||
android:summary="@string/summary_placeholder"
|
||||
android:fragment="com.android.settings.wifi.tether.WifiHotspotSecuritySettings"
|
||||
settings:isPreferenceVisible="@bool/config_show_wifi_hotspot_speed"/>
|
||||
|
||||
<com.android.settings.widget.ValidatedEditTextPreference
|
||||
android:key="wifi_tether_network_password"
|
||||
android:persistent="false"
|
||||
android:title="@string/wifi_hotspot_password_title"/>
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
android:key="wifi_tether_auto_turn_off"
|
||||
android:title="@string/wifi_hotspot_auto_off_title"
|
||||
android:summary="@string/wifi_hotspot_auto_off_summary"/>
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
android:key="wifi_tether_maximize_compatibility"
|
||||
android:title="@string/wifi_hotspot_maximize_compatibility"/>
|
||||
|
||||
<Preference
|
||||
android:key="wifi_hotspot_speed"
|
||||
android:title="@string/wifi_hotspot_speed_title"
|
||||
android:summary="@string/summary_placeholder"
|
||||
android:fragment="com.android.settings.wifi.tether.WifiHotspotSpeedSettings"
|
||||
settings:isPreferenceVisible="@bool/config_show_wifi_hotspot_speed"/>
|
||||
|
||||
<Preference
|
||||
android:key="wifi_hotspot_instant"
|
||||
android:title="@string/wifi_hotspot_instant_title"
|
||||
android:summary="@string/summary_placeholder"
|
||||
settings:isPreferenceVisible="false"/>
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user