Commit a9fb9749d406b9d0fa3af0ce92f7a812c5861c1c
1 parent
77b620f4
--no commit message
Showing
2 changed files
with
13 additions
and
0 deletions
res/values/strings.xml
@@ -30,5 +30,17 @@ | @@ -30,5 +30,17 @@ | ||
30 | <string name="alertLogoDescription">Alerta!</string> | 30 | <string name="alertLogoDescription">Alerta!</string> |
31 | <string name="itemType">Item type</string> | 31 | <string name="itemType">Item type</string> |
32 | <string name="buffering_text">Buffering...</string> | 32 | <string name="buffering_text">Buffering...</string> |
33 | + <string-array name="selectorEntries"> | ||
34 | + <item >High Quality</item> | ||
35 | + <item >Medium Quality</item> | ||
36 | + <item >Low Quality</item> | ||
37 | + </string-array> | ||
38 | + <string-array name="selectorValues"> | ||
39 | + <item >0</item> | ||
40 | + <item >1</item> | ||
41 | + <item >2</item> | ||
42 | + </string-array> | ||
43 | + <string name="selectorTitle">Qualitat inicial</string> | ||
44 | + <string name="selectorSummary">Sel·lecciona la qualitat inicial de reproducció</string> | ||
33 | 45 | ||
34 | </resources> | 46 | </resources> |
35 | \ No newline at end of file | 47 | \ No newline at end of file |
res/xml/prefs.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > | 2 | <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > |
3 | <EditTextPreference android:key="server" android:title="@string/url" android:summary="@string/urlhint" android:defaultValue="@string/defaultURL"/> | 3 | <EditTextPreference android:key="server" android:title="@string/url" android:summary="@string/urlhint" android:defaultValue="@string/defaultURL"/> |
4 | + <ListPreference android:key="@string/selectorTitle" android:dialogTitle="@string/selectorTitle" android:entries="@array/selectorEntries" android:dialogMessage="@string/selectorSummary" android:entryValues="@array/selectorValues" android:title="@string/selectorTitle" android:summary="@string/selectorSummary"/> | ||
4 | </PreferenceScreen> | 5 | </PreferenceScreen> |
5 | \ No newline at end of file | 6 | \ No newline at end of file |