TiebaLite/app/src/main/res/layout/item_collect_thread.xml

49 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/card_margin">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_marginEnd="8dp"
android:layout_centerVertical="true"
tools:src="@drawable/bg_placeholder_circle"
android:id="@+id/collect_item_avatar"
android:layout_width="@dimen/size_avatar_small"
android:layout_height="@dimen/size_avatar_small"
tools:ignore="ContentDescription" />
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
android:ellipsize="end"
android:maxLines="1"
android:textSize="14sp"
android:id="@+id/collect_item_header_title"
tools:text="User"
app:tint="@color/default_color_text_secondary"
android:textStyle="bold"
android:layout_centerVertical="true"
android:layout_alignWithParentIfMissing="true"
android:layout_toEndOf="@id/collect_item_avatar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</RelativeLayout>
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
android:layout_marginTop="8dp"
android:ellipsize="end"
android:maxLines="2"
android:textSize="16sp"
tools:text="Title"
android:textStyle="bold"
app:tint="@color/default_color_text"
android:id="@+id/collect_item_title"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>