Floaty

Additional

Language
Java
Version
N/A
Created
Nov 22, 2017
Updated
Feb 22, 2018
Owner
Yuji Koketsu (kettsun0123)
Contributor
Yuji Koketsu (kettsun0123)
1
Activity
Badge
Generate
Download
Source code

Show card

Floaty

Gradle

dependencies {
    implementation 'com.github.kettsun0123:floaty:0.1.0'
}



FloatyContentLayout extend FrameLayout. Make sure to add ViewGroup.

and use in activity file.

button_floaty.setOnClickListener { Floaty.make(it, R.layout.layout_floaty_big).setDuration(Floaty.LENGTH_INDEFINITE).show() }

When you want to replace view with transition,

button_floaty_replace.setOnClickListener {
            Floaty.make(it, R.layout.hugahuga).setDuration(Floaty.LENGTH_SHORT).setTransition(CustomTransition()).replace()
        }