Improve MAL support (UI is very simple yet).

This commit is contained in:
inorichi
2015-12-14 13:24:05 +01:00
parent a1d67c0fce
commit 8dca7fe79a
30 changed files with 569 additions and 392 deletions

View File

@@ -35,7 +35,7 @@
android:layout_height="wrap_content"
android:inputType="number"
android:ems="10"
android:id="@+id/myanimelist_last_chapter_read"/>
android:id="@+id/last_chapter_read"/>
<Button
android:layout_width="wrap_content"
@@ -45,5 +45,40 @@
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Score"
android:layout_marginRight="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/score"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Status"
android:layout_marginRight="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/status"/>
</LinearLayout>
</LinearLayout>

View File

@@ -22,7 +22,7 @@
<item>@string/webtoon_viewer</item>
</string-array>
<string-array name="download_threads">
<string-array name="download_slots">
<item>1</item>
<item>2</item>
<item>3</item>

View File

@@ -16,7 +16,7 @@
<string name="pref_custom_brightness_value_key">pref_custom_brightness_value_key</string>
<string name="pref_download_directory_key">pref_download_directory_key</string>
<string name="pref_download_threads_key">pref_download_threads_key</string>
<string name="pref_download_slots_key">pref_download_slots_key</string>
<string name="pref_chapter_cache_size_key">pref_chapter_cache_size_key</string>
<string name="pref_clear_chapter_cache_key">pref_clear_chapter_cache_key</string>

View File

@@ -56,7 +56,7 @@
<!-- Downloads section -->
<string name="pref_download_directory">Downloads directory</string>
<string name="pref_download_threads">Download threads</string>
<string name="pref_download_slots">Simultaneous downloads</string>
<!-- Cache section -->
<string name="pref_chapter_cache_size">Chapters cache size</string>

View File

@@ -5,11 +5,11 @@
android:title="@string/pref_download_directory"
android:key="@string/pref_download_directory_key"/>
<ListPreference
android:title="@string/pref_download_threads"
android:key="@string/pref_download_threads_key"
android:entries="@array/download_threads"
android:entryValues="@array/download_threads"
<eu.kanade.mangafeed.ui.setting.preference.IntListPreference
android:title="@string/pref_download_slots"
android:key="@string/pref_download_slots_key"
android:entries="@array/download_slots"
android:entryValues="@array/download_slots"
android:defaultValue="1"
android:summary="%s"/>