mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-05 01:47:24 +00:00
Added an option to reset all preferences and implemented a different popup for selecting preferences. Also fixed a context menu bug.
This commit is contained in:
parent
f37393157b
commit
be4dd79e89
11 changed files with 309 additions and 90 deletions
48
app/src/main/res/xml/ui_preferences.xml
Normal file
48
app/src/main/res/xml/ui_preferences.xml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<PreferenceCategory
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:title="Colors"
|
||||
app:allowDividerAbove="false">
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="#00000000"
|
||||
android:entries="@array/bg_options"
|
||||
android:entryValues="@array/bg_values"
|
||||
app:key="bgColor"
|
||||
app:title="Background Color"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="#FFF3F3F3"
|
||||
android:entries="@array/color_options"
|
||||
android:entryValues="@array/color_values"
|
||||
app:key="textColor"
|
||||
app:title="Text Color"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
android:title="Operation"
|
||||
app:allowDividerAbove="false">
|
||||
<eu.ottop.yamlauncher.settings.SpinnerPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="200"
|
||||
android:entries="@array/animation_options"
|
||||
android:entryValues="@array/animation_values"
|
||||
app:key="animationSpeed"
|
||||
app:title="Animation Speed"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Show Status Bar"
|
||||
app:key="barVisibility" />
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Loading…
Add table
Add a link
Reference in a new issue