2015-10-17 13:51:54 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2016-02-13 12:08:15 +01:00
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2016-01-28 19:54:04 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
tools:context="eu.kanade.tachiyomi.ui.catalogue.CatalogueFragment">
|
2015-10-17 13:51:54 +02:00
|
|
|
|
|
|
|
|
2015-12-05 02:05:42 +01:00
|
|
|
<!-- It seems I have to wrap everything in SwipeRefreshLayout because it always take the entire height
|
|
|
|
and the description can't be seen.
|
|
|
|
Maybe with Relative layout it's better. We shouldn't put this layout inside the description layout
|
|
|
|
because the description should be scrollable and gestures could conflict with this layout.
|
|
|
|
Leaving it like this for now.
|
|
|
|
-->
|
|
|
|
<android.support.v4.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/swipe_refresh"
|
2015-10-17 13:51:54 +02:00
|
|
|
android:layout_width="match_parent"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
2015-10-17 13:51:54 +02:00
|
|
|
|
2016-02-13 12:08:15 +01:00
|
|
|
<android.support.v4.widget.NestedScrollView
|
|
|
|
android:id="@+id/manga_info_scroll_view"
|
2015-10-17 13:51:54 +02:00
|
|
|
android:layout_width="match_parent"
|
2016-01-03 13:48:14 +01:00
|
|
|
android:layout_height="match_parent">
|
2015-10-17 13:51:54 +02:00
|
|
|
|
2015-12-05 02:05:42 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2016-01-03 13:48:14 +01:00
|
|
|
android:clickable="true"
|
|
|
|
android:orientation="vertical">
|
2015-12-05 02:05:42 +01:00
|
|
|
|
2016-01-03 13:48:14 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2015-12-05 02:05:42 +01:00
|
|
|
android:layout_height="wrap_content"
|
2016-01-03 13:48:14 +01:00
|
|
|
android:padding="10dp">
|
2015-12-05 02:05:42 +01:00
|
|
|
|
2016-01-03 13:48:14 +01:00
|
|
|
<RelativeLayout
|
2015-12-05 02:05:42 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2016-01-03 13:48:14 +01:00
|
|
|
android:background="@drawable/bkg_shadow_img"
|
2015-12-05 02:05:42 +01:00
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
2016-01-03 13:48:14 +01:00
|
|
|
android:gravity="center"
|
|
|
|
android:padding="4dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/manga_cover"
|
|
|
|
android:layout_width="138dp"
|
|
|
|
android:layout_height="190dp"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
|
|
|
android:scaleType="fitXY"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:visibility="visible"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/grid_item_description"
|
2015-12-05 02:05:42 +01:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
2016-01-03 13:48:14 +01:00
|
|
|
android:paddingLeft="15.0dip">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_author_label"
|
|
|
|
style="@style/manga_detail_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignRight="@+id/manga_genres_label"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:text="@string/author"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_author"
|
|
|
|
style="@style/manga_detail_text"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignBaseline="@id/manga_author_label"
|
|
|
|
android:layout_toRightOf="@id/manga_author_label"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
|
|
|
android:maxLines="1"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:singleLine="true"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_artist_label"
|
|
|
|
style="@style/manga_detail_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignRight="@id/manga_genres_label"
|
|
|
|
android:layout_below="@id/manga_author_label"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:text="@string/artist"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_artist"
|
|
|
|
style="@style/manga_detail_text"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignBaseline="@id/manga_artist_label"
|
|
|
|
android:layout_toRightOf="@id/manga_artist_label"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
|
|
|
android:maxLines="1"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:singleLine="true"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_chapters_label"
|
|
|
|
style="@style/manga_detail_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_below="@id/manga_artist_label"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:text="@string/chapters"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_chapters"
|
|
|
|
style="@style/manga_detail_text"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignBaseline="@id/manga_chapters_label"
|
|
|
|
android:layout_toRightOf="@id/manga_chapters_label"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
|
|
|
android:maxLines="1"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:singleLine="true"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_status_label"
|
|
|
|
style="@style/manga_detail_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignRight="@id/manga_genres_label"
|
|
|
|
android:layout_below="@id/manga_chapters_label"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:text="@string/status"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_status"
|
|
|
|
style="@style/manga_detail_text"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignBaseline="@id/manga_status_label"
|
2016-01-25 12:49:56 +01:00
|
|
|
android:layout_toRightOf="@id/manga_status_label"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
|
|
|
android:maxLines="1"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:singleLine="true"/>
|
2016-01-25 12:49:56 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_source_label"
|
|
|
|
style="@style/manga_detail_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
2016-01-25 13:43:21 +01:00
|
|
|
android:layout_below="@id/manga_status_label"
|
2016-01-25 12:49:56 +01:00
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:text="@string/source"/>
|
2016-01-25 12:49:56 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_source"
|
|
|
|
style="@style/manga_detail_text"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignBaseline="@id/manga_source_label"
|
|
|
|
android:layout_toRightOf="@id/manga_source_label"
|
2016-01-03 13:48:14 +01:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
|
|
|
android:maxLines="1"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:singleLine="true"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_genres_label"
|
|
|
|
style="@style/manga_detail_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
2016-01-25 12:49:56 +01:00
|
|
|
android:layout_below="@id/manga_source_label"
|
2016-01-03 13:48:14 +01:00
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:text="@string/genres"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_genres"
|
|
|
|
style="@style/manga_detail_text"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/manga_genres_label"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:singleLine="false"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2015-12-05 02:05:42 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2016-01-03 13:48:14 +01:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="10dp">
|
2015-12-05 02:05:42 +01:00
|
|
|
|
2016-01-03 13:48:14 +01:00
|
|
|
<Button
|
|
|
|
android:id="@+id/action_favorite"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:text="@string/add_to_library"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
</LinearLayout>
|
2015-12-05 02:05:42 +01:00
|
|
|
|
2016-01-03 13:48:14 +01:00
|
|
|
<LinearLayout
|
2015-12-05 02:05:42 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-01-03 13:48:14 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="10dp">
|
2016-01-03 01:20:31 +01:00
|
|
|
|
|
|
|
<TextView
|
2016-01-03 13:48:14 +01:00
|
|
|
android:id="@+id/manga_summary_label"
|
|
|
|
style="@style/manga_detail_label"
|
2016-01-03 01:20:31 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
2016-01-03 13:48:14 +01:00
|
|
|
android:singleLine="false"
|
2016-01-28 19:54:04 +01:00
|
|
|
android:text="@string/description"/>
|
2016-01-03 13:48:14 +01:00
|
|
|
|
2016-01-03 01:20:31 +01:00
|
|
|
|
2016-01-28 19:54:04 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_summary"
|
|
|
|
style="@style/manga_detail_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
|
|
|
android:singleLine="false"/>
|
|
|
|
|
2016-01-03 13:48:14 +01:00
|
|
|
</LinearLayout>
|
2015-12-05 02:05:42 +01:00
|
|
|
|
2016-01-28 19:54:04 +01:00
|
|
|
|
2016-02-13 12:08:15 +01:00
|
|
|
|
|
|
|
|
2015-12-05 02:05:42 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
2016-02-13 12:08:15 +01:00
|
|
|
|
|
|
|
</android.support.v4.widget.NestedScrollView>
|
2015-12-05 02:05:42 +01:00
|
|
|
|
|
|
|
</android.support.v4.widget.SwipeRefreshLayout>
|
2015-10-17 13:51:54 +02:00
|
|
|
|
2016-02-13 12:08:15 +01:00
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
|
|
android:id="@+id/fab_edit"
|
|
|
|
android:layout_height="@dimen/fab_size"
|
|
|
|
android:layout_width="@dimen/fab_size"
|
|
|
|
android:layout_gravity="bottom|end"
|
|
|
|
android:layout_margin="@dimen/fab_margin"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:src="@drawable/ic_mode_edit_white_24dp"
|
|
|
|
app:backgroundTint="@color/colorPrimary"
|
|
|
|
app:layout_anchor="@id/manga_info_scroll_view"
|
|
|
|
app:layout_anchorGravity="bottom|right|end"
|
|
|
|
app:layout_behavior="eu.kanade.tachiyomi.ui.base.fab.ScrollAwareFABBehavior"/>
|
|
|
|
</android.support.design.widget.CoordinatorLayout>
|