Hello Welcome to the android dev center blog. This is the first post of this blog and for android developers who wants to lean Android we regularly will post new android examples.
So I'm considering that you already have Android Studio installed on your system.
Let's start with layouts first.
Android is having following layouts:
- LinearLayout
- RelativeLayout
- FrameLayout
- TableLayout
Additionally ListView and GridView.
1. LinearLayout:
Android LinearLayout is view group that aligns all children in either Horizontally or Vertically.
Example:
Vertical
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"> </LinearLayout>
Horizontal
<LinearLayout android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="horizontal"> </LinearLayout>
Sign up here with your email
ConversionConversion EmoticonEmoticon