Popularity
0.9
Stable
Activity
6.6
Declining
17
2
1

Programming language: Kotlin
Tags: Kotlin     UI     Android     Animations     UI Widget     TextView     Views     Custom View     Android-library     Tooltips    
Latest version: v1.0.0

MagicTip alternatives and similar packages

Based on the "Kotlin" category

Do you think we are missing an alternative of MagicTip or a related project?

Add another 'Kotlin' Package

README

MagicTip

Android Arsenal

20191114_151821

Simple MagicTip

MagicTip(anchorView)
                    .settings {
                        text = "Lorem Posen"
                        bgColor = Color.RED
                    }
                    .show()

AutoCloseMagicTip

AutoCloseMagicTip by default close tip after 1000 milliseconds. You can change it in the constructor:

AutoCloseMagicTip(anchorView, delayMillis)
                    .settings {
                        text = "Lorem Posen"
                        bgColor = Color.GREEN
                    }
                    .show()

OneMagicTip

OneMagicTip - it is decorator that shows only 1 MagicTip.

 OneMagicTip(anchorView, MagicTip(anchorView)
                    .settings {
                        text = "Lorem Posen"
                        bgColor = Color.BLUE
                    })
                    .show()

How to use animations?

In the MagicTip.(view).settings{ } block of code you have access to startAnimationDelegate and exitAnimationDelegate. Don't forget to set Reversed version of animation on exitAnimationDelegate. For example if startAnimationDelegate = OvershootMagicTipAnimation() then exitAnimationDelegate = OvershootMagicTipAnimation.Reversed()

Set of animations:

  • AlphaMagicTipAnimation
  • OvershootMagicTipAnimation
  • ScaledTranslateMagicTipAnimation

Download

implementation 'com.github.Devit951:MagicTip:1.0.0'