Basic Android Layout
-
Upload
bayu-firmawan-paoh -
Category
Software
-
view
104 -
download
0
Transcript of Basic Android Layout
Linear Layout
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"android:orientation="horizontal | vertical">
<!-- widget2 disini-->
</LinearLayout>
Relative LayoutEnables you to specify the location of child objects relative to each other
(child A to the left of child B) or to the parent (aligned to the top of the
parent).
Relative Layout
<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent">
<!-- widget2 disini-->
</RelativeLayout>
Absolute Layout
<AbsoluteLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent">
<!-- widget2 disini-->
</AbsoluteLayout>
Frame Layout
<FrameLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent">
<!-- widget2 disini-->
</FrameLayout>
IntentAn Intent provides a facility for performing late runtime binding between the
code in different applications.