A Rotary Dialer loading for Android.
Switch branches/tags
Nothing to show
Clone or download
Latest commit e4a79e8 Oct 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Add dialer-loading Sep 2, 2018
dialer-loading Bump version to 1.0.0 Sep 2, 2018
gradle/wrapper Add dialer-loading Sep 2, 2018
.gitignore Add dialer-loading Sep 2, 2018
.travis.yml Add bintray env variables Sep 2, 2018
LICENSE Initial commit Aug 31, 2018
README.md Update README.md Oct 6, 2018
build.gradle Add dialer-loading Sep 2, 2018
gradle.properties Add dialer-loading Sep 2, 2018
gradlew Add dialer-loading Sep 2, 2018
gradlew.bat Add dialer-loading Sep 2, 2018
preview.gif Add preview.gif Sep 2, 2018
settings.gradle Add dialer-loading Sep 2, 2018

README.md

DialerLoading Android Arsenal Download

A rotary dialer loading view written in Kotlin.

Installtion

implementation "io.saeid:dialer-loading:1.0.0"

Usage

Add DialerLoadingView:

    <io.saeid.dialerloading.DialerLoadingView
        android:id="@+id/rotary_dialer"
        // optional attributes                                      
        app:dialer_background_color="@color/your_color"
        app:dialer_color_start="@color/your_color"
        app:dialer_color_end="@color/your_color"
        app:dialer_digit_color="@color/your_color"
        app:dialer_triangle_color="@color/your_color"
        app:dialer_duration="time in millis"
        .../>

To start loading, call dial method:

rotary_dialer.dial(
       endless = true // enable endless mode (default is true)
       digits = arrayIntOf(1,2,3) // numbers to dial
)

To stop loading, call hangUp method:

rotary_dialer.hangUp()

Credits

Inspired by : https://www.uplabs.com/posts/dailer-loading-microinteraction

License

Copyright 2018 Saeed Masoumi.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.