Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Horizontal LinearLayout in Anko

What is a good way to do a horizontalLayout in anko / kotlin ? verticalLayout works fine - could set orientation on it but it feels wrong. Not sure what I am missing there.

like image 764
ligi Avatar asked Apr 30 '15 11:04

ligi


1 Answers

Just use a linearLayout() function instead.

linearLayout {
    button("Some button")
    button("Another button")
}
like image 111
yanex Avatar answered Sep 22 '22 16:09

yanex