/[projects]/android/TrainInfo/res/xml/preferences.xml
ViewVC logotype

Annotation of /android/TrainInfo/res/xml/preferences.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1446 - (hide annotations) (download) (as text)
Wed May 4 20:25:15 2011 UTC (13 years, 1 month ago) by torben
File MIME type: text/xml
File size: 2153 byte(s)
Add preferences
1 torben 1446 <?xml version="1.0" encoding="utf-8"?>
2     <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
3    
4     <ListPreference
5     android:title="@string/preference_locationtitle"
6     android:summary="@string/preference_locationsummary"
7     android:key="location"
8     android:defaultValue="GPS"
9     android:entries="@array/locationStrings"
10     android:entryValues="@array/locationValues" />
11    
12     <ListPreference
13     android:title="@string/preference_traintypetitle"
14     android:summary="@string/preference_traintypesummary"
15     android:key="traintype"
16     android:defaultValue="REGIONAL"
17     android:entries="@array/traintypeStrings"
18     android:entryValues="@array/traintypeValues" />
19    
20    
21     <!--
22    
23     <PreferenceCategory
24     android:title="First Category">
25     </PreferenceCategory>
26     <PreferenceCategory
27     android:title="Second Category">
28     <EditTextPreference
29     android:name="EditText Preference"
30     android:summary="This allows you to enter a string"
31     android:defaultValue="Nothing"
32     android:title="Edit This Text"
33     android:key="editTextPref" />
34     <RingtonePreference
35     android:name="Ringtone Preference"
36     android:summary="Select a ringtone"
37     android:title="Ringtones"
38     android:key="ringtonePref" />
39     <PreferenceScreen
40     android:key="SecondPrefScreen"
41     android:title="Second PreferenceScreen"
42     android:summary="This is a second PreferenceScreen">
43     <EditTextPreference
44     android:name="An other EditText Preference"
45     android:summary="This is a preference in the second PreferenceScreen"
46     android:title="Edit text"
47     android:key="SecondEditTextPref" />
48     </PreferenceScreen>
49     <Preference
50     android:title="Custom Preference"
51     android:summary="This works almost like a button"
52     android:key="customPref" />
53     </PreferenceCategory>
54     -->
55     </PreferenceScreen>

  ViewVC Help
Powered by ViewVC 1.1.20