Add proguard rules. Show unread count. Use compact font
This commit is contained in:
@@ -2,35 +2,58 @@
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
|
||||
<ImageView
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="144dp"
|
||||
android:id="@+id/thumbnailImageView"
|
||||
tools:src="@mipmap/ic_launcher"
|
||||
tools:background="@color/md_red_100"/>
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="144dp"
|
||||
android:id="@+id/thumbnailImage"
|
||||
tools:src="@mipmap/ic_launcher"
|
||||
tools:background="@color/md_red_100"/>
|
||||
|
||||
<eu.kanade.mangafeed.widget.PTSansTextView
|
||||
android:id="@+id/unreadText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="123"
|
||||
app:typeface="ptsansNarrowBold"
|
||||
android:background="@color/md_red_300"
|
||||
android:layout_gravity="right"
|
||||
android:textSize="12sp"
|
||||
android:visibility="gone"
|
||||
android:textColor="@color/white"
|
||||
android:paddingLeft="3dp"
|
||||
android:paddingRight="3dp"
|
||||
android:paddingTop="1dp"
|
||||
android:paddingBottom="1dp" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="36dp"
|
||||
android:id="@+id/footerLinearLayout"
|
||||
android:background="@color/md_blue_100">
|
||||
android:background="@color/md_grey_300">
|
||||
|
||||
<TextView
|
||||
<eu.kanade.mangafeed.widget.PTSansTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
app:typeface="ptsansNarrowBold"
|
||||
android:ellipsize="middle"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/black_87pc"
|
||||
android:textStyle="bold"
|
||||
android:textSize="12sp"
|
||||
android:id="@+id/nameTextView"
|
||||
android:textSize="13sp"
|
||||
android:id="@+id/titleText"
|
||||
android:paddingRight="8dp"
|
||||
android:paddingLeft="8dp"
|
||||
tools:text="Sample name"/>
|
||||
|
||||
14
app/src/main/res/values/attrs.xml
Normal file
14
app/src/main/res/values/attrs.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Define the values for the attribute -->
|
||||
<attr name="typeface" format="enum">
|
||||
<enum name="ptsansNarrow" value="0"/>
|
||||
<enum name="ptsansNarrowBold" value="1"/>
|
||||
</attr>
|
||||
|
||||
<!-- Tell Android that the class "CustomButton" can be styled,
|
||||
and which attributes it supports -->
|
||||
<declare-styleable name="PTSansTextView">
|
||||
<attr name="typeface"/>
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user