Newer
Older
dcms_cr_app / app / src / main / res / layout / activity_notice.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">

    <com.qmuiteam.qmui.widget.QMUITopBarLayout
        android:id="@+id/noticeTopLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:fitsSystemWindows="true" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/white"
        android:orientation="vertical"
        android:padding="@dimen/padding_10dp">

        <TextView
            android:id="@+id/noticeTitleView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:paddingBottom="@dimen/padding_10dp"
            android:text="@string/app_name"
            android:textSize="@dimen/titleFontSize" />

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <TextView
                android:id="@+id/noticeSenderView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="发送者:管理员"
                android:textColor="@color/textColor"
                android:textSize="@dimen/textFontSize" />

            <TextView
                android:id="@+id/noticeDateView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:text="2021-4-15 10:48:35"
                android:textColor="@color/textColor"
                android:textSize="@dimen/textFontSize" />
        </RelativeLayout>

        <androidx.core.widget.NestedScrollView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="15dp"
            android:scrollbars="vertical">

            <TextView
                android:id="@+id/noticeContentView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:textColor="@color/textColor"
                android:textSize="@dimen/textFontSize" />
        </androidx.core.widget.NestedScrollView>
    </LinearLayout>
</LinearLayout>