parent
ca30fd6088
commit
d0567de4e6
@ -1,56 +1,112 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout
|
<android.support.constraint.ConstraintLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/material_component_lists_single_line_with_avatar_height"
|
android:layout_height="@dimen/material_component_lists_single_line_with_avatar_height"
|
||||||
android:background="?attr/selectable_list_drawable">
|
android:layout_gravity="center_vertical"
|
||||||
|
android:background="?attr/selectable_list_drawable"
|
||||||
|
tools:layout_editor_absoluteY="25dp"
|
||||||
|
tools:layout_editor_absoluteX="0dp">
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/thumbnail"
|
android:id="@+id/thumbnail"
|
||||||
android:layout_width="@dimen/material_component_lists_single_line_with_avatar_height"
|
android:layout_width="@dimen/material_component_lists_single_line_with_avatar_height"
|
||||||
android:layout_height="@dimen/material_component_lists_single_line_with_avatar_height"
|
android:layout_height="@dimen/material_component_lists_single_line_with_avatar_height"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:paddingEnd="0dp"
|
tools:src="@mipmap/ic_launcher"
|
||||||
android:paddingLeft="@dimen/material_component_lists_icon_left_padding"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
android:paddingRight="0dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:paddingStart="@dimen/material_component_lists_icon_left_padding"/>
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
android:paddingTop="8dp"
|
||||||
<RelativeLayout
|
android:paddingBottom="8dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_marginLeft="8dp"/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/title"
|
||||||
|
style="@style/TextAppearance.Regular.SubHeading"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:ellipsize="end"
|
||||||
android:paddingLeft="@dimen/material_component_lists_text_left_padding"
|
android:maxLines="1"
|
||||||
android:paddingStart="@dimen/material_component_lists_text_left_padding"
|
tools:text="Manga title"
|
||||||
android:paddingRight="@dimen/material_component_lists_right_padding"
|
android:layout_marginStart="8dp"
|
||||||
android:paddingEnd="@dimen/material_component_lists_right_padding">
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
app:layout_constraintLeft_toRightOf="@+id/thumbnail"
|
||||||
|
android:layout_marginLeft="8dp"
|
||||||
|
app:layout_constraintRight_toLeftOf="@+id/local_text"
|
||||||
|
android:layout_marginRight="8dp"
|
||||||
|
app:layout_constraintVertical_bias="0.523"
|
||||||
|
app:layout_constraintHorizontal_bias="0.007"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/unread_text"
|
android:id="@+id/unread_text"
|
||||||
style="@style/TextAppearance.Regular.Caption.Hint"
|
style="@style/TextAppearance.Regular.Caption.Light"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
android:background="@color/colorAccentLight"
|
||||||
|
android:paddingBottom="1dp"
|
||||||
|
android:paddingLeft="3dp"
|
||||||
|
android:paddingRight="3dp"
|
||||||
|
android:paddingTop="1dp"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:paddingStart="4dp"
|
|
||||||
android:paddingLeft="4dp"
|
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:textAppearance="@style/TextAppearance.Regular.Caption.Hint"
|
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:text="22"/>
|
tools:text="130"
|
||||||
|
tools:visibility="visible"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
android:layout_marginRight="8dp"
|
||||||
|
app:layout_constraintRight_toRightOf="parent"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/title"
|
android:id="@+id/download_text"
|
||||||
style="@style/TextAppearance.Regular.SubHeading"
|
style="@style/TextAppearance.Regular.Caption.Light"
|
||||||
android:layout_toLeftOf="@id/unread_text"
|
android:layout_width="wrap_content"
|
||||||
android:layout_toStartOf="@id/unread_text"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@color/md_red_500"
|
||||||
|
android:paddingBottom="1dp"
|
||||||
|
android:paddingLeft="3dp"
|
||||||
|
android:paddingRight="3dp"
|
||||||
|
android:paddingTop="1dp"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_toStartOf="@+id/unread_text"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:ellipsize="end"
|
android:visibility="gone"
|
||||||
tools:text="Manga title"/>
|
tools:text="122"
|
||||||
|
tools:visibility="visible"
|
||||||
|
android:layout_marginEnd="8dp"
|
||||||
|
app:layout_constraintRight_toLeftOf="@+id/unread_text"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
android:layout_marginBottom="8dp"/>
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/local_text"
|
||||||
|
style="@style/TextAppearance.Regular.Caption.Light"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="@color/md_teal_500"
|
||||||
|
android:paddingBottom="1dp"
|
||||||
|
android:paddingLeft="3dp"
|
||||||
|
android:paddingRight="3dp"
|
||||||
|
android:paddingTop="1dp"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="@string/local_source_badge"
|
||||||
|
android:visibility="gone"
|
||||||
|
tools:visibility="visible"
|
||||||
|
android:layout_marginEnd="8dp"
|
||||||
|
app:layout_constraintRight_toLeftOf="@+id/download_text"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
android:layout_marginBottom="8dp"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</android.support.constraint.ConstraintLayout>
|
||||||
|
|
||||||
</FrameLayout>
|
|
Loading…
Reference in new issue