Files
qianyanAndroid/app/src/main/res/layout/item_news.xml
2026-03-17 20:24:06 +08:00

81 lines
2.8 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:tools="http://schemas.android.com/tools"
tools:viewBindingIgnore="true"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:id="@+id/news_view"
android:background="@android:color/white">
<com.facebook.drawee.view.SimpleDraweeView
android:background="@drawable/man"
android:id="@+id/news_photo"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_centerVertical="true"
android:layout_marginLeft="16dp"
fresco:roundedCornerRadius="4px"
android:layout_marginBottom="20dp"/>
<TextView
android:id="@+id/news_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="11dp"
android:layout_toRightOf="@+id/news_photo"
android:layout_marginLeft="15.5dp"
android:text="醉红楼"
android:textColor="@android:color/black"
android:textSize="17dp"/>
<TextView
android:id="@+id/news_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/news_name"
android:layout_marginTop="1dp"
android:layout_toRightOf="@+id/news_photo"
android:layout_marginLeft="15.5dp"
android:text="Hi欢迎来到芊颜世界"
android:textColor="@color/loginText2"
android:maxLines="1"
android:ellipsize="end"
android:layout_marginRight="16dp"
android:textSize="14dp"/>
<TextView
android:id="@+id/news_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="14.5dp"
android:layout_marginRight="13dp"
android:text="8:45"
android:textColor="@color/loginText2"
android:textSize="14dp"/>
<TextView
android:id="@+id/news_message_count"
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_alignParentRight="true"
android:layout_marginTop="4.5dp"
android:layout_marginRight="16.5dp"
android:layout_below="@+id/news_time"
android:gravity="center"
android:background="@drawable/shape_red_point"
android:text="9"
android:textColor="@android:color/white"
android:textSize="11dp"/>
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_alignParentBottom="true"
android:background="@color/newsCuttingLine" />
</RelativeLayout>