<?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="match_parent"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:orientation="vertical"
|
tools:context=".module.dataanalysis.AnalysisOverViewFragment">
|
|
<include android:id="@+id/action_bar" layout="@layout/layout_actionbar"/>
|
<include android:id="@+id/tab_time_pannel" layout="@layout/tab_time_swtich"/>
|
<include android:id="@+id/no_data" layout="@layout/layout_no_data" android:visibility="gone"/>
|
<!--<android.support.v4.widget.SwipeRefreshLayout-->
|
<!--android:id="@+id/srl_content"-->
|
<!--android:layout_width="match_parent"-->
|
<!--android:layout_height="wrap_content">-->
|
<ScrollView
|
android:id="@+id/sl_content"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingStart="@dimen/dimen8"
|
android:paddingEnd="@dimen/dimen8"
|
android:background="#F2F2F3"
|
android:orientation="vertical">
|
<android.support.constraint.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="@dimen/dimen2"
|
style="@style/bgNoColor">
|
<LinearLayout
|
android:id="@+id/ll_title_1"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:elevation="@dimen/dimen2"
|
tools:targetApi="lollipop">
|
<ImageView
|
android:id="@+id/image_title_1"
|
android:layout_width="@dimen/title_icon_size_2"
|
android:layout_height="@dimen/title_icon_size_2"
|
android:padding="@dimen/dimen6"
|
app:layout_constraintLeft_toLeftOf="parent"
|
android:src="@drawable/ic_task_progress_ana"
|
android:background="@color/white"/>
|
<TextView
|
android:layout_width="@dimen/headIcon_width"
|
android:layout_height="@dimen/title_icon_size_2"
|
android:text="@string/taskProgress"
|
style="@style/textTitle"
|
app:layout_constraintLeft_toRightOf="@id/image_title_1"
|
app:layout_constraintTop_toTopOf="@id/image_title_1"
|
android:background="@drawable/bg_trapezoid_white"
|
android:gravity="center_vertical"/>
|
</LinearLayout>
|
<android.support.v7.widget.RecyclerView
|
android:id="@+id/rv_task_progress"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
app:layout_constraintTop_toBottomOf="@id/ll_title_1"
|
android:background="@color/white"
|
android:paddingTop="@dimen/dimen2"
|
android:nestedScrollingEnabled="false"
|
android:elevation="@dimen/dimen2"
|
tools:targetApi="lollipop">
|
</android.support.v7.widget.RecyclerView>
|
</android.support.constraint.ConstraintLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="8dp"
|
android:background="#ebebeb"
|
android:visibility="invisible"/>
|
|
|
|
<android.support.constraint.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
style="@style/bgNoColor">
|
<android.support.constraint.ConstraintLayout
|
android:id="@+id/constraintLayout2"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:elevation="@dimen/dimen2">
|
<ImageView
|
android:id="@+id/image_title_2"
|
android:layout_width="@dimen/title_icon_size_2"
|
android:layout_height="@dimen/title_icon_size_2"
|
app:layout_constraintLeft_toLeftOf="parent"
|
android:background="@color/white"
|
android:padding="@dimen/dimen6"
|
android:src="@drawable/ic_town_rank_ana"/>
|
<TextView
|
android:id="@+id/text_title_2"
|
android:layout_width="@dimen/headIcon_width"
|
android:layout_height="@dimen/title_icon_size_2"
|
android:text="@string/rank_district"
|
style="@style/textTitle"
|
app:layout_constraintLeft_toRightOf="@id/image_title_2"
|
app:layout_constraintTop_toTopOf="@id/image_title_2"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:background="@drawable/bg_trapezoid_white"
|
android:gravity="center_vertical"/>
|
<!--<TextView-->
|
<!--android:id="@+id/text_detail_town"-->
|
<!--android:layout_width="wrap_content"-->
|
<!--android:layout_height="wrap_content"-->
|
<!--style="@style/textSecTitle"-->
|
<!--android:hint="已评:n个 未评:n个"-->
|
<!--android:visibility="gone"-->
|
<!--app:layout_constraintLeft_toRightOf="@id/image_title_2"-->
|
<!--app:layout_constraintTop_toBottomOf="@id/text_title_2"/>-->
|
<TextView
|
android:id="@+id/text_all_2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/more"
|
android:paddingStart="22dp"
|
android:paddingEnd="22dp"
|
android:paddingTop="@dimen/dimen2"
|
android:paddingBottom="@dimen/dimen2"
|
style="@style/textMore"
|
android:layout_marginEnd="@dimen/dimen8"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toTopOf="@id/image_title_2"
|
app:layout_constraintBottom_toBottomOf="@id/image_title_2"
|
android:background="@drawable/shape_oval_blue"/>
|
</android.support.constraint.ConstraintLayout>
|
<LinearLayout
|
android:id="@+id/ll_town"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toBottomOf="@id/constraintLayout2"
|
android:background="@color/white"
|
android:elevation="@dimen/dimen2">
|
<View
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="0.3"
|
android:visibility="invisible">
|
</View>
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1.2"
|
android:layout_marginStart="@dimen/dimen4"
|
android:text="街镇"
|
android:layout_gravity="center_vertical" />
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="0.6"
|
android:text="平均分"
|
android:layout_gravity="center_vertical"
|
android:gravity="center" />
|
</LinearLayout>
|
|
<android.support.v7.widget.RecyclerView
|
android:id="@+id/rv_rank_town"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/white"
|
android:paddingTop="@dimen/dimen2"
|
app:layout_constraintTop_toBottomOf="@id/ll_town"
|
android:nestedScrollingEnabled="false"
|
android:elevation="@dimen/dimen2"
|
tools:targetApi="lollipop">
|
</android.support.v7.widget.RecyclerView>
|
</android.support.constraint.ConstraintLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="8dp"
|
android:background="#ebebeb"
|
android:visibility="invisible"/>
|
|
|
|
<android.support.constraint.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
style="@style/bgNoColor">
|
<android.support.constraint.ConstraintLayout
|
android:id="@+id/constraintLayout3"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:elevation="@dimen/dimen2"
|
tools:targetApi="lollipop">
|
<ImageView
|
android:id="@+id/image_title_3"
|
android:layout_width="@dimen/title_icon_size_2"
|
android:layout_height="@dimen/title_icon_size_2"
|
app:layout_constraintLeft_toLeftOf="parent"
|
android:src="@drawable/ic_scene_rank_ana"
|
android:background="@color/white"/>
|
<TextView
|
android:id="@+id/text_title_3"
|
android:layout_width="@dimen/headIcon_width"
|
android:layout_height="@dimen/title_icon_size_2"
|
android:text="@string/rank_scene"
|
style="@style/textTitle"
|
android:gravity="center_vertical"
|
app:layout_constraintLeft_toRightOf="@id/image_title_3"
|
app:layout_constraintTop_toTopOf="@id/image_title_3"
|
android:background="@drawable/bg_trapezoid_white"/>
|
<!--<TextView-->
|
<!--android:id="@+id/text_detail_scene"-->
|
<!--android:layout_width="wrap_content"-->
|
<!--android:layout_height="wrap_content"-->
|
<!--style="@style/textSecTitle"-->
|
<!--android:hint="已评:n个 未评:n个"-->
|
<!--app:layout_constraintLeft_toRightOf="@id/image_title_3"-->
|
<!--app:layout_constraintTop_toBottomOf="@id/text_title_3"/>-->
|
<TextView
|
android:id="@+id/text_all_3"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/more"
|
android:paddingStart="22dp"
|
android:paddingEnd="22dp"
|
android:paddingTop="@dimen/dimen2"
|
android:paddingBottom="@dimen/dimen2"
|
android:background="@drawable/shape_oval_blue"
|
style="@style/textMore"
|
android:layout_marginEnd="@dimen/dimen8"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toTopOf="@id/image_title_3"
|
app:layout_constraintBottom_toBottomOf="@id/image_title_3"/>
|
</android.support.constraint.ConstraintLayout>
|
<LinearLayout
|
android:id="@+id/ll_scene"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@color/white"
|
android:elevation="@dimen/dimen2"
|
app:layout_constraintTop_toBottomOf="@id/constraintLayout3"
|
tools:targetApi="lollipop">
|
<View
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="0.3"
|
android:visibility="invisible">
|
</View>
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1.2"
|
android:layout_marginStart="@dimen/dimen4"
|
android:text="场景"
|
android:layout_gravity="center_vertical" />
|
|
<TextView
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="0.6"
|
android:text="得分"
|
android:layout_gravity="center_vertical"
|
android:gravity="center" />
|
</LinearLayout>
|
|
<android.support.v7.widget.RecyclerView
|
android:id="@+id/rv_rank_scene"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/white"
|
android:elevation="@dimen/dimen2"
|
android:nestedScrollingEnabled="false"
|
android:paddingTop="@dimen/dimen2"
|
app:layout_constraintTop_toBottomOf="@id/ll_scene"
|
tools:targetApi="lollipop">
|
</android.support.v7.widget.RecyclerView>
|
</android.support.constraint.ConstraintLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="8dp"
|
android:background="#ebebeb"
|
android:visibility="invisible"/>
|
|
|
|
|
<android.support.constraint.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
style="@style/bgNoColor">
|
<android.support.constraint.ConstraintLayout
|
android:id="@+id/csl_title_4"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:elevation="@dimen/dimen2"
|
tools:targetApi="lollipop">
|
<ImageView
|
android:id="@+id/image_title_4"
|
android:layout_width="@dimen/title_icon_size_2"
|
android:layout_height="@dimen/title_icon_size_2"
|
app:layout_constraintLeft_toLeftOf="parent"
|
android:src="@drawable/ic_problem_ana"
|
android:padding="@dimen/dimen6"
|
android:background="@color/white"/>
|
<TextView
|
android:layout_width="@dimen/headIcon_width"
|
android:layout_height="@dimen/title_icon_size_2"
|
android:text="@string/count_problems"
|
style="@style/textTitle"
|
android:gravity="center_vertical"
|
app:layout_constraintLeft_toRightOf="@id/image_title_4"
|
app:layout_constraintTop_toTopOf="@id/image_title_4"
|
android:background="@drawable/bg_trapezoid_white"/>
|
<TextView
|
android:id="@+id/text_all_4"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/more"
|
android:paddingStart="22dp"
|
android:paddingEnd="22dp"
|
android:paddingTop="@dimen/dimen2"
|
android:paddingBottom="@dimen/dimen2"
|
android:background="@drawable/shape_oval_blue"
|
style="@style/textMore"
|
android:layout_marginEnd="@dimen/dimen8"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toTopOf="@id/image_title_4"
|
app:layout_constraintBottom_toBottomOf="@id/image_title_4"
|
android:visibility="gone"/>
|
</android.support.constraint.ConstraintLayout>
|
<com.github.mikephil.charting.charts.PieChart
|
android:id="@+id/pie_chart_problem"
|
android:layout_width="match_parent"
|
android:layout_height="400dp"
|
android:background="@color/white"
|
app:layout_constraintTop_toBottomOf="@id/csl_title_4"
|
android:elevation="@dimen/dimen2"
|
tools:targetApi="lollipop"
|
android:visibility="visible">
|
</com.github.mikephil.charting.charts.PieChart>
|
<LinearLayout
|
android:id="@+id/ll_no_data"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
app:layout_constraintTop_toBottomOf="@id/csl_title_4"
|
android:background="@color/white"
|
android:visibility="gone">
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:src="@drawable/ic_no_data"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/orange"
|
android:layout_gravity="center_horizontal"
|
android:text="暂无数据"/>
|
</LinearLayout>
|
</android.support.constraint.ConstraintLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="8dp"
|
android:background="#ebebeb"
|
android:visibility="invisible"/>
|
</LinearLayout>
|
</ScrollView>
|
<!--</android.support.v4.widget.SwipeRefreshLayout>-->
|
</LinearLayout>
|