<?xml version="1.0" encoding="utf-8"?>
|
<android.support.v7.widget.CardView 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"
|
style="@style/bigCardView"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
app:cardCornerRadius="@dimen/dimen8">
|
|
<RelativeLayout
|
android:id="@+id/rl_container2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:padding="@dimen/dimen6"
|
android:visibility="visible">
|
|
|
<RelativeLayout
|
android:id="@+id/rl_executing_task"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:clickable="true"
|
android:foreground="?android:attr/selectableItemBackground"
|
android:orientation="horizontal"
|
android:focusable="true">
|
|
<ImageView
|
android:id="@+id/iv_executing_task"
|
android:layout_width="26dp"
|
android:layout_height="26dp"
|
android:background="@drawable/ic_problem" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_centerVertical="true"
|
android:layout_marginStart="10dp"
|
android:layout_toEndOf="@id/iv_executing_task"
|
android:text="@string/problem_info"
|
android:textColor="@color/black"
|
android:textSize="12sp" />
|
|
</RelativeLayout>
|
|
<android.support.constraint.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_below="@id/rl_executing_task">
|
|
<LinearLayout
|
android:id="@+id/ll_no_data_2"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
app:layout_constraintTop_toBottomOf="@id/ll_problem_1"
|
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
|
android:id="@+id/ll_problem_1"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toLeftOf="@id/ll_problem_2"
|
app:layout_constraintHorizontal_chainStyle="spread"
|
app:layout_constraintHorizontal_weight="1">
|
<TextView
|
android:id="@+id/text_problem_time_1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="上月(2018-12)"
|
android:textColor="@color/black"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintLeft_toRightOf="@id/textView1"
|
app:layout_constraintRight_toRightOf="parent"/>
|
|
<TextView
|
android:id="@+id/textView1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@color/black"
|
android:text="@string/total_problem_count"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/text_problem_time_1"/>
|
|
<TextView
|
android:id="@+id/text_problem_count_1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="0"
|
app:layout_constraintLeft_toRightOf="@id/textView1"
|
app:layout_constraintTop_toBottomOf="@id/text_problem_time_1"
|
app:layout_constraintRight_toRightOf="parent"/>
|
|
</android.support.constraint.ConstraintLayout>
|
|
<android.support.constraint.ConstraintLayout
|
android:id="@+id/ll_problem_2"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
app:layout_constraintTop_toTopOf="@id/ll_problem_1"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintLeft_toRightOf="@id/ll_problem_1"
|
app:layout_constraintHorizontal_chainStyle="spread"
|
app:layout_constraintHorizontal_weight="1">
|
<TextView
|
android:id="@+id/text_problem_time_2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:gravity="center"
|
android:text="本月(2019-01)"
|
android:textColor="@color/black"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
<TextView
|
android:id="@+id/text_problem_count_2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="0"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/text_problem_time_2"
|
app:layout_constraintRight_toRightOf="parent"/>
|
|
<ImageView
|
android:id="@+id/image_problem_rank"
|
android:layout_width="@dimen/fab_margin"
|
android:layout_height="@dimen/fab_margin"
|
android:layout_marginEnd="@dimen/fab_margin"
|
android:src="@drawable/icon_rank_down"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toTopOf="@id/text_problem_count_2"
|
app:layout_constraintBottom_toBottomOf="@id/text_problem_count_2"/>
|
</android.support.constraint.ConstraintLayout>
|
|
<com.github.mikephil.charting.charts.HorizontalBarChart
|
android:id="@+id/bar_problem_1"
|
android:layout_width="match_parent"
|
android:layout_height="400dp"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/ll_problem_1">
|
</com.github.mikephil.charting.charts.HorizontalBarChart>
|
|
</android.support.constraint.ConstraintLayout>
|
|
</RelativeLayout>
|
</android.support.v7.widget.CardView>
|