Skip to content

Commit 19d81f8

Browse files
committed
增加sample的apk样例和文案修改
1 parent e3a02ba commit 19d81f8

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.DS_Store

0 Bytes
Binary file not shown.

MaterialProgressView-master/sample/src/main/java/com/moos/progress/fragment/HorizontalProgressFragment.java

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.moos.progress.fragment;
22

33

4+
import android.graphics.Color;
45
import android.os.Bundle;
56
import android.support.v4.app.Fragment;
67
import android.support.v7.widget.AppCompatSeekBar;
@@ -63,6 +64,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
6364
btn_start.setOnClickListener(this);
6465
horizontalProgressView.setProgressViewUpdateListener(this);
6566

67+
6668
return view;
6769
}
6870

README.md

+32-1
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,30 @@ A beautiful and simple used progress view for Android.It provides two different
5555
app:circleBroken="true"
5656
app:isTracked="true"
5757
app:track_width="26dp"/>
58+
59+
<com.moos.library.HorizontalProgressView
60+
android:id="@+id/progressView_horizontal"
61+
android:layout_width="320dp"
62+
android:layout_height="100dp"
63+
android:layout_marginBottom="40dp"
64+
android:layout_marginTop="36dp"
65+
app:start_color="@color/red_start"
66+
app:end_color="@color/red_end"
67+
app:track_width="12dp"
68+
app:end_progress="60"
69+
app:progressTextColor="#696969"
70+
app:corner_radius="12dp"
71+
app:isTracked="true"
72+
app:trackColor="#f4f4f4"/>
5873
```
5974
6075
6176
6277
- In java:
6378
6479
```
80+
81+
//CircleProgressView
6582
CircleProgressView circleProgressView = (CircleProgressView) view.findViewById(R.id.progressView_circle);
6683
circleProgressView.setStartProgress(0);
6784
circleProgressView.setEndProgress(80);
@@ -73,6 +90,20 @@ A beautiful and simple used progress view for Android.It provides two different
7390
circleProgressView.setTrackEnabled(true);
7491
circleProgressView.setFillEnabled(false);
7592
circleProgressView.startProgressAnimation();
93+
94+
//HorizontalProgressView
95+
HorizontalProgressView circleProgressView = (HorizontalProgressView) view.findViewById(R.id.progressView_horizontal);
96+
horizontalProgressView.setStartProgress(0);
97+
horizontalProgressView.setEndProgress(80);
98+
horizontalProgressView.setStartColor(Color.parseColor("#FF8F5D"));
99+
horizontalProgressView.setEndColor(Color.parseColor("#F54EA2"));
100+
horizontalProgressView.setTrackWidth(30);
101+
horizontalProgressView.setProgressDuration(2000);
102+
horizontalProgressView.setTrackEnabled(true);
103+
horizontalProgressView.setProgressCornerRadius(20);
104+
horizontalProgressView.setProgressTextPaddingBottom(12);
105+
horizontalProgressView.startProgressAnimation();
106+
76107
```
77108
78109
@@ -161,7 +192,7 @@ A beautiful and simple used progress view for Android.It provides two different
161192
162193
## Sample
163194
164-
please wait to update...
195+
[ProgressView-sample.apk](https://github.com/Moosphan/Material-ProgressView/blob/master/MaterialProgressView-master/sample/build/outputs/apk/debug)
165196
166197
## Thanks to
167198

0 commit comments

Comments
 (0)