Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-budiyev committed May 1, 2018
1 parent 535660a commit 0817797
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
[![API](https://img.shields.io/badge/API-14%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=14)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/04aff697e57642bb96579fbaa6cc3dad)](https://www.codacy.com/app/yuriy-budiyev/circular-progress-bar?utm_source=github.com&utm_medium=referral&utm_content=yuriy-budiyev/circular-progress-bar&utm_campaign=Badge_Grade)

Circular progress bar, supports animations and indeterminate mode, highly customizable
Circular progress bar, supports animations and indeterminate mode, highly customizable, Kotlin-friendly

### Usage ([sample](https://github.com/yuriy-budiyev/lib-demo-app))
Add dependency:
```gradle
dependencies {
implementation 'com.budiyev.android:circular-progress-bar:1.1.9'
implementation 'com.budiyev.android:circular-progress-bar:1.2.0'
}
```
Define a view in your layout file:
Expand Down Expand Up @@ -44,6 +44,20 @@ Define a view in your layout file:
</FrameLayout>
```
And (or) add following code to your activity:

Kotlin
```kotlin
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val progressBar = findViewById<CircularProgressBar>(R.id.progress_bar)
progressBar.progress = 30f
}
}
```

Java
```java
public class MainActivity extends AppCompatActivity {
@Override
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apply plugin: 'com.jfrog.bintray'
ext {
libraryName = 'CircularProgressBar'
libraryDescription = 'Circular progress bar'
libraryVersion = '1.1.9'
libraryVersion = '1.2.0'
artifact = 'circular-progress-bar'
developerId = 'yuriy-budiyev'
developerName = 'Yuriy Budiyev'
Expand All @@ -45,7 +45,7 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 27
versionCode 20
versionCode 21
versionName libraryVersion
}

Expand Down

0 comments on commit 0817797

Please sign in to comment.