Store total chapters from MAL and automatically set as completed if it's the last chapter. Other minor changes

This commit is contained in:
inorichi
2015-12-31 19:15:24 +01:00
parent f26a60f1ba
commit f9a97631f2
13 changed files with 181 additions and 51 deletions

View File

@@ -1,36 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="?attr/actionBarSize"
android:gravity="center"
android:paddingLeft="@dimen/margin_left"
android:paddingRight="@dimen/margin_right"
android:orientation="horizontal">
<EditText
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:id="@+id/myanimelist_search_field"/>
android:id="@+id/myanimelist_search_field"
android:hint="@string/title_hint" />
<Button
<!--
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/action_search"
android:id="@+id/myanimelist_search_button"/>
android:background="@drawable/ic_clear_grey600_24dp"/>
-->
</LinearLayout>
<ProgressBar
android:id="@+id/progress"
style="?android:attr/progressBarStyle"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:paddingTop="32dp"
android:paddingBottom="32dp"
android:layout_gravity="center_vertical|center_horizontal"
android:visibility="gone"/>
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/myanimelist_search_results"
android:scrollbarStyle="outsideOverlay"
android:divider="@null"
android:dividerHeight="0dp"
android:clipToPadding="false"
android:choiceMode="singleChoice"
android:listSelector="@color/list_choice_pressed_bg_light">
</ListView>
android:listSelector="@color/list_choice_pressed_bg_light"
android:visibility="gone"/>
</LinearLayout>