Files
qianyanAndroid/app/src/main/res/layout/item_greeting_main.xml
被淹死的鱼 cd3b53759e 第一次提交
2026-03-11 18:26:29 +08:00

77 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
xmlns:tools="http://schemas.android.com/tools"
tools:viewBindingIgnore="true"
xmlns:fresco="http://schemas.android.com/apk/res-auto">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="68dp"
android:background="@android:color/white">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/greeting_main_photo"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginLeft="16dp"
android:layout_centerVertical="true"
fresco:roundedCornerRadius="6dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginLeft="14dp"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/greeting_main_photo">
<TextView
android:id="@+id/greeting_main_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="abc"
android:textSize="14sp"
android:textColor="@android:color/black"/>
<TextView
android:id="@+id/greeting_main_sub"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
android:text="abc"
android:textSize="14sp"
android:textColor="@color/loginText2"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_centerVertical="true"
android:gravity="right"
android:layout_marginRight="16dp"
android:layout_alignParentRight="true">
<TextView
android:id="@+id/greeting_main_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="刚刚"
android:textSize="13sp"
android:textColor="@color/loginText2" />
<Button
android:layout_width="59dp"
android:layout_height="24dp"
android:layout_marginTop="3dp"
android:text="打招呼"
android:textColor="@android:color/white"
android:textSize="12sp"/>
</LinearLayout>
</RelativeLayout>
<View
android:layout_width="343dp"
android:layout_height="2px"
android:background="@color/bottomCuttingLine"/>
</LinearLayout>