1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ <ScrollView xmlns : android =" http://schemas.android.com/apk/res/android"
3
3
xmlns : app =" http://schemas.android.com/apk/res-auto"
4
4
xmlns : tools =" http://schemas.android.com/tools"
5
5
android : layout_width =" match_parent"
6
- android : layout_height =" match_parent"
7
- android : orientation =" vertical"
8
- tools : context =" .MainActivity" >
6
+ android : layout_height =" match_parent" >
9
7
10
- <FrameLayout
8
+
9
+ <LinearLayout
11
10
android : layout_width =" match_parent"
12
11
android : layout_height =" wrap_content"
13
- android : background =" @color/netflix_black" >
12
+ android : orientation =" vertical"
13
+ tools : context =" .MainActivity" >
14
+
15
+ <FrameLayout
16
+ android : layout_width =" match_parent"
17
+ android : layout_height =" wrap_content"
18
+ android : background =" @color/netflix_black" >
19
+
20
+ <com .devzone.fillprogresslayout.FillProgressLayout
21
+ android : id =" @+id/fillNF"
22
+ android : layout_width =" wrap_content"
23
+ android : layout_height =" wrap_content"
24
+ android : layout_gravity =" center_horizontal"
25
+ android : layout_margin =" 20dp"
26
+ android : gravity =" center"
27
+ app : fpl_backgroundColor =" @color/netflix_gray"
28
+ app : fpl_gradientMovement =" true"
29
+ app : fpl_isRounded =" true"
30
+ app : fpl_progress =" 0"
31
+ app : fpl_progressColor =" @color/netflix_white"
32
+ app : fpl_progressDirection =" left_to_right"
33
+ app : fpl_progressDuration =" 2000"
34
+ app : fpl_roundedCornerRadius =" 8"
35
+ app : fpl_shouldRestart =" false" >
36
+
37
+ <TextView
38
+ android : layout_width =" wrap_content"
39
+ android : layout_height =" wrap_content"
40
+ android : layout_gravity =" center"
41
+ android : layout_marginStart =" 10dp"
42
+ android : layout_marginEnd =" 20dp"
43
+ android : drawableStart =" @drawable/ic_play_vector"
44
+ android : drawablePadding =" 10dp"
45
+ android : gravity =" center"
46
+ android : padding =" 5dp"
47
+ android : text =" Next Episode"
48
+ android : textColor =" @color/netflix_black"
49
+ android : textStyle =" bold" />
50
+
51
+ </com .devzone.fillprogresslayout.FillProgressLayout>
52
+ </FrameLayout >
14
53
15
54
<com .devzone.fillprogresslayout.FillProgressLayout
16
- android : id =" @+id/fillNF "
17
- android : layout_width =" wrap_content "
55
+ android : id =" @+id/fillL "
56
+ android : layout_width =" match_parent "
18
57
android : layout_height =" wrap_content"
19
- android : layout_gravity =" center_horizontal"
20
- android : layout_margin =" 20dp"
21
- android : gravity =" center"
22
- app : fpl_backgroundColor =" @color/netflix_gray"
58
+ android : layout_margin =" 30dp"
59
+ app : fpl_backgroundColor =" @color/colorRedTrans"
23
60
app : fpl_gradientMovement =" true"
24
61
app : fpl_isRounded =" true"
25
62
app : fpl_progress =" 0"
26
- app : fpl_progressColor =" @color/netflix_white "
63
+ app : fpl_progressColor =" @color/colorGreenTrans "
27
64
app : fpl_progressDirection =" left_to_right"
28
65
app : fpl_progressDuration =" 2000"
29
- app : fpl_roundedCornerRadius =" 8 "
66
+ app : fpl_roundedCornerRadius =" 100 "
30
67
app : fpl_shouldRestart =" false" >
31
68
32
69
<TextView
33
70
android : layout_width =" wrap_content"
34
71
android : layout_height =" wrap_content"
35
- android : layout_gravity =" center"
36
- android : layout_marginStart =" 10dp"
37
- android : layout_marginEnd =" 20dp"
38
- android : drawableStart =" @drawable/ic_play_vector"
39
- android : drawablePadding =" 10dp"
72
+ android : layout_gravity =" center_vertical"
73
+ android : layout_weight =" 1"
40
74
android : gravity =" center"
41
- android : padding =" 5dp"
42
- android : text =" Next Episode"
43
- android : textColor =" @color/netflix_black"
44
- android : textStyle =" bold" />
75
+ android : padding =" 10dp"
76
+ android : text =" @string/app_name" />
45
77
78
+ <TextView
79
+ android : layout_width =" wrap_content"
80
+ android : layout_height =" wrap_content"
81
+ android : layout_gravity =" center_vertical"
82
+ android : layout_weight =" 1"
83
+ android : gravity =" center"
84
+ android : padding =" 10dp"
85
+ android : text =" @string/app_name" />
46
86
</com .devzone.fillprogresslayout.FillProgressLayout>
47
- </FrameLayout >
48
-
49
- <com .devzone.fillprogresslayout.FillProgressLayout
50
- android : id =" @+id/fillL"
51
- android : layout_width =" match_parent"
52
- android : layout_height =" wrap_content"
53
- android : layout_margin =" 30dp"
54
- app : fpl_backgroundColor =" @color/colorRedTrans"
55
- app : fpl_gradientMovement =" true"
56
- app : fpl_isRounded =" true"
57
- app : fpl_progress =" 0"
58
- app : fpl_progressColor =" @color/colorGreenTrans"
59
- app : fpl_progressDirection =" left_to_right"
60
- app : fpl_progressDuration =" 2000"
61
- app : fpl_roundedCornerRadius =" 100"
62
- app : fpl_shouldRestart =" false" >
63
-
64
- <TextView
65
- android : layout_width =" wrap_content"
66
- android : layout_height =" wrap_content"
67
- android : layout_gravity =" center_vertical"
68
- android : layout_weight =" 1"
69
- android : gravity =" center"
70
- android : padding =" 10dp"
71
- android : text =" @string/app_name" />
72
87
73
- <TextView
88
+ <Button
74
89
android : layout_width =" wrap_content"
75
90
android : layout_height =" wrap_content"
76
- android : layout_gravity =" center_vertical "
77
- android : layout_weight = " 1 "
78
- android : gravity = " center "
79
- android : padding = " 10dp "
80
- android : text =" @string/app_name " />
81
- </ com .devzone.fillprogresslayout.FillProgressLayout >
91
+ android : layout_gravity =" center_horizontal "
92
+ android : layout_marginTop = " 20dp "
93
+ android : layout_marginBottom = " 20dp "
94
+ android : onClick = " toggleFill "
95
+ android : text =" fill "
96
+ tools : ignore = " HardcodedText " / >
82
97
83
- <Button
84
- android : layout_width =" wrap_content"
85
- android : layout_height =" wrap_content"
86
- android : layout_gravity =" center_horizontal"
87
- android : layout_marginTop =" 20dp"
88
- android : layout_marginBottom =" 20dp"
89
- android : onClick =" toggleFill"
90
- android : text =" fill"
91
- tools : ignore =" HardcodedText" />
92
-
93
- <RelativeLayout
94
- android : layout_width =" match_parent"
95
- android : layout_height =" wrap_content"
96
- android : layout_margin =" 20dp" >
97
98
98
99
<com .devzone.fillprogresslayout.FillProgressLayout
99
- android : id =" @+id/fillB "
100
+ android : id =" @+id/fishCardFPL "
100
101
android : layout_width =" match_parent"
101
- android : layout_height =" wrap_content "
102
- android : layout_alignBottom = " @+id/tv "
103
- android : layout_alignParentTop = " true "
104
- app : fpl_gradientColors =" @array/gradientColors "
105
- app : fpl_gradientMovement =" false "
102
+ android : layout_height =" 100dp "
103
+ android : onClick = " toggleFillLayout "
104
+ android : layout_margin = " 30dp "
105
+ app : fpl_backgroundColor =" @color/colorRedTrans "
106
+ app : fpl_gradientMovement =" true "
106
107
app : fpl_isRounded =" true"
107
- app : fpl_roundedCornerRadius =" 20" />
108
+ app : fpl_progress =" 0"
109
+ app : fpl_progressColor =" #2200AAFF"
110
+ app : fpl_progressDirection =" bottom_to_top"
111
+ app : fpl_progressDuration =" 2000"
112
+ app : fpl_roundedCornerRadius =" 10"
113
+ app : fpl_shouldRestart =" false" >
108
114
109
- <androidx .appcompat.widget.AppCompatTextView
110
- android : id =" @+id/tv"
115
+ <RelativeLayout
116
+ android : layout_width =" match_parent"
117
+ android : layout_height =" match_parent" >
118
+
119
+ <androidx .appcompat.widget.AppCompatImageView
120
+ android : id =" @+id/fishIV"
121
+ android : layout_width =" wrap_content"
122
+ android : layout_height =" wrap_content"
123
+ android : layout_centerInParent =" true"
124
+ app : srcCompat =" @drawable/ic_fish" />
125
+ </RelativeLayout >
126
+ </com .devzone.fillprogresslayout.FillProgressLayout>
127
+
128
+ <RelativeLayout
111
129
android : layout_width =" match_parent"
112
130
android : layout_height =" wrap_content"
113
- android : gravity =" center"
114
- android : padding =" 20dp"
115
- android : text =" @string/app_name" />
116
- </RelativeLayout >
131
+ android : layout_margin =" 20dp" >
117
132
118
- <RadioGroup
119
- android : layout_width =" match_parent"
120
- android : layout_height =" wrap_content"
121
- android : layout_margin =" 10dp"
122
- android : gravity =" center"
123
- android : orientation =" horizontal" >
133
+ <com .devzone.fillprogresslayout.FillProgressLayout
134
+ android : id =" @+id/fillB"
135
+ android : layout_width =" match_parent"
136
+ android : layout_height =" wrap_content"
137
+ android : layout_alignBottom =" @+id/tv"
138
+ android : layout_alignParentTop =" true"
139
+ app : fpl_gradientColors =" @array/gradientColors"
140
+ app : fpl_gradientMovement =" false"
141
+ app : fpl_isRounded =" true"
142
+ app : fpl_roundedCornerRadius =" 15" />
143
+
144
+ <androidx .appcompat.widget.AppCompatTextView
145
+ android : id =" @+id/tv"
146
+ android : layout_width =" match_parent"
147
+ android : layout_height =" wrap_content"
148
+ android : gravity =" center"
149
+ android : padding =" 20dp"
150
+ android : text =" @string/app_name" />
151
+ </RelativeLayout >
124
152
125
- <androidx .appcompat.widget.AppCompatCheckBox
126
- android : id =" @+id/reverseCB"
127
- android : layout_width =" wrap_content"
153
+ <RadioGroup
154
+ android : layout_width =" match_parent"
128
155
android : layout_height =" wrap_content"
129
- android : layout_margin =" 5dp"
130
- android : text =" Reverse" />
156
+ android : layout_margin =" 10dp"
157
+ android : gravity =" center"
158
+ android : orientation =" horizontal" >
131
159
132
- <androidx .appcompat.widget.AppCompatCheckBox
133
- android : id =" @+id/animateCB"
134
- android : layout_width =" wrap_content"
135
- android : layout_height =" wrap_content"
136
- android : layout_margin =" 5dp"
137
- android : text =" Animate" />
138
- </RadioGroup >
160
+ <androidx .appcompat.widget.AppCompatCheckBox
161
+ android : id =" @+id/reverseCB"
162
+ android : layout_width =" wrap_content"
163
+ android : layout_height =" wrap_content"
164
+ android : layout_margin =" 5dp"
165
+ android : text =" Reverse" />
139
166
167
+ <androidx .appcompat.widget.AppCompatCheckBox
168
+ android : id =" @+id/animateCB"
169
+ android : layout_width =" wrap_content"
170
+ android : layout_height =" wrap_content"
171
+ android : layout_margin =" 5dp"
172
+ android : text =" Animate" />
173
+ </RadioGroup >
140
174
141
- <SeekBar
142
- android : id =" @+id/progressSeek"
143
- android : layout_width =" match_parent"
144
- android : layout_height =" wrap_content"
145
- android : layout_margin =" 10dp" />
175
+
176
+ <SeekBar
177
+ android : id =" @+id/progressSeek"
178
+ android : layout_width =" match_parent"
179
+ android : layout_height =" wrap_content"
180
+ android : layout_margin =" 10dp" />
146
181
147
182
148
- </LinearLayout >
183
+ <Space
184
+ android : layout_width =" match_parent"
185
+ android : layout_height =" 40dp" />
186
+ </LinearLayout >
187
+ </ScrollView >
0 commit comments