2022-04-15 18:26:56 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-04-26 10:04:53 +08:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2022-04-15 18:26:56 +08:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
2022-04-26 10:04:53 +08:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@color/gray_bg"
|
2022-04-15 18:26:56 +08:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
2022-04-26 10:04:53 +08:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/rl_title_bg"
|
2022-04-15 18:26:56 +08:00
|
|
|
android:layout_width="match_parent"
|
2022-04-26 10:04:53 +08:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:background="@drawable/ic_img_default">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:scaleType="fitXY" />
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/rl_user_info"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginTop="50dp"
|
|
|
|
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="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
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="8dp"
|
|
|
|
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_15"
|
|
|
|
android:textStyle="bold"
|
|
|
|
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"
|
|
|
|
tools:text="部门" />
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
2022-04-15 18:26:56 +08:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-04-26 10:04:53 +08:00
|
|
|
android:layout_below="@id/rl_user_info"
|
|
|
|
android:layout_marginTop="30dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:orientation="horizontal">
|
2022-04-15 18:26:56 +08:00
|
|
|
|
2022-04-26 10:04:53 +08:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/rl_todo"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1">
|
2022-04-15 18:26:56 +08:00
|
|
|
|
2022-04-26 10:04:53 +08:00
|
|
|
<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_15" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="18dp"
|
|
|
|
android:layout_height="18dp"
|
|
|
|
android:layout_marginLeft="-5dp"
|
|
|
|
android:layout_toRightOf="@id/tv_todo"
|
|
|
|
android:background="@drawable/shp_circle_hint_num"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="99+"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:textSize="@dimen/text_10" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/rl_to_read"
|
|
|
|
android:layout_width="0dp"
|
2022-04-15 18:26:56 +08:00
|
|
|
android:layout_height="wrap_content"
|
2022-04-26 10:04:53 +08:00
|
|
|
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_15" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="18dp"
|
|
|
|
android:layout_height="18dp"
|
|
|
|
android:layout_marginLeft="-5dp"
|
|
|
|
android:layout_toRightOf="@id/tv_to_read"
|
|
|
|
android:background="@drawable/shp_circle_hint_num"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="1"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:textSize="@dimen/text_10" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/rl_supervise"
|
|
|
|
android:layout_width="0dp"
|
2022-04-15 18:26:56 +08:00
|
|
|
android:layout_height="wrap_content"
|
2022-04-26 10:04:53 +08:00
|
|
|
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_15" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="18dp"
|
|
|
|
android:layout_height="18dp"
|
|
|
|
android:layout_marginLeft="-5dp"
|
|
|
|
android:layout_toRightOf="@id/tv_supervise"
|
|
|
|
android:background="@drawable/shp_circle_hint_num"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="1"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:textSize="@dimen/text_10" />
|
|
|
|
</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">
|
2022-04-15 18:26:56 +08:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-04-26 10:04:53 +08:00
|
|
|
android:orientation="vertical">
|
2022-04-15 18:26:56 +08:00
|
|
|
|
|
|
|
<TextView
|
2022-04-26 10:04:53 +08:00
|
|
|
android:id="@+id/tv_notify"
|
|
|
|
android:layout_width="match_parent"
|
2022-04-15 18:26:56 +08:00
|
|
|
android:layout_height="wrap_content"
|
2022-04-26 10:04:53 +08:00
|
|
|
android:background="@color/blue"
|
|
|
|
android:drawableLeft="@android:drawable/ic_dialog_info"
|
|
|
|
android:drawablePadding="5dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:text="您好!您有一条新的待办消息,请转至日常工作查看..."
|
|
|
|
android:textColor="@color/black" />
|
2022-04-15 18:26:56 +08:00
|
|
|
|
2022-04-26 10:04:53 +08:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/rlv_funcs"
|
2022-04-15 18:26:56 +08:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="5dp"
|
2022-04-26 10:04:53 +08:00
|
|
|
android:background="@color/white"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
tools:layoutManager="GridLayoutManager"
|
|
|
|
tools:listitem="@layout/item_main_func_title_num"
|
|
|
|
tools:spanCount="4" />
|
2022-04-15 18:26:56 +08:00
|
|
|
|
2022-04-26 10:04:53 +08:00
|
|
|
<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">
|
2022-04-15 18:26:56 +08:00
|
|
|
|
2022-04-26 10:04:53 +08:00
|
|
|
<TextView
|
2022-04-15 18:26:56 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-04-26 10:04:53 +08:00
|
|
|
android:text="通知公告"
|
|
|
|
android:textColor="@color/black"
|
|
|
|
android:textSize="15sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:minHeight="200dp"
|
2022-04-15 18:26:56 +08:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
2022-04-26 10:04:53 +08:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/rlv_notice"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
2022-04-15 18:26:56 +08:00
|
|
|
|
2022-04-26 10:04:53 +08:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/ll_empty"
|
2022-04-15 18:26:56 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-04-26 10:04:53 +08:00
|
|
|
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>
|
2022-04-15 18:26:56 +08:00
|
|
|
</LinearLayout>
|
|
|
|
|
2022-04-26 10:04:53 +08:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|