170 lines
6.0 KiB
XML
170 lines
6.0 KiB
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"
|
|
android:paddingTop="20dp">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/top_noback"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="18dp"
|
|
android:text="@string/message"
|
|
android:textColor="#ff161616"
|
|
android:textSize="24sp"
|
|
android:textStyle="bold" />
|
|
|
|
<ImageView
|
|
android:id="@+id/news_icon_clearance"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_gravity="end|bottom"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:src="@mipmap/news_icon_clearance"
|
|
android:visibility="gone" />
|
|
</FrameLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/top_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<!--系统消息-->
|
|
<RelativeLayout
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_height="110dp"
|
|
android:layout_weight="1">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/img_news_notice"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="99dp"
|
|
android:layout_centerInParent="true"
|
|
android:src="@mipmap/img_news_notice" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_news_notice"
|
|
android:layout_width="17dp"
|
|
android:layout_height="17dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginTop="15dp"
|
|
android:layout_marginEnd="17dp"
|
|
android:background="@drawable/background_system_message"
|
|
android:gravity="center"
|
|
android:text="7"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp"
|
|
android:visibility="visible" />
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="0dp"
|
|
android:layout_height="110dp"
|
|
android:layout_weight="1">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/img_system_messages"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="99dp"
|
|
android:layout_centerInParent="true"
|
|
android:src="@mipmap/img_system_messages" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_system_messages"
|
|
android:layout_width="17dp"
|
|
android:layout_height="17dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginTop="15dp"
|
|
android:layout_marginEnd="17dp"
|
|
android:background="@drawable/background_system_message"
|
|
android:gravity="center"
|
|
android:text="7"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp"
|
|
android:visibility="visible" />
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="110dp"
|
|
android:layout_weight="1">
|
|
|
|
<ImageView
|
|
android:id="@+id/img_news_interaction"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="99dp"
|
|
android:layout_centerInParent="true"
|
|
android:src="@mipmap/img_news_interaction" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_news_interaction"
|
|
android:layout_width="17dp"
|
|
android:layout_height="17dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginTop="15dp"
|
|
android:layout_marginEnd="17dp"
|
|
android:background="@drawable/background_system_message"
|
|
android:gravity="center"
|
|
android:text="7"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp"
|
|
android:visibility="visible" />
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="110dp"
|
|
android:layout_weight="1">
|
|
|
|
<ImageView
|
|
android:id="@+id/img_news_online"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="99dp"
|
|
android:layout_centerInParent="true"
|
|
android:src="@mipmap/img_news_online" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_news_online"
|
|
android:layout_width="17dp"
|
|
android:layout_height="17dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginTop="15dp"
|
|
android:layout_marginEnd="17dp"
|
|
android:background="@drawable/background_system_message"
|
|
android:gravity="center"
|
|
android:text="7"
|
|
android:textColor="@color/white"
|
|
android:textSize="12sp"
|
|
android:visibility="visible" />
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
<!-- 此容器用于动态放置 fragment-->
|
|
<FrameLayout
|
|
android:id="@+id/container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/lt_nodata_msg"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:visibility="visible">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@mipmap/img_no_new" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |