mirror of
https://github.com/sismics/docs.git
synced 2026-02-14 00:01:06 +00:00
Android: settings activity
This commit is contained in:
@@ -1,8 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item android:id="@+id/action_search"
|
||||
android:title="@string/action_search"
|
||||
app:showAsAction="ifRoom"
|
||||
app:actionViewClass="android.support.v7.widget.SearchView" />
|
||||
|
||||
<item
|
||||
android:id="@+id/settings"
|
||||
app:showAsAction="collapseActionView"
|
||||
android:title="@string/settings">
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:id="@+id/logout"
|
||||
app:showAsAction="collapseActionView"
|
||||
android:title="@string/logout">
|
||||
</item>
|
||||
|
||||
</menu>
|
||||
18
docs-android/app/src/main/res/values/arrays.xml
Normal file
18
docs-android/app/src/main/res/values/arrays.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string-array name="cacheSizes">
|
||||
<item>5MB</item>
|
||||
<item>10MB</item>
|
||||
<item>30MB</item>
|
||||
<item>100MB</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="cacheSizesValues">
|
||||
<item>5</item>
|
||||
<item>10</item>
|
||||
<item>30</item>
|
||||
<item>100</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
@@ -56,5 +56,21 @@
|
||||
<string name="send_share_to">Send share link to</string>
|
||||
<string name="upload_file">Upload a file</string>
|
||||
<string name="upload_from">Upload a file from</string>
|
||||
<string name="settings">Settings</string>
|
||||
<string name="logout">Sign Out</string>
|
||||
<string name="version">Version</string>
|
||||
<string name="build">Build</string>
|
||||
<string name="pref_advanced_category">Advanced settings</string>
|
||||
<string name="pref_about_category">About</string>
|
||||
<string name="pref_github">GitHub</string>
|
||||
<string name="pref_issue">Report a bug</string>
|
||||
<string name="pref_clear_cache_title">Clear cache</string>
|
||||
<string name="pref_clear_cache_summary">Cleanup cached files</string>
|
||||
<string name="pref_clear_cache_success">Cache cleared</string>
|
||||
<string name="pref_clear_history_title">Clear search history</string>
|
||||
<string name="pref_clear_history_summary">Wipe the recent search suggestions</string>
|
||||
<string name="pref_clear_history_success">Search history cleared</string>
|
||||
<string name="pref_cache_size">Cache size</string>
|
||||
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -1,3 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="pref_advanced_category"
|
||||
android:title="@string/pref_advanced_category">
|
||||
|
||||
<ListPreference
|
||||
android:key="pref_cacheSize"
|
||||
android:title="@string/pref_cache_size"
|
||||
android:dialogTitle="@string/pref_cache_size"
|
||||
android:entries="@array/cacheSizes"
|
||||
android:entryValues="@array/cacheSizesValues"
|
||||
android:defaultValue="10"/>
|
||||
|
||||
<Preference
|
||||
android:key="pref_clearCache"
|
||||
android:title="@string/pref_clear_cache_title"
|
||||
android:summary="@string/pref_clear_cache_summary">
|
||||
</Preference>
|
||||
|
||||
<Preference
|
||||
android:key="pref_clearHistory"
|
||||
android:title="@string/pref_clear_history_title"
|
||||
android:summary="@string/pref_clear_history_summary">
|
||||
</Preference>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="pref_about_category"
|
||||
android:title="@string/pref_about_category">
|
||||
|
||||
<Preference
|
||||
android:key="pref_github"
|
||||
android:title="@string/pref_github"
|
||||
android:summary="github.com/sismics/docs">
|
||||
<intent
|
||||
android:action="android.intent.action.VIEW"
|
||||
android:data="https://github.com/sismics/docs"/>
|
||||
</Preference>
|
||||
|
||||
<Preference
|
||||
android:key="pref_issue"
|
||||
android:title="@string/pref_issue"
|
||||
android:summary="github.com/sismics/docs/issues">
|
||||
<intent
|
||||
android:action="android.intent.action.VIEW"
|
||||
android:data="https://github.com/sismics/docs/issues"/>
|
||||
</Preference>
|
||||
|
||||
<Preference
|
||||
android:key="pref_version"
|
||||
android:title="@string/app_name"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user