Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. package kchaiko.vandrouki.ui.view
  2.  
  3. import android.view.ViewManager
  4. import kchaiko.vandrouki.ui.view.divider.DividerView
  5. import kchaiko.vandrouki.ui.view.textview.LargeLightTextView
  6. import kchaiko.vandrouki.ui.view.textview.NormalSecondaryTextView
  7. import org.jetbrains.anko.custom.ankoView
  8.  
  9. /**
  10. * Extensions for custom view with anko
  11. *
  12. * Created by Chayko_KA on 12.01.2018.
  13. */
  14.  
  15. fun ViewManager.divider(init: DividerView.() -> Unit) = ankoView({ DividerView(it) }, theme = 0, init = init)
  16. fun ViewManager.normalSecondaryTextView(init: NormalSecondaryTextView.() -> Unit) = ankoView({ NormalSecondaryTextView(it) }, theme = 0, init = init)
  17. fun ViewManager.largeLightTextView(init: LargeLightTextView.() -> Unit) = ankoView({ LargeLightTextView(it) }, theme = 0, init = init)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement