Guest User

Untitled

a guest
May 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class ToolbarTemplateLayout<A: Activity>(private val layoutInterface: ToolbarTemplateLayoutInterface): AnkoComponent<A> {
  2.  
  3. override fun createView(ui: AnkoContext<A>): View {
  4. return ui.verticalLayout {
  5. themedToolbar(layoutInterface.toolbarStyleId())
  6. include<View>(layoutInterface.includedLayoutId())
  7. }
  8. }
  9.  
  10. interface ToolbarTemplateLayoutInterface{
  11. fun toolbarStyleId(): Int
  12. fun includedLayoutId(): Int
  13. }
  14. }
Add Comment
Please, Sign In to add comment