HintedImageButton

Additional

Language
Kotlin
Version
1.0.3 (Nov 6, 2018)
Created
Sep 15, 2018
Updated
Nov 13, 2018
Owner
Hendra Wijaya Djiono (hendrawd)
Contributor
Hendra Wijaya Djiono (hendrawd)
1
Activity
Badge
Generate
Download
Source code
APK file

Promotion

HintedImageButton

ImageButton that shows hint using toast when long clicked

How to use?

  • Add jitpack url in your root build.gradle
allprojects {
   repositories {
      maven { url 'https://jitpack.io' }
   }
}
  • Add the dependency
dependencies {
    implementation 'com.github.hendrawd:HintedImageButton:x.x.x'
}

Where x.x.x is the latest release version. Check the latest release version here

  • Use
<hendrawd.library.customview.HintedImageButton
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/ic_xxx"
    android:contentDescription="Put your hint here!"
    android:background="@drawable/optional_selector"
    />
<!-- use android:background="@null" if you want to remove the background-->

or directly within anko layout

frameLayout { 
    hintedImageButton { 
       // set properties
    }
}