Skip to content

Commit

Permalink
添加图片,使用文档
Browse files Browse the repository at this point in the history
  • Loading branch information
lexluthors committed Aug 23, 2017
1 parent 1de6858 commit 9b05a65
Show file tree
Hide file tree
Showing 8 changed files with 152 additions and 78 deletions.
72 changes: 72 additions & 0 deletions .idea/markdown-navigator.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 0 additions & 69 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions MDProgress/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'

publish {
userOrg = 'lexluthors'
groupId = 'com.jaywei'
artifactId = 'mdprogress'
publishVersion = '1.0.0'
desc = 'mdprogress'
website = 'https://github.com/lexluthors/MDProgress/tree/master'
}
android {
compileSdkVersion 25
buildToolsVersion "26.0.0"
Expand All @@ -16,6 +25,11 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

lintOptions {
checkReleaseBuilds false
abortOnError false
}
}

dependencies {
Expand Down
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
# MDProgress
类似md风格的圆形进度条
类似md风格的圆形进度条:
![](http://opbgt9bbj.bkt.clouddn.com/sadf.gif)


使用方法:

compile 'com.jaywei:mdprogress:1.0.0'

布局代码:

<com.jaywei.mdprogress.CircularProgressBar
android:layout_width="38dp"
android:layout_height="38dp"
android:layout_marginBottom="14.0dip"
android:indeterminate="true"
app:cpb_color="#ff0000"
app:cpb_max_sweep_angle="300"
app:cpb_min_sweep_angle="10"
app:cpb_rotation_speed="1.0"
app:cpb_stroke_width="1.7dp"
app:cpb_sweep_speed="1.0"/>
4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}

dependencies {
Expand Down
37 changes: 30 additions & 7 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<LinearLayout
android:id="@+id/activity_main"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#999999"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
Expand All @@ -28,15 +29,37 @@


<com.jaywei.mdprogress.CircularProgressBar
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_centerVertical="true"
android:layout_gravity="center_vertical"
android:layout_width="38dp"
android:layout_height="38dp"
android:layout_marginBottom="14.0dip"
android:indeterminate="true"
app:cpb_color="#ff0000"
app:cpb_max_sweep_angle="300"
app:cpb_min_sweep_angle="10"
app:cpb_rotation_speed="1.0"
app:cpb_stroke_width="1.7dp"
app:cpb_sweep_speed="1.0" />
</RelativeLayout>
app:cpb_sweep_speed="1.0"/>

<com.jaywei.mdprogress.CircularProgressBar
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_marginBottom="14.0dip"
android:indeterminate="true"
app:cpb_color="#0000ff"
app:cpb_max_sweep_angle="300"
app:cpb_min_sweep_angle="10"
app:cpb_rotation_speed="1.0"
app:cpb_stroke_width="1.5dp"
app:cpb_sweep_speed="1.0"/>

<com.jaywei.mdprogress.CircularProgressBar
android:layout_width="98dp"
android:layout_height="98dp"
android:indeterminate="true"
app:cpb_color="#00FF00"
app:cpb_max_sweep_angle="300"
app:cpb_min_sweep_angle="10"
app:cpb_rotation_speed="1.0"
app:cpb_stroke_width="10dp"
app:cpb_sweep_speed="1.0"/>
</LinearLayout>
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'

classpath 'com.novoda:bintray-release:0.3.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -16,6 +16,10 @@ allprojects {
repositories {
jcenter()
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
}
}

task clean(type: Delete) {
Expand Down

0 comments on commit 9b05a65

Please sign in to comment.