<?xml version="1.0" encoding="utf-8"?>
|
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:orientation="vertical"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
<LinearLayout
|
android:id="@+id/ll_1"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical">
|
<RelativeLayout
|
android:id="@+id/RL_title_problem"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@drawable/bg_analysis"
|
android:padding="@dimen/dimen4"
|
android:layout_margin="@dimen/dimen2">
|
|
<ImageView
|
android:id="@+id/IV_problem"
|
android:layout_width="80dp"
|
android:layout_height="80dp"
|
android:layout_gravity="center"
|
android:src="@drawable/icon_problem" />
|
|
<TextView
|
android:id="@+id/TV_problem"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/dimen4"
|
android:layout_toRightOf="@id/IV_problem"
|
android:text="问题类型分布"
|
android:textColor="@color/white"
|
android:textSize="30sp" />
|
</RelativeLayout>
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1.6"
|
android:paddingLeft="@dimen/dimen8"
|
android:paddingRight="@dimen/dimen8">
|
|
<LinearLayout
|
android:id="@+id/ll_title"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<ImageView
|
android:id="@+id/IV_scense_type"
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:layout_gravity="center"
|
android:src="@drawable/icon_construction" />
|
|
<cn.flightfeather.thirdapp.view.ScrollTextView
|
android:id="@+id/TV_area"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginRight="28dp"
|
android:ellipsize="marquee"
|
android:hint="上海市金山区xx街道问题类型分布情况"
|
android:textSize="@dimen/textSize_18"
|
android:padding="@dimen/dimen4"
|
android:singleLine="true"
|
android:textColor="@color/black" />
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="0.1dp"
|
android:layout_below="@id/ll_title"
|
android:background="@color/transparentGray" />
|
|
<!--<ImageView-->
|
<!--android:id="@+id/IV_scense_type"-->
|
<!--android:layout_width="24dp"-->
|
<!--android:layout_height="24dp"-->
|
<!--android:layout_gravity="center"-->
|
<!--android:layout_toLeftOf="@id/SP_scense_type"-->
|
<!--android:layout_below="@id/ll_title"-->
|
<!--android:src="@drawable/app_icon" />-->
|
|
<LinearLayout
|
android:id="@+id/ll_title2"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_below="@id/ll_title">
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1.5">
|
<!--<TextView-->
|
<!--android:id="@+id/TV_date_display1"-->
|
<!--android:layout_width="wrap_content"-->
|
<!--android:layout_height="wrap_content"-->
|
<!--android:layout_alignParentLeft="true"-->
|
<!--android:paddingTop="@dimen/dimen4"-->
|
<!--android:paddingBottom="@dimen/dimen4"-->
|
<!--android:layout_below="@id/ll_title"-->
|
<!--android:textColor="@color/black"-->
|
<!--android:singleLine="true"-->
|
<!--android:title="时间:"/>-->
|
<cn.flightfeather.thirdapp.view.ScrollTextView
|
android:id="@+id/stv_date_display2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:paddingTop="@dimen/dimen4"
|
android:paddingBottom="@dimen/dimen4"
|
android:paddingLeft="@dimen/dimen4"
|
android:singleLine="true"
|
android:ellipsize="marquee"
|
android:text="本月"/>
|
</LinearLayout>
|
<Spinner
|
android:id="@+id/SP_scense_type"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:layout_alignParentRight="true"
|
android:layout_below="@id/ll_title"
|
android:gravity="right"
|
android:background="@color/colorPrimaryLight">
|
</Spinner>
|
</LinearLayout>
|
|
<com.github.mikephil.charting.charts.PieChart
|
android:id="@+id/PC_problem"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@id/ll_title2">
|
</com.github.mikephil.charting.charts.PieChart>
|
|
</RelativeLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1"
|
android:orientation="vertical"
|
android:paddingLeft="@dimen/dimen8"
|
android:paddingRight="@dimen/dimen8">
|
<LinearLayout android:orientation="horizontal"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
<TextView
|
android:id="@+id/tv_problem_type"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1.5"
|
android:textColor="@color/black"
|
android:background="@drawable/shape_task_analysis"
|
android:gravity="center"
|
android:text="问题类型"/>
|
|
<TextView
|
android:id="@+id/tv_frequency"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="2"
|
android:textColor="@color/black"
|
android:background="@drawable/shape_task_analysis"
|
android:gravity="center"
|
android:text="频次"/>
|
|
<TextView
|
android:id="@+id/tv_percent"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="2"
|
android:textColor="@color/black"
|
android:background="@drawable/shape_task_analysis"
|
android:gravity="center"
|
android:text="占比"/>
|
</LinearLayout>
|
<android.support.v7.widget.RecyclerView
|
android:id="@+id/rv_problem_type"
|
android:layout_marginTop="6dp"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
</android.support.v7.widget.RecyclerView>
|
</LinearLayout>
|
</LinearLayout>
|
<android.support.design.widget.FloatingActionButton
|
android:src="@drawable/icon_open_white"
|
android:id="@+id/FAB_menu"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:fabSize="mini"
|
app:elevation="2dp"
|
android:layout_marginEnd="@dimen/fab_margin"
|
app:layout_anchor="@id/RL_title_problem"
|
app:layout_anchorGravity="bottom|right" />
|
</android.support.design.widget.CoordinatorLayout>
|