0804-APP-Preference-default-values
来源:互联网 发布:简单绘图软件 编辑:程序博客网 时间:2024/05/19 05:01
展示有默认值的Preferences,这个例子除了xmlt的没有什么特殊的
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2008 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.--><!-- This is a primitive example showing how to set default values for preferences. See DefaultValues.java for more information. --><PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <CheckBoxPreference android:key="default_toggle" android:defaultValue="true" android:title="@string/title_checkbox_preference" android:summary="@string/summary_checkbox_preference" /> <EditTextPreference android:key="default_edittext" android:defaultValue="@string/default_value_edittext_preference" android:title="@string/title_edittext_preference" android:summary="@string/summary_edittext_preference" android:dialogTitle="@string/dialog_title_edittext_preference" /> <ListPreference android:key="default_list" android:defaultValue="@string/default_value_list_preference" android:title="@string/title_list_preference" android:summary="@string/summary_list_preference" android:entries="@array/entries_list_preference" android:entryValues="@array/entryvalues_list_preference" android:dialogTitle="@string/dialog_title_list_preference" /></PreferenceScreen>
注释:对于ListPreference来说default_value_list_preference是arry entryvalues_list_preference中的某一个值
0 0
- 0804-APP-Preference-default-values
- Android ApiDemos示例解析(33):App->Preferences->Default Values
- Python Default Argument Values
- python function default values
- 0803-APP-Preference-dependency
- Mahout:DataModel doesn't have preference values
- 12.2 Default values?Static variables.
- Default Parameter Values in Python
- Java - Default Values and Initialization
- 【起航计划 029】2015 起航计划 Android APIDemo的魔鬼步伐 28 App->Preferences->Default Values 偏好默认值
- java eight data types default values
- The default values for java data types:
- Define default values for buyers - OMFI (EVO)
- jquery-clear-default-input-values-once
- What Are the Default HotSpot JVM Values
- C# app.config read values
- Preference
- Preference
- 我和父母的小故事
- 矩阵求和-重载运算符
- 黑马程序员_java枚举、反射
- document.all("")的使用
- android 目录结构
- 0804-APP-Preference-default-values
- docker
- 2. 预处理指令
- jQuery formValidator使用说明
- 在Win xp上安装oracle 9i数据库后,马上修改计算名,监听服务起不了的解决方法
- vs2010 动态库的生成和使用
- Mahout 文本分类过程
- 字节序的转换
- Android 关于inflate