房间公告UI修改

This commit is contained in:
huangjian
2023-03-17 17:45:10 +08:00
parent fb4aeba530
commit 0cbdea2e6f
3 changed files with 73 additions and 39 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -2,8 +2,10 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="10dp" />
<corners android:radius="25dp" />
<solid android:color="@color/white" />
<stroke android:width="1px" android:color="@color/white_transparent_50"/>
<solid android:color="@color/transparent" />
</shape>

View File

@@ -1,55 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools">
android:layout_height="match_parent">
<RelativeLayout
<androidx.cardview.widget.CardView
android:id="@+id/rl_dialog_group"
android:layout_width="311dp"
android:layout_centerInParent="true"
android:background="@drawable/bg_introduction"
android:layout_height="355dp">
android:layout_height="355dp"
android:layout_gravity="center"
app:cardCornerRadius="25dp"
app:cardElevation="0dp">
<com.github.mmin18.widget.RealtimeBlurView
android:id="@+id/realtime_blur_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:realtimeBlurRadius="30dp"
app:realtimeDownsampleFactor="3"
app:realtimeOverlayColor="#66050C0D"
tools:background="#050C0D" />
<View
android:id="@+id/view_shape"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_introduction" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="22dp"
android:gravity="center"
android:orientation="horizontal">
<View
android:layout_width="4dp"
android:layout_height="4dp"
android:background="@drawable/shape_white_20dp_round" />
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginRight="20dp"
android:layout_marginLeft="20dp"
android:gravity="center"
android:layout_centerHorizontal="true"
android:textSize="16dp"
android:textColor="@color/appColor"
tools:text="稻香" />
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:text="房间公告"
android:textColor="@color/white"
android:textSize="16sp" />
<View
android:layout_width="4dp"
android:layout_height="4dp"
android:background="@drawable/shape_white_20dp_round" />
</LinearLayout>
<TextView
android:layout_below="@id/tv_title"
android:id="@+id/tv_dialog_desc"
android:layout_marginTop="@dimen/dp_25"
android:layout_marginStart="28dp"
android:layout_marginEnd="28dp"
android:layout_marginBottom="28dp"
android:layout_width="match_parent"
android:layout_height="205dp"
android:textColor="@color/color_424242"
android:textSize="13dp"
android:scrollbars="vertical" />
android:layout_below="@id/tv_title"
android:layout_marginStart="24dp"
android:layout_marginTop="65dp"
android:layout_marginEnd="24dp"
android:layout_marginBottom="30dp"
android:scrollbars="vertical"
android:textColor="@color/white"
android:textSize="14dp" />
<TextView
<ImageView
android:id="@+id/tv_close"
android:layout_width="140dp"
android:layout_height="38dp"
android:textColor="@color/color_7154EE"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:text="@string/close"
android:gravity="center"
android:layout_marginBottom="15dp"
android:background="@drawable/bg_common_cancel" />
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="end"
android:layout_marginTop="12dp"
android:layout_marginEnd="12dp"
android:src="@drawable/ic_room_title_close" />
</RelativeLayout>
</androidx.cardview.widget.CardView>
</RelativeLayout>
</FrameLayout>