154 lines
6.7 KiB
XML
154 lines
6.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:context=".ui.home.HomeFragment">
|
|
|
|
<com.hjq.bar.TitleBar
|
|
android:id="@+id/title"
|
|
style="@style/MyTitleBarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:leftIcon="@null"
|
|
app:title="政府监管平台" />
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<com.hjq.shape.layout.ShapeLinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/dp_10"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/dp_10"
|
|
app:shape_radius="@dimen/dp_10"
|
|
app:shape_solidColor="@color/white">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0px"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.yinhetairui.digitalagriculture.widget.CircleImageView
|
|
android:id="@+id/iv_avatar"
|
|
android:layout_width="@dimen/dp_40"
|
|
android:layout_height="@dimen/dp_40"
|
|
android:src="@drawable/logo_big_ic" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/tv_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_10"
|
|
android:text="张三"
|
|
android:textColor="@color/common_text_color"
|
|
android:textSize="@dimen/sp_14" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/tv_unit"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:text="农业农村局"
|
|
android:textColor="@color/common_text_color"
|
|
android:textSize="@dimen/sp_16" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:id="@+id/tv_department"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:text="农业综合执法大队"
|
|
android:textColor="@color/common_text_color"
|
|
android:textSize="@dimen/sp_16" />
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_backlog"
|
|
android:layout_width="@dimen/dp_60"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_msg"
|
|
android:layout_width="@dimen/dp_50"
|
|
android:layout_height="@dimen/dp_50"
|
|
android:layout_centerHorizontal="true"
|
|
android:src="@drawable/logo_big_ic" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/iv_msg"
|
|
android:layout_centerHorizontal="true"
|
|
android:text="待办事项"
|
|
android:textColor="@color/common_text_color"
|
|
android:textSize="@dimen/sp_14" />
|
|
|
|
<com.flyco.tablayout.widget.MsgView
|
|
android:id="@+id/mv_backlog"
|
|
android:layout_width="@dimen/dp_14"
|
|
android:layout_height="@dimen/dp_14"
|
|
android:layout_alignParentEnd="true"
|
|
android:gravity="center"
|
|
android:text="7"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_12"
|
|
app:mv_backgroundColor="@color/common_cancel_text_color"
|
|
app:mv_isRadiusHalfHeight="true" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</com.hjq.shape.layout.ShapeLinearLayout>
|
|
|
|
<com.hjq.shape.layout.ShapeLinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/dp_10"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/dp_10"
|
|
app:shape_radius="@dimen/dp_10"
|
|
app:shape_solidColor="@color/white">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="功能"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/sp_14"
|
|
android:textStyle="bold" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_function"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_10" />
|
|
|
|
</com.hjq.shape.layout.ShapeLinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</LinearLayout> |