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

49 lines
1.9 KiB
XML
Raw Normal View History

2020-04-05 13:15:03 +08:00
<?xml version="1.0" encoding="utf-8"?>
2021-01-25 21:20:49 +08:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-04-05 13:15:03 +08:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2021-01-25 21:20:49 +08:00
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/card_margin">
2020-04-05 13:15:03 +08:00
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
2021-01-25 21:20:49 +08:00
android:layout_marginEnd="8dp"
android:layout_centerVertical="true"
2020-04-05 13:15:03 +08:00
tools:src="@drawable/bg_placeholder_circle"
android:id="@+id/collect_item_avatar"
2021-01-25 21:20:49 +08:00
android:layout_width="@dimen/size_avatar_small"
android:layout_height="@dimen/size_avatar_small"
2020-04-05 13:15:03 +08:00
tools:ignore="ContentDescription" />
2021-01-25 21:20:49 +08:00
2020-08-15 22:05:07 +08:00
<com.huanchengfly.tieba.post.widgets.theme.TintTextView
2020-04-05 13:15:03 +08:00
android:ellipsize="end"
2021-01-25 21:20:49 +08:00
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"
2020-04-05 13:15:03 +08:00
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>
2021-01-25 21:20:49 +08:00
<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>