Show selected decoder and background color in the popup menu. Reload adapter when the decoder changes.
|
After Width: | Height: | Size: 227 B |
|
After Width: | Height: | Size: 249 B |
|
After Width: | Height: | Size: 136 B |
|
After Width: | Height: | Size: 153 B |
|
After Width: | Height: | Size: 142 B |
|
After Width: | Height: | Size: 148 B |
|
After Width: | Height: | Size: 234 B |
|
After Width: | Height: | Size: 234 B |
|
After Width: | Height: | Size: 366 B |
|
After Width: | Height: | Size: 387 B |
|
After Width: | Height: | Size: 434 B |
|
After Width: | Height: | Size: 499 B |
5
app/src/main/res/drawable/reader_background_checkbox.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_checked="true" android:drawable="@drawable/reader_background_checkbox_selected" />
|
||||
<item android:drawable="@drawable/reader_background_checkbox_unselected" />
|
||||
</selector>
|
||||
@@ -8,17 +8,30 @@
|
||||
android:paddingTop="5dp"
|
||||
android:paddingBottom="5dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/reader_theme"
|
||||
android:paddingLeft="32dp"
|
||||
style="@style/reader_menu_settings_item"
|
||||
android:text="@string/pref_reader_theme"/>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/image_decoder"
|
||||
android:paddingLeft="32dp"
|
||||
<TextView
|
||||
android:id="@+id/image_decoder_initial"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/colorAccent"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/image_decoder"
|
||||
style="@style/reader_menu_settings_item"
|
||||
android:text="@string/pref_image_decoder"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/reader_theme"
|
||||
style="@style/reader_menu_settings_item"
|
||||
android:text="@string/pref_image_decoder"/>
|
||||
android:button="@drawable/reader_background_checkbox"
|
||||
android:text="@string/pref_reader_theme"/>
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/enable_transitions"
|
||||
|
||||