https://github.com/PopPsyA/MagicTip
Simple as fuck💡
https://github.com/PopPsyA/MagicTip
android android-app android-library custom custom-view instagram library simple textview tooltip tooltip-library ui view
Last synced: 4 months ago
JSON representation
Simple as fuck💡
- Host: GitHub
- URL: https://github.com/PopPsyA/MagicTip
- Owner: PopPsyA
- License: apache-2.0
- Created: 2019-11-04T10:45:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-29T09:29:04.000Z (over 5 years ago)
- Last Synced: 2025-01-17T02:03:10.028Z (4 months ago)
- Topics: android, android-app, android-library, custom, custom-view, instagram, library, simple, textview, tooltip, tooltip-library, ui, view
- Language: Kotlin
- Homepage:
- Size: 159 KB
- Stars: 25
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MagicTip
[](https://jitpack.io/#Devit951/MagicTip)
[]( https://android-arsenal.com/details/1/7962 )

## 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'`