Sunday, January 5, 2020

How to create Tap Hold Up Button Android example

welcome to the blog android example code today I will introduce you to one of the basic examples of android programming.

How to create Tap Hold Up Button Android example

Step 1. install libary Tapholduobutton android in gradient
Add repository
allprojects {
    repositories {
    ...
    maven {
        url 'https://jitpack.io' }
    }
}
Add dependency
dependencies {
    implementation 'com.github.abdularis:TapHoldUpButton:0.1.1'
}
Step 2. Add tapholdupbutton in layout
<com.aar.tapholdupbutton.TapHoldUpButton
        android:layout_width="76dp"
        android:layout_height="76dp"
        app:thub_ringStrokeWidth="2dp"
        app:thub_ringColor="#DDDDDD"
        app:thub_circleColor="#DDDDDD"
        app:thub_circleGap="3dp"
        app:thub_circleColorOhHold="#FA1A1A"/> 

How to create Tap Hold Up Button Android example