Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ToolbarTemplateLayout<A: Activity>(private val layoutInterface: ToolbarTemplateLayoutInterface): AnkoComponent<A> {
- override fun createView(ui: AnkoContext<A>): View {
- return ui.verticalLayout {
- themedToolbar(layoutInterface.toolbarStyleId())
- include<View>(layoutInterface.includedLayoutId())
- }
- }
- interface ToolbarTemplateLayoutInterface{
- fun toolbarStyleId(): Int
- fun includedLayoutId(): Int
- }
- }
Add Comment
Please, Sign In to add comment