mihon/app/src/main/res/layout/item_chapter.xml

53 lines
1.7 KiB
XML
Raw Normal View History

2015-09-26 08:25:18 -04:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="?attr/selectableItemBackground">
2015-09-26 08:25:18 -04:00
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/chapter_download_image"
2015-09-28 09:02:46 -04:00
tools:src="@mipmap/ic_launcher"/>
2015-09-26 08:25:18 -04:00
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_weight="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/chapter_title"
tools:text="Chapter 32"
android:layout_weight="1"
android:layout_gravity="center_vertical"
android:gravity="center"
android:textStyle="bold"
2015-09-28 09:02:46 -04:00
android:textSize="16sp"/>
2015-09-26 08:25:18 -04:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/chapter_pages"
tools:text="Pages: 45"
android:layout_weight="1"
android:gravity="center"
2015-09-28 09:02:46 -04:00
android:textSize="12sp"/>
2015-09-26 08:25:18 -04:00
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/chapter_date"
tools:text="22/02/2016"
android:layout_gravity="bottom"
android:layout_marginBottom="2dp"
android:textSize="12sp"
2015-09-28 09:02:46 -04:00
android:paddingRight="5dp"/>
2015-09-26 08:25:18 -04:00
</LinearLayout>