第一次提交
This commit is contained in:
77
app/src/main/res/layout/item_greeting_main.xml
Normal file
77
app/src/main/res/layout/item_greeting_main.xml
Normal file
@@ -0,0 +1,77 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user