177 lines
7.8 KiB
XML
177 lines
7.8 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"
|
||
android:id="@+id/bodyLayout"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical">
|
||
|
||
<TextView
|
||
android:id="@+id/message_time"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="28dp"
|
||
android:layout_marginBottom="18dp"
|
||
android:gravity="center"
|
||
android:text="6月18日 13:25"
|
||
android:textColor="#7F7F7F"
|
||
android:textSize="11sp" />
|
||
|
||
<LinearLayout
|
||
android:id="@+id/itemLayout"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="horizontal">
|
||
<!--通知小喇叭-->
|
||
<ImageView
|
||
android:id="@+id/icon"
|
||
android:layout_width="37dp"
|
||
android:layout_height="37dp"
|
||
android:layout_marginStart="11dp"
|
||
android:src="@mipmap/icon_notification_speaker" />
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginStart="8dp"
|
||
android:layout_marginEnd="42dp"
|
||
android:clickable="false"
|
||
app:cardBackgroundColor="#fff"
|
||
app:cardCornerRadius="12dp"
|
||
app:cardElevation="0dp">
|
||
|
||
<RelativeLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical"
|
||
android:visibility="visible">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content">
|
||
|
||
<TextView
|
||
android:id="@+id/title"
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginStart="11dp"
|
||
android:layout_marginTop="11dp"
|
||
android:layout_marginEnd="11dp"
|
||
android:layout_marginBottom="11dp"
|
||
android:layout_weight="1"
|
||
android:maxLines="2"
|
||
android:text="標題"
|
||
android:textColor="#000000"
|
||
android:textSize="16sp"
|
||
android:textStyle="bold" />
|
||
|
||
<TextView
|
||
android:id="@+id/del"
|
||
android:layout_width="60dp"
|
||
android:layout_height="25dp"
|
||
android:layout_marginEnd="10dp"
|
||
android:background="@drawable/bg_gray_del"
|
||
android:gravity="center"
|
||
android:text="@string/delete"
|
||
android:textColor="@color/white"
|
||
android:visibility="invisible" />
|
||
</LinearLayout>
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:id="@+id/cv_img_content"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginLeft="10dp"
|
||
android:layout_marginRight="10dp"
|
||
android:layout_marginBottom="6dp"
|
||
android:visibility="gone"
|
||
app:cardCornerRadius="8dp"
|
||
app:cardElevation="0dp">
|
||
|
||
<ImageView
|
||
android:id="@+id/img_content"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="87dp"
|
||
android:layout_centerHorizontal="true"
|
||
android:scaleType="centerCrop" />
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
<TextView
|
||
android:id="@+id/message_context"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginStart="11dp"
|
||
android:layout_marginEnd="11dp"
|
||
android:layout_marginBottom="11dp"
|
||
android:text="親愛的用戶昵稱,恭喜你獲得23年7月1日-23年7月31日的xx禮物冠名權,冠名生效期間您可使用專屬禮物冠名皮膚。小PD已給您佩戴了專屬送禮特效,也可在個性裝扮中取消佩戴。"
|
||
android:textColor="#040404"
|
||
android:textSize="15sp" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:id="@+id/layout_more"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical">
|
||
|
||
<View
|
||
android:layout_width="match_parent"
|
||
android:layout_height="1.2dp"
|
||
android:layout_marginStart="11dp"
|
||
android:layout_marginEnd="11dp"
|
||
android:background="#F6F6F6" />
|
||
|
||
<FrameLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content">
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_margin="11dp"
|
||
android:text="@string/live_user_mailbox_more_text"
|
||
android:textColor="#838383"
|
||
android:textSize="14sp" />
|
||
|
||
<ImageView
|
||
android:layout_width="13dp"
|
||
android:layout_height="match_parent"
|
||
android:layout_gravity="end"
|
||
android:layout_marginEnd="11dp"
|
||
android:src="@mipmap/icon_arrow_right" />
|
||
</FrameLayout>
|
||
|
||
</LinearLayout>
|
||
|
||
</LinearLayout>
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:id="@+id/radius"
|
||
android:layout_width="7dp"
|
||
android:layout_height="7dp"
|
||
android:layout_alignParentEnd="true"
|
||
android:layout_marginTop="5dp"
|
||
android:layout_marginEnd="5dp"
|
||
android:visibility="gone"
|
||
app:cardBackgroundColor="#FF0000"
|
||
app:cardCornerRadius="20dp" />
|
||
|
||
</RelativeLayout>
|
||
|
||
</androidx.cardview.widget.CardView>
|
||
</LinearLayout>
|
||
|
||
|
||
</LinearLayout>
|
||
|