welcome to the blog android example code today I will introduce you to one of the basic examples of android programming.
Add repository
How to create Tap Hold Up Button Android example
Step 1. install libary Tapholduobutton android in gradientAdd repository
allprojects {Add dependency
repositories {
...
maven {
url 'https://jitpack.io' }
}
}
dependencies {Step 2. Add tapholdupbutton in layout
implementation 'com.github.abdularis:TapHoldUpButton:0.1.1'
}
<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"/>