riku
2022-02-18 d59d55575d913646b7a90fca651904ab889c6723
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?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.thirdappmodule.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>