diff --git a/README.md b/README.md index f2fa587..f7ab024 100644 --- a/README.md +++ b/README.md @@ -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: @@ -44,6 +44,20 @@ Define a view in your layout file: ``` 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(R.id.progress_bar) + progressBar.progress = 30f + } +} +``` + +Java ```java public class MainActivity extends AppCompatActivity { @Override diff --git a/build.gradle b/build.gradle index bb7cec1..c194615 100644 --- a/build.gradle +++ b/build.gradle @@ -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' @@ -45,7 +45,7 @@ android { defaultConfig { minSdkVersion 14 targetSdkVersion 27 - versionCode 20 + versionCode 21 versionName libraryVersion }