1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <LinearLayout
3
- xmlns : android =" http://schemas.android.com/apk/res/android"
4
- xmlns : tools =" http://schemas.android.com/tools" xmlns : app =" http://schemas.android.com/apk/res-auto"
5
- android : orientation =" vertical"
2
+ <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4
+ xmlns : tools =" http://schemas.android.com/tools"
6
5
android : layout_width =" match_parent"
7
6
android : layout_height =" match_parent"
7
+ android : orientation =" vertical"
8
8
tools : context =" .MainActivity" >
9
9
10
10
<com .devzone.fillprogresslayout.FillProgressLayout
11
11
android : id =" @+id/fillL"
12
+ android : layout_width =" match_parent"
13
+ android : layout_height =" wrap_content"
12
14
android : layout_margin =" 30dp"
13
15
app : fpl_backgroundColor =" @color/colorRedTrans"
14
- app : fpl_progressColor = " @color/colorGreenTrans "
16
+ app : fpl_gradientMovement = " true "
15
17
app : fpl_isRounded =" true"
16
- app : fpl_roundedCornerRadius =" 100"
17
18
app : fpl_progress =" 0"
18
- app : fpl_gradientMovement =" true"
19
- app : fpl_progressDuration =" 2000"
19
+ app : fpl_progressColor =" @color/colorGreenTrans"
20
20
app : fpl_progressDirection =" left_to_right"
21
- app : fpl_shouldRestart =" false"
22
- android : layout_width =" match_parent"
23
- android : layout_height =" wrap_content" >
21
+ app : fpl_progressDuration =" 2000"
22
+ app : fpl_roundedCornerRadius =" 100"
23
+ app : fpl_shouldRestart =" false" >
24
+
24
25
<TextView
26
+ android : layout_width =" wrap_content"
27
+ android : layout_height =" wrap_content"
28
+ android : layout_gravity =" center_vertical"
25
29
android : layout_weight =" 1"
26
- android : padding =" 10dp"
27
30
android : gravity =" center"
28
- android : text =" @string/app_name"
29
- android : layout_gravity =" center_vertical"
30
- android : layout_width =" wrap_content"
31
- android : layout_height =" wrap_content" />
31
+ android : padding =" 10dp"
32
+ android : text =" @string/app_name" />
33
+
32
34
<TextView
35
+ android : layout_width =" wrap_content"
36
+ android : layout_height =" wrap_content"
37
+ android : layout_gravity =" center_vertical"
33
38
android : layout_weight =" 1"
34
- android : padding =" 10dp"
35
39
android : gravity =" center"
36
- android : text =" @string/app_name"
37
- android : layout_gravity =" center_vertical"
38
- android : layout_width =" wrap_content"
39
- android : layout_height =" wrap_content" />
40
+ android : padding =" 10dp"
41
+ android : text =" @string/app_name" />
40
42
</com .devzone.fillprogresslayout.FillProgressLayout>
41
43
44
+ <Button
45
+ android : layout_width =" wrap_content"
46
+ android : layout_height =" wrap_content"
47
+ android : layout_gravity =" center_horizontal"
48
+ android : layout_marginTop =" 20dp"
49
+ android : layout_marginBottom =" 20dp"
50
+ android : onClick =" toggleFill"
51
+ android : text =" fill"
52
+ tools : ignore =" HardcodedText" />
53
+
42
54
<RelativeLayout
43
- android : layout_margin =" 20dp"
44
55
android : layout_width =" match_parent"
45
- android : layout_height =" wrap_content" >
56
+ android : layout_height =" wrap_content"
57
+ android : layout_margin =" 20dp" >
58
+
46
59
<com .devzone.fillprogresslayout.FillProgressLayout
60
+ android : id =" @+id/fillB"
61
+ android : layout_width =" match_parent"
62
+ android : layout_height =" wrap_content"
47
63
android : layout_alignBottom =" @+id/tv"
48
64
android : layout_alignParentTop =" true"
49
- app : fpl_roundedCornerRadius =" 20"
50
- app : fpl_isRounded =" true"
51
- android : id =" @+id/fillB"
52
- app : fpl_gradientMovement =" false"
53
65
app : fpl_gradientColors =" @array/gradientColors"
54
- android : layout_width =" match_parent"
55
- android : layout_height =" wrap_content" />
66
+ app : fpl_gradientMovement =" false"
67
+ app : fpl_isRounded =" true"
68
+ app : fpl_roundedCornerRadius =" 20" />
56
69
57
70
<androidx .appcompat.widget.AppCompatTextView
58
71
android : id =" @+id/tv"
59
- android : text =" @string/app_name"
72
+ android : layout_width =" match_parent"
73
+ android : layout_height =" wrap_content"
60
74
android : gravity =" center"
61
75
android : padding =" 20dp"
62
- android : layout_width =" match_parent"
63
- android : layout_height =" wrap_content" />
76
+ android : text =" @string/app_name" />
64
77
</RelativeLayout >
65
78
66
- <Button
67
- android : layout_width =" wrap_content "
79
+ <RadioGroup
80
+ android : layout_width =" match_parent "
68
81
android : layout_height =" wrap_content"
69
- android : layout_gravity =" center_horizontal"
70
- android : layout_marginTop =" 80dp"
71
- android : onClick =" toggleFill"
72
- android : text =" fill"
73
- tools : ignore =" HardcodedText" />
82
+ android : layout_margin =" 10dp"
83
+ android : gravity =" center"
84
+ android : orientation =" horizontal" >
85
+
86
+ <androidx .appcompat.widget.AppCompatCheckBox
87
+ android : id =" @+id/reverseCB"
88
+ android : layout_width =" wrap_content"
89
+ android : layout_height =" wrap_content"
90
+ android : layout_margin =" 5dp"
91
+ android : text =" Reverse" />
92
+
93
+ <androidx .appcompat.widget.AppCompatCheckBox
94
+ android : id =" @+id/animateCB"
95
+ android : layout_width =" wrap_content"
96
+ android : layout_height =" wrap_content"
97
+ android : layout_margin =" 5dp"
98
+ android : text =" Animate" />
99
+ </RadioGroup >
100
+
101
+
102
+ <SeekBar
103
+ android : id =" @+id/progressSeek"
104
+ android : layout_width =" match_parent"
105
+ android : layout_height =" wrap_content"
106
+ android : layout_margin =" 10dp" />
107
+
108
+
74
109
</LinearLayout >
0 commit comments