Created
May 19, 2015 21:51
-
Star
(166)
You must be signed in to star a gist -
Fork
(150)
You must be signed in to fork a gist
-
-
Save anonymous/cd7fda2fa5c4062acb92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<LinearLayout | |
android:orientation="vertical" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content"> | |
<TextView | |
android:text="Guest List" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" /> | |
<TextView | |
android:text="Kunal" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" /> | |
</LinearLayout> |
- Linear Layout is Vertical
- Their are two TextViews
- Linear Layout is group view
- Text Views are not centered,
- View Group not identified due to no background color,
- No spacing between Text views.
,there is no forward slash at the top lineaylayout
The code starts with opening tag
the code includes new attribute called : android:orientation
The code has two TextViews as siblings
the code ends with closing tag
View GROUP is linear layout
Vertical Orientation
Two Text view
The parent[LinearLayout] has two TextView as the children and oriented vertical
parent view on the LinearLayout has two TextView and Children and Oriented Vertical
- There is new linear layout keyword.
- There is new android orientation attribute.
- There are two text views inside the linear layout.
- There is new linear layout keyword.
- There is new android orientation attribute.
- There are two text views inside the linear layout.
<script src="https://gist.github.com/anonymous/cd7fda2fa5c4062acb92.js"></script>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This XML code defines a vertical LinearLayout containing two TextView elements, one displaying "Guest List" and the other displaying "Kunal". Each element's width and height are set to wrap their respective content.