Created
September 8, 2017 14:21
-
-
Save kobeumut/87419aac0550f9d08343b2d5d37384eb to your computer and use it in GitHub Desktop.
Add custom or absent view groups to Anko DSL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline fun ViewManager.lottieAnimationView() = lottieAnimationView {} | |
inline fun ViewManager.lottieAnimationView(theme: Int = 0, init: LottieAnimationView.() -> Unit) = ankoView({ LottieAnimationView(it) }, theme, init) | |
//then use it | |
frameLayout { | |
lottieAnimationView() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment