Panduan Praktis Pembuatan Aplikasi Android/Layout

Perbandingan Layout Android dan Atribut-Kontainer / Kontainer Gambas
Layout Android Atribut-Kontainer / Kontainer Gambas
<AbsoluteLayout /> Arrangement = Arrange.None
<RelativeLayout />
<FrameLayout />
<LinearLayout android:orientation="horizontal" /> Arrangement = Arrange.Horizontal

HBox

<LinearLayout android:orientation="vertical" /> Arrangement = Arrange.Vertical

VBox

<TableLayout android:stretchColumns="*" /> Arrangement = Arrange.Row

HPanel

<ScrollView /> ScrollBar = Scroll.Vertical
<android.support.v4.widget.DrawerLayout />
Perbandingan Kode Dinamis
Layout Android dan Atribut Kontainer Gambas
Layout Android Atribut Kontainer Gambas
layout.setOrientation(LinearLayout.HORIZONTAL); form.Arrangement = Arrange.Horizontal
layout.setOrientation(LinearLayout.VERTICAL); form.Arrangement = Arrange.Vertical