382 lines
16 KiB
XML
382 lines
16 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/gray_bg"
|
|
android:orientation="vertical">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_title_bg"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="245dp"
|
|
tools:background="@drawable/ic_main_title_bg">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_user_info"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/fl_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/shp_circle_white"
|
|
android:padding="2dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_user_icon"
|
|
android:layout_width="67dp"
|
|
android:layout_height="67dp"
|
|
android:src="@drawable/ic_user_default" />
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_toRightOf="@id/fl_icon"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_user_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_16"
|
|
tools:text="hello!李四" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_user_dept"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_14"
|
|
tools:text="部门" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginRight="15dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_scan"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_scan_icon_white" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginBottom="5dp"
|
|
android:orientation="horizontal">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_todo"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_todo"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:gravity="center"
|
|
android:paddingLeft="3dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="3dp"
|
|
android:paddingBottom="5dp"
|
|
android:text="我的待办"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_14" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="24dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginLeft="-5dp"
|
|
android:layout_toRightOf="@id/tv_todo"
|
|
android:background="@drawable/ic_hint_num_bg"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:text="99+"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_12" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_to_read"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_to_read"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:gravity="center"
|
|
android:paddingLeft="3dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="3dp"
|
|
android:paddingBottom="5dp"
|
|
android:text="我的待阅"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_14" />
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="24dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginLeft="-5dp"
|
|
android:layout_toRightOf="@id/tv_to_read"
|
|
android:background="@drawable/ic_hint_num_bg"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:text="99+"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_12" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_supervise"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_supervise"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:gravity="center"
|
|
android:paddingLeft="3dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingRight="3dp"
|
|
android:paddingBottom="5dp"
|
|
android:text="我的督办"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_14" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="24dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginLeft="-5dp"
|
|
android:layout_toRightOf="@id/tv_supervise"
|
|
android:background="@drawable/ic_hint_num_bg"
|
|
android:gravity="center">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:text="1"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_12" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
|
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
|
android:id="@+id/srl_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="5dp"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<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"
|
|
android:background="@color/blue_bg"
|
|
android:gravity="center_vertical"
|
|
android:paddingLeft="10dp"
|
|
android:paddingTop="5dp"
|
|
android:paddingRight="10dp"
|
|
android:paddingBottom="5dp">
|
|
|
|
<ImageView
|
|
android:layout_width="17dp"
|
|
android:layout_height="17dp"
|
|
android:scaleType="fitXY"
|
|
android:src="@drawable/ic_info_blue_icon" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_notify"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:clickable="true"
|
|
android:ellipsize="marquee"
|
|
android:focusable="true"
|
|
android:gravity="center_vertical"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:scrollHorizontally="true"
|
|
android:singleLine="true"
|
|
android:text="您好!您有一条新的待办消息,请转至日常工作查看您好!您有一条新的待办消息,请转至日常工作查看您好!您有一条新的待办消息,请转至日常工作查看..."
|
|
android:textColor="@color/black_30"
|
|
android:textSize="13sp" />
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rlv_funcs"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:background="@color/white"
|
|
android:paddingBottom="5dp"
|
|
tools:itemCount="8"
|
|
tools:layoutManager="GridLayoutManager"
|
|
tools:listitem="@layout/item_main_func_title_num"
|
|
tools:spanCount="4" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_menu_hint"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:padding="20dp">
|
|
|
|
<ImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:src="@drawable/ic_empty_data" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:text="暂无菜单" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:background="@color/white"
|
|
android:orientation="vertical"
|
|
android:padding="10dp">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="5dp"
|
|
android:layout_marginTop="5dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_notice_icon"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_centerVertical="true"
|
|
android:src="@drawable/ic_notice_title_icon" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_toRightOf="@id/iv_notice_icon"
|
|
android:text="通知公告"
|
|
android:textColor="@color/black"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_notice_more"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:text="查看更多 >>"
|
|
android:textColor="@color/gray_text"
|
|
android:textSize="12sp" />
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="5dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginRight="5dp"
|
|
android:minHeight="200dp"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rlv_notice"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:listitem="@layout/item_notice_show" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_empty"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:background="@drawable/ic_empty_data" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:text="暂无数据"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|