No description or website provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
BalloonWindow
app
gradle/wrapper
screenshots
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

android-BalloonWindow

drawing

Download

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    implementation 'com.github.hyuntae0117:android-BalloonWindow:0.1.5'
}

Usage

Basic usage

val view = TextView(this)
view.text = "position:below"

val window = BalloonWindow(this, targetView, BalloonWindow.Position.below)
window.offset = 48
window.paddingTop = 40
window.margin = 10
window.show(view)

Position

There are four types of positions

val window = BalloonWindow(.., .., position: Position)
  • Position.above: will appear above the target

  • Position.below: will appear below the target

  • Position.right: will apper right hand side of the target

  • Position.left: will appear left hand side of the target

offset

padding

BalloonWindowListener

You can catch when BalloonWindow

val window = BalloonWindow(.., .., ..)
window.setBalloonListener(object: BalloonWindowListener {
  ...
})
  • willAppear(window: BalloonWindow)

  • willDisappear(window: BalloonWindow)

  • didAppear(window: BalloonWindow)

  • didDisappear(window: BalloonWindow)