房间公告UI修改
This commit is contained in:
BIN
app/src/main/res/drawable-xhdpi/ic_room_title_close.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_room_title_close.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@@ -2,8 +2,10 @@
|
|||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:shape="rectangle">
|
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>
|
</shape>
|
@@ -1,55 +1,87 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent">
|
||||||
xmlns:tools="http://schemas.android.com/tools">
|
|
||||||
|
|
||||||
<RelativeLayout
|
<androidx.cardview.widget.CardView
|
||||||
android:id="@+id/rl_dialog_group"
|
android:id="@+id/rl_dialog_group"
|
||||||
android:layout_width="311dp"
|
android:layout_width="311dp"
|
||||||
android:layout_centerInParent="true"
|
android:layout_height="355dp"
|
||||||
android:background="@drawable/bg_introduction"
|
android:layout_gravity="center"
|
||||||
android:layout_height="355dp">
|
|
||||||
|
|
||||||
<TextView
|
app:cardCornerRadius="25dp"
|
||||||
android:id="@+id/tv_title"
|
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_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="20dp"
|
android:layout_gravity="center_horizontal"
|
||||||
android:layout_marginRight="20dp"
|
android:layout_marginTop="22dp"
|
||||||
android:layout_marginLeft="20dp"
|
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:layout_centerHorizontal="true"
|
android:orientation="horizontal">
|
||||||
android:textSize="16dp"
|
|
||||||
android:textColor="@color/appColor"
|
<View
|
||||||
tools:text="稻香" />
|
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_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
|
<TextView
|
||||||
android:layout_below="@id/tv_title"
|
|
||||||
android:id="@+id/tv_dialog_desc"
|
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_width="match_parent"
|
||||||
android:layout_height="205dp"
|
android:layout_height="205dp"
|
||||||
android:textColor="@color/color_424242"
|
android:layout_below="@id/tv_title"
|
||||||
android:textSize="13dp"
|
android:layout_marginStart="24dp"
|
||||||
android:scrollbars="vertical" />
|
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:id="@+id/tv_close"
|
||||||
android:layout_width="140dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="38dp"
|
android:layout_height="24dp"
|
||||||
android:textColor="@color/color_7154EE"
|
android:layout_gravity="end"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_marginTop="12dp"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_marginEnd="12dp"
|
||||||
android:text="@string/close"
|
android:src="@drawable/ic_room_title_close" />
|
||||||
android:gravity="center"
|
|
||||||
android:layout_marginBottom="15dp"
|
|
||||||
android:background="@drawable/bg_common_cancel" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</androidx.cardview.widget.CardView>
|
||||||
|
|
||||||
|
</FrameLayout>
|
||||||
</RelativeLayout>
|
|
Reference in New Issue
Block a user