Skip to content

Commit

Permalink
change README.md add demo gif
Browse files Browse the repository at this point in the history
  • Loading branch information
quibbler01 committed May 13, 2023
1 parent d897091 commit f5a2975
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
39 changes: 37 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,37 @@
# WaveLoadingCircleView
Wave Loading Circle View
# CirclesLoadingView

![circles_loading_view_preview](./demo.gif)

[![](https://jitpack.io/v/quibbler01/WaveLoadingCircleView.svg)](https://jitpack.io/#quibbler01/WaveLoadingCircleView)

Step 1. Add it in your root build.gradle at the end of repositories:

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}

Step 2. Add the dependency

dependencies {
implementation 'com.github.quibbler01:WaveLoadingCircleView:1.0.2'
}

Step 3. Add SwitchButton in your layout xml:

<com.example.circlesloadingview.CirclesLoadingView
android:id="@+id/circle_loading_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:animDelay="150"
app:animDistance="30dp"
app:animDuration="500"
app:animInterpolator="accelerate"
app:circleRadius="20dp" />

Step 4. Use it in your way.

//find this SwitchButton
val switchButton = binding.switchButton
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class MainActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)

val circlesLoadingView = binding.circleLoadingView

}

}
Binary file added demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f5a2975

Please sign in to comment.