<?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">
|
<ScrollView
|
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:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_weight="1.6"
|
android:paddingLeft="@dimen/dimen8"
|
android:paddingRight="@dimen/dimen8">
|
<com.github.mikephil.charting.charts.PieChart
|
android:id="@+id/PC_problem"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
</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>
|
</ScrollView>
|
|
<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/ll_1"
|
app:layout_anchorGravity="bottom|right"
|
android:visibility="gone"/>
|
</android.support.design.widget.CoordinatorLayout>
|