Xml文件  |  65行  |  2.19 KB

<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2015 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:app="http://schemas.android.com/apk/res-auto"
    app:title="@string/main_label">

    <ListPreference
        app:key="preset"
        app:title="@string/setting_preset_name"
        app:entries="@array/setting_preset_choices"
        app:entryValues="@array/setting_preset_values"
        app:defaultValue="standard"
        />
    <Preference
        app:key="backlight"
        app:title="@string/setting_backlight_name"
        app:defaultValue="@integer/standard_setting_backlight"
        />
    <Preference
        app:key="contrast"
        app:title="@string/setting_contrast_name"
        app:defaultValue="@integer/standard_setting_contrast"
        />
    <Preference
        app:key="brightness"
        app:title="@string/setting_brightness_name"
        app:defaultValue="@integer/standard_setting_brightness"
        />
    <Preference
        app:key="sharpness"
        app:title="@string/setting_sharpness_name"
        app:defaultValue="@integer/standard_setting_sharpness"
        />
    <Preference
        app:key="color"
        app:title="@string/setting_color_name"
        app:defaultValue="@integer/standard_setting_color"
        />
    <Preference
        app:key="tint"
        app:title="@string/setting_tint_name"
        app:defaultValue="@integer/standard_setting_tint"
        />
    <Preference
        app:key="reset"
        app:title="@string/setting_reset_defaults_name"
        app:persistent="false"
        />
</PreferenceScreen>