<?xml version="1.0" encoding="utf-8"?>
|
<android.support.v7.widget.CardView
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
style="@style/bigCardView"
|
android:clickable="true"
|
android:focusable="true"
|
android:foreground="?android:attr/selectableItemBackground"
|
app:cardCornerRadius="16dp">
|
<android.support.constraint.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical|center_horizontal"
|
android:padding="@dimen/dimen8">
|
<ImageView
|
android:id="@+id/image_problem_category"
|
android:layout_width="@dimen/title_icon_size_3"
|
android:layout_height="@dimen/title_icon_size_3"
|
android:contentDescription="问题类型"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
android:layout_marginStart="@dimen/dimen8"
|
android:layout_marginEnd="@dimen/dimen8"
|
android:src="@drawable/ic_problem_type_vehicle_off"/>
|
|
<TextView
|
android:id="@+id/text_problem_category"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toBottomOf="@id/image_problem_category"
|
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constrainedWidth="true"
|
android:textColor="@drawable/selector_text_color_1"
|
android:textSize="@dimen/textSize_16"
|
android:text="车辆"/>
|
<TextView
|
android:id="@+id/text_rectified_problem"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintRight_toLeftOf="@id/textView1"
|
app:layout_constraintBottom_toBottomOf="@id/textView1"
|
android:text="0"
|
android:textColor="@drawable/selector_text_color_1"/>
|
|
<TextView
|
android:id="@+id/textView1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintRight_toLeftOf="@id/text_total_problem"
|
app:layout_constraintBottom_toBottomOf="@id/text_total_problem"
|
android:text="/"
|
android:textColor="@drawable/selector_text_color_1"/>
|
|
<TextView
|
android:id="@+id/text_total_problem"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/text_problem_category"
|
android:text="6"
|
android:textColor="@drawable/selector_text_color_1"/>
|
|
</android.support.constraint.ConstraintLayout>
|
</android.support.v7.widget.CardView>
|