|
@@ -12,13 +12,27 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:background="@drawable/card_background">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/thumbnail"
|
|
|
- android:layout_width="match_parent"
|
|
|
+ <android.support.percent.PercentFrameLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="220dp"
|
|
|
- android:background="@color/white"
|
|
|
- tools:background="@color/md_red_100"
|
|
|
- tools:src="@mipmap/ic_launcher"/>
|
|
|
+ android:id="@+id/image_container">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/thumbnail"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/white"
|
|
|
+ tools:background="@color/md_red_100"
|
|
|
+ tools:src="@mipmap/ic_launcher"/>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_heightPercent="50%"
|
|
|
+ android:layout_gravity="bottom"
|
|
|
+ android:background="@drawable/gradient_shape"/>
|
|
|
+
|
|
|
+ </android.support.percent.PercentFrameLayout>
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/unreadText"
|
|
@@ -38,39 +52,32 @@
|
|
|
android:id="@+id/favorite_sticker"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_alignEnd="@+id/thumbnail"
|
|
|
- android:layout_alignRight="@+id/thumbnail"
|
|
|
- android:layout_alignTop="@+id/thumbnail"
|
|
|
+ android:layout_alignEnd="@+id/image_container"
|
|
|
+ android:layout_alignRight="@+id/image_container"
|
|
|
+ android:layout_alignTop="@+id/image_container"
|
|
|
android:layout_marginRight="5dp"
|
|
|
android:layout_marginTop="5dp"
|
|
|
android:src="@drawable/ic_action_favorite_blue"
|
|
|
android:visibility="invisible"/>
|
|
|
|
|
|
- <FrameLayout
|
|
|
+ <eu.kanade.tachiyomi.widget.PTSansTextView
|
|
|
+ android:id="@+id/title"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_alignBottom="@+id/thumbnail"
|
|
|
- android:background="@color/manga_cover_title_background">
|
|
|
-
|
|
|
- <eu.kanade.tachiyomi.widget.PTSansTextView
|
|
|
- android:id="@+id/title"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center_vertical"
|
|
|
- app:typeface="ptsansNarrowBold"
|
|
|
- android:lineSpacingExtra="-4dp"
|
|
|
- android:ellipsize="end"
|
|
|
- android:maxLines="2"
|
|
|
- android:padding="8dp"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="14sp"
|
|
|
- android:shadowDx="0"
|
|
|
- android:shadowDy="0"
|
|
|
- android:shadowColor="@color/primary_text"
|
|
|
- android:shadowRadius="4"
|
|
|
- tools:text="Sample name"/>
|
|
|
-
|
|
|
- </FrameLayout>
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ app:typeface="ptsansNarrowBold"
|
|
|
+ android:lineSpacingExtra="-4dp"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:maxLines="2"
|
|
|
+ android:padding="8dp"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:shadowDx="0"
|
|
|
+ android:shadowDy="0"
|
|
|
+ android:shadowColor="@color/primary_text"
|
|
|
+ android:shadowRadius="4"
|
|
|
+ android:layout_alignBottom="@+id/image_container"
|
|
|
+ tools:text="Sample name"/>
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|