The Android Open Source Project | b64d345 | 2009-03-03 19:32:20 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2008 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <!-- This is a primitive example showing the different types of preferences available. --> |
| 18 | <PreferenceScreen |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android"> |
| 20 | |
| 21 | <PreferenceCategory |
| 22 | android:title="@string/pref_camera_general_settings_category"> |
| 23 | |
| 24 | <CheckBoxPreference |
| 25 | android:key="pref_camera_recordlocation_key" |
| 26 | android:title="@string/pref_camera_recordlocation_title" |
| 27 | android:summary="@string/pref_camera_recordlocation_summary" |
| 28 | android:defaultValue="false"/> |
| 29 | </PreferenceCategory> |
Owen Lin | 3665f92 | 2009-09-02 18:03:42 +0800 | [diff] [blame] | 30 | |
The Android Open Source Project | b64d345 | 2009-03-03 19:32:20 -0800 | [diff] [blame] | 31 | <PreferenceCategory |
Chih-Chung Chang | 82ded20 | 2009-05-20 14:24:25 +0800 | [diff] [blame] | 32 | android:title="@string/pref_camera_video_settings_category"> |
The Android Open Source Project | b64d345 | 2009-03-03 19:32:20 -0800 | [diff] [blame] | 33 | <!-- android:summary is filled in by CameraSettings --> |
| 34 | <ListPreference |
| 35 | android:key="pref_camera_videoquality_key" |
| 36 | android:defaultValue="@string/pref_camera_videoquality_default" |
| 37 | android:title="@string/pref_camera_videoquality_title" |
| 38 | android:entries="@array/pref_camera_videoquality_entries" |
| 39 | android:entryValues="@array/pref_camera_videoquality_entryvalues" |
| 40 | android:dialogTitle="@string/pref_camera_videoquality_dialogtitle" /> |
Chih-Chung Chang | 82ded20 | 2009-05-20 14:24:25 +0800 | [diff] [blame] | 41 | <ListPreference |
| 42 | android:key="pref_camera_video_duration_key" |
| 43 | android:defaultValue="@string/pref_camera_video_duration_default" |
| 44 | android:title="@string/pref_camera_video_duration_title" |
| 45 | android:entries="@array/pref_camera_video_duration_entries" |
| 46 | android:entryValues="@array/pref_camera_video_duration_entryvalues" |
| 47 | android:dialogTitle="@string/pref_camera_video_duration_dialogtitle" /> |
The Android Open Source Project | b64d345 | 2009-03-03 19:32:20 -0800 | [diff] [blame] | 48 | </PreferenceCategory> |
Wu-cheng Li | 8734153 | 2009-04-02 01:39:36 -0700 | [diff] [blame] | 49 | |
| 50 | <PreferenceCategory |
| 51 | android:title="@string/pref_camera_picture_settings_category"> |
Wu-cheng Li | 9dacf7b | 2009-04-09 23:46:15 -0700 | [diff] [blame] | 52 | <!-- summary, entries, entryValues are filled in by CameraSettings --> |
Wu-cheng Li | 8734153 | 2009-04-02 01:39:36 -0700 | [diff] [blame] | 53 | <ListPreference |
Wu-cheng Li | 9dacf7b | 2009-04-09 23:46:15 -0700 | [diff] [blame] | 54 | android:key="pref_camera_picturesize_key" |
| 55 | android:defaultValue="@string/pref_camera_picturesize_default" |
| 56 | android:title="@string/pref_camera_picturesize_title" |
Wu-cheng Li | 5945773 | 2009-08-03 22:25:29 +0800 | [diff] [blame] | 57 | android:entries="@array/pref_camera_picturesize_entries" |
| 58 | android:entryValues="@array/pref_camera_picturesize_entryvalues" |
Wu-cheng Li | 9dacf7b | 2009-04-09 23:46:15 -0700 | [diff] [blame] | 59 | android:dialogTitle="@string/pref_camera_picturesize_dialogtitle" /> |
Wu-cheng Li | e077000 | 2009-04-13 07:02:51 -0700 | [diff] [blame] | 60 | |
| 61 | <ListPreference |
| 62 | android:key="pref_camera_jpegquality_key" |
| 63 | android:defaultValue="@string/pref_camera_jpegquality_default" |
| 64 | android:title="@string/pref_camera_jpegquality_title" |
| 65 | android:entries="@array/pref_camera_jpegquality_entries" |
| 66 | android:entryValues="@array/pref_camera_jpegquality_entryvalues" |
| 67 | android:dialogTitle="@string/pref_camera_jpegquality_dialogtitle" /> |
Wu-cheng Li | 0f56ef5 | 2009-04-15 17:47:56 +0800 | [diff] [blame] | 68 | |
| 69 | <ListPreference |
| 70 | android:key="pref_camera_focusmode_key" |
| 71 | android:defaultValue="@string/pref_camera_focusmode_default" |
| 72 | android:title="@string/pref_camera_focusmode_title" |
| 73 | android:entries="@array/pref_camera_focusmode_entries" |
| 74 | android:entryValues="@array/pref_camera_focusmode_entryvalues" |
| 75 | android:dialogTitle="@string/pref_camera_focusmode_dialogtitle" /> |
President Li | 5f6484a | 2009-04-02 02:38:09 -0700 | [diff] [blame] | 76 | |
| 77 | <ListPreference |
| 78 | android:key="pref_camera_whitebalance_key" |
| 79 | android:defaultValue="@string/pref_camera_whitebalance_default" |
| 80 | android:title="@string/pref_camera_whitebalance_title" |
| 81 | android:entries="@array/pref_camera_whitebalance_entries" |
| 82 | android:entryValues="@array/pref_camera_whitebalance_entryvalues" |
| 83 | android:dialogTitle="@string/pref_camera_whitebalance_dialogtitle" /> |
| 84 | |
| 85 | <ListPreference |
| 86 | android:key="pref_camera_coloreffect_key" |
| 87 | android:defaultValue="@string/pref_camera_coloreffect_default" |
| 88 | android:title="@string/pref_camera_coloreffect_title" |
| 89 | android:entries="@array/pref_camera_coloreffect_entries" |
| 90 | android:entryValues="@array/pref_camera_coloreffect_entryvalues" |
| 91 | android:dialogTitle="@string/pref_camera_coloreffect_dialogtitle" /> |
Wu-cheng Li | 8734153 | 2009-04-02 01:39:36 -0700 | [diff] [blame] | 92 | |
Owen Lin | 8d0ba00 | 2009-09-08 17:03:07 +0800 | [diff] [blame^] | 93 | <ListPreference |
| 94 | android:key="pref_camera_scenemode_key" |
| 95 | android:defaultValue="@string/pref_camera_scenemode_default" |
| 96 | android:title="@string/pref_camera_scenemode_title" |
| 97 | android:entries="@array/pref_camera_scenemode_entries" |
| 98 | android:entryValues="@array/pref_camera_scenemode_entryvalues" |
| 99 | android:dialogTitle="@string/pref_camera_scenemode_dialogtitle" /> |
| 100 | </PreferenceCategory> |
The Android Open Source Project | b64d345 | 2009-03-03 19:32:20 -0800 | [diff] [blame] | 101 | </PreferenceScreen> |