Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
kareemradwan committed Jul 1, 2020
2 parents 99ffde3 + 8517987 commit c8d6662
Showing 1 changed file with 36 additions and 6 deletions.
42 changes: 36 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Stepper-Library
# Stepper-Library V0.2

## Screenshots
![Image Result](https://scontent.fgza6-1.fna.fbcdn.net/v/t1.0-9/106503813_693000678211700_2733733955416928403_n.jpg?_nc_cat=102&_nc_sid=07e735&_nc_ohc=4NiB_Ur8XbAAX9iQAH0&_nc_ht=scontent.fgza6-1.fna&oh=9c30aefb155035a8e040691afc145f9c&oe=5F22F65B)
## How Add Library To Your Project
##### in `build.gradle` on Project Level you should add
##### `maven { url 'https://jitpack.io' }` in
`allprojects {

``` kotlin
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
`
##### After Thet add `implementation 'com.github.kareemradwan:Stepper-Library:0.1'` in `build.gradle` in App Level
```
##### After Thet add `implementation 'com.github.kareemradwan:Stepper-Library:0.2'` in `build.gradle` in App Level
##### in `dependencies` Tag


Expand All @@ -36,10 +37,39 @@ StepAdapter<Order>(list)


## What is Next:
##### - The Developer Can Custmise Color of Step
##### - The Developer Can Custmise Color of Step. (DONE)
##### - Add Animation for `CheckBox` When be Selected


## Sample Code
#### In Xml
```xml
<com.kradwan.stepeer.view.SteeperView
android:id="@+id/steeper"
app:checked_color="@color/colorPrimaryDark"
app:unchecked_color="@color/colorPrimary"
android:padding="20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

```
#### In Kotlin
```kotlin
val mList = listOf(
Order(1, "Step1", true),
Order(2, "Step2"),
Order(3, "Step3"),
Order(4, "Step4")
)

val adapter = OrderAdapter(this, mList)
steeper.setAdapter(adapter)

// Go To Next Step
btnNextStep.setOnClickListener { steeper.nextStep() }
```


## About Developer:
##### Name: Kareem E Radwan
##### Email: [email protected]
Expand Down

0 comments on commit c8d6662

Please sign in to comment.