<?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"
|
android:orientation="vertical"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:cardCornerRadius="@dimen/cardCornerRadius"
|
android:foreground="?android:attr/selectableItemBackground">
|
|
<android.support.constraint.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<ImageView
|
android:id="@+id/image_top_task"
|
android:layout_width="@dimen/headIcon_width"
|
android:layout_height="@dimen/headIcon_height"
|
android:src="@drawable/icon_inspection_run_2" />
|
|
<cn.flightfeather.thirdapp.view.ScrollTextView
|
android:id="@+id/text_top_task"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="@dimen/dimen2"
|
android:paddingTop="@dimen/padding_all"
|
android:paddingEnd="@dimen/padding_all"
|
android:ellipsize="marquee"
|
android:focusable="false"
|
android:maxLines="2"
|
android:focusableInTouchMode="true"
|
android:layout_marginStart="@dimen/dimen8"
|
android:text="@string/top_task"
|
android:textColor="@color/black"
|
android:textSize="@dimen/textSize_16"
|
app:layout_constraintLeft_toRightOf="@id/image_top_task"
|
app:layout_constraintRight_toLeftOf="@id/progress_complete"
|
app:layout_constrainedWidth="true"
|
app:layout_constraintHorizontal_bias="0"/>
|
|
<TextView
|
android:id="@+id/text_taskStatus"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="@dimen/dimen8"
|
android:layout_marginBottom="@dimen/padding_all"
|
android:hint="进行中"
|
app:layout_constraintLeft_toRightOf="@id/image_top_task"
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
<am.widget.circleprogressbar.CircleProgressBar
|
android:id="@+id/progress_complete"
|
android:layout_width="60dp"
|
android:layout_height="60dp"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
app:cpbGravity="center"
|
app:cpbRadius="18dp"
|
app:cpbMax ="100"
|
app:cpbProgressSize="2dp"
|
app:cpbTopTextSize="@dimen/dimen8"
|
app:cpbBackgroundSize="0dp"
|
app:cpbBackgroundColor="@color/colorPrimary"
|
app:cpbFirstGradientColors="@color/red_btn_bg_color"
|
app:cpbFirstGradientPositions="3"
|
app:cpbSecondGradientColors="@color/colorAccent"
|
app:cpbSecondGradientPositions="6"
|
app:cpbThirdGradientColors="@color/lightGreen"
|
app:cpbThirdGradientPositions="9"
|
app:cpbProgressDuration="5000"
|
app:cpbProgressMode="Progress"
|
app:cpbShowProgressValue="true"
|
app:cpbProgressValueTextSize="@dimen/dimen8"
|
app:cpbBottomText="%"
|
app:cpbBottomTextSize="@dimen/dimen8"
|
app:cpbDialVisibility="gone"
|
app:cpbDialGap="4dp"
|
app:cpbDialAngle="5"
|
app:cpbDialHeight="10dp"
|
app:cpbDialWidth="2dp"
|
app:cpbDialColor="@color/colorPrimary"
|
app:cpbStartAngle="-90"
|
app:cpbSweepAngle="360" />
|
</android.support.constraint.ConstraintLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<!--<LinearLayout-->
|
<!--android:layout_width="match_parent"-->
|
<!--android:layout_height="wrap_content">-->
|
<!--<TextView-->
|
<!--android:id="@+id/TV_top_task_progress"-->
|
<!--android:layout_width="0dp"-->
|
<!--android:layout_height="wrap_content"-->
|
<!--android:layout_weight="1"-->
|
<!--android:gravity="center"-->
|
<!--android:hint="100%"/>-->
|
<!--<ProgressBar-->
|
<!--android:id="@+id/PB_top_task_progress"-->
|
<!--android:layout_width="0dp"-->
|
<!--android:layout_height="wrap_content"-->
|
<!--android:layout_weight="8"-->
|
<!--android:layout_gravity="center"-->
|
<!--style="?android:attr/progressBarStyleHorizontal"-->
|
<!--android:progressDrawable ="@drawable/progressbar1"/>-->
|
<!--</LinearLayout>-->
|
<!--<LinearLayout-->
|
<!--android:layout_width="match_parent"-->
|
<!--android:layout_height="wrap_content"-->
|
<!--android:layout_marginTop="@dimen/dimen2">-->
|
<!--<TextView-->
|
<!--android:id="@+id/TV_my_progress"-->
|
<!--android:layout_width="0dp"-->
|
<!--android:layout_height="wrap_content"-->
|
<!--android:layout_weight="1"-->
|
<!--android:gravity="center"-->
|
<!--android:hint="10%"/>-->
|
<!--<ProgressBar-->
|
<!--android:id="@+id/PB_my_progress"-->
|
<!--android:layout_width="0dp"-->
|
<!--android:layout_height="wrap_content"-->
|
<!--android:layout_weight="8"-->
|
<!--android:layout_gravity="center"-->
|
<!--style="?android:attr/progressBarStyleHorizontal"-->
|
<!--android:progressDrawable ="@drawable/progressbar2"/>-->
|
<!--</LinearLayout>-->
|
</LinearLayout>
|
|
</android.support.v7.widget.CardView>
|