Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2015 21:51
Show Gist options
  • Save anonymous/cd7fda2fa5c4062acb92 to your computer and use it in GitHub Desktop.
Save anonymous/cd7fda2fa5c4062acb92 to your computer and use it in GitHub Desktop.
<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>
@HabeebRahmanKT
Copy link

1.viewGroup is a LinearLayout
2. orientation of Linearlayout is "vertical" , has width and height as "wrap_content"
3. Two children of TextView

@gurazbaeva
Copy link

LinearLayout это-ViewGroup
There are two TextView
Linearout is vertical

@Nishant-ops
Copy link

Linear Layout is Vertical
their are two text View
Linear Layout as group view

@tango4567
Copy link

tango4567 commented Feb 14, 2021

Parent LinearLayout with orientation attribute vertical and they have two sibling children TextView.

<Ding  hossssiiii
	puuuh puuuh puuuh
	puuuh puuuh puuuh Boom/>

@naimish-gupta
Copy link

The linear layout vertical
with wrap content linear layout
and guest list and kunal are two textview

@manalSualim
Copy link

the code of the parent
the code of the sibling
the difference between the two sibling codes is the name

@farid07a
Copy link

farid07a commented Apr 13, 2021

  • View group is a LinearLayout
  • The linearLayout is vertical layout
  • View group has width and height as "wrap_content"
  • Two TextView in View group

@thelusiveone
Copy link

It has 3 views one parent and two children
it has two TextView as siblings
views are "wrap_content" throughout
the layout is vertical

@anouralyahya
Copy link

one parent view
two child view
two text view
the text view sibling
linear layout

@karangupta14
Copy link

one parent view , 2 child views = 3 total views.
parent view is in vertical layout and wraps its contents horizontally and vertically.
the parent veiw has two text views as its children.

@MohamedSamir21
Copy link

LinearLayout is vertical.
It contains 2 text views.
Its closing tag is not-self.

@LaithH
Copy link

LaithH commented Jul 23, 2021

there is two Text Views in the main Linear Layout
each one has dimensions (width and height)
Linear Layout has an orientation option

@LaithH
Copy link

LaithH commented Jul 23, 2021

there is two Text Views in the main Linear Layout
each one has dimensions (width and height)
Linear Layout has an orientation option

@abdurahman77
Copy link

abdurahman77 commented Jul 27, 2021 via email

@Tityh23
Copy link

Tityh23 commented Dec 9, 2021

the linear layout is vertical
it contains 2 textviews
the dimensions are obtained automatically via wrap content

@rodrigogazevedo
Copy link

  1. One parent view: LinearLayout
  2. Linear layout orientation: vertical
  3. Height and width: wrap content
  4. Two children views: TextView
  5. Both children views with height and width: wrap content

@IslomIlkhomov
Copy link

  1. View group is a LinearLayout (parent)
  2. LinearLayout have orientation (vertical)
  3. LinearLayout have heigth and width (wrap_content)

@imohdalam
Copy link

LinearLayout is Parent View Group
Two TextView are Child View Group
All the Groups are Layout of height and width are of "wrap_content"

@archigoodvin07
Copy link

View group is a LinearLayout (parent)
LinearLayout have orientation (vertical)
LinearLayout have heigth and width (wrap_content)

@sajidalhafiz
Copy link

  1. XML element LinearLayout is used to display other views alongside.
  2. android:orientation attribute is introduced.
  3. The attribute value is "vertical", means childrens are aligned in a column.

@Dushyant-cmd
Copy link

ViewGroup(LinearLayout) orientation is vertical means all child views inside of LinearLayout view group position in vertical on screen of android device.
android:layout_width="wrap_content": It set the width of view group to content inside of it simply wrap all smaller views inside of it
android;layout_height="wrap_content": It set the height of view group to content height inside of LinearLayout contains

@Gisela0904
Copy link

La orientación que se eligio es lineal, vertical
El recuadro que esta detras del texto se acomoda a su largo y ancho
Las vistas de texto son hermanos

@AsmaShakeel-thecoder
Copy link

parent view is linear and it has 2 child views. Opening and closing of parent view and child view is same i.e. through angle braces and forth slash.

@paulorabelo
Copy link

The parent group (LinearLayout) has three configurations: orientation is vertical and width and height layouts that are both wrap content. Both of TextViews have width and height layouts set to wrap content and a text config thats contains the text thats appears on the screen.

@TIGRAN-rosian
Copy link

  1. Linear layout is a viewGroup. its orientation is in vertical fashion.
  2. one of the child group is a textGroup.
    3)Other child group is also a textgroup.

@abellop
Copy link

abellop commented Aug 21, 2022

  • existen un ViewGroups padre con 2 vistas (TextView )
  • se determina la posición ( android:orientation="vertical")
  • al ancho y alto de la vista padre esta determinada en ("wrap_content") para que le contenido se ajutes.

@tarunaksha
Copy link

  1. I prefer Relative layout over LinearLayout after using

@SandeepLakka
Copy link

  • Parent view orientation is set as vertical to allow for vertical stacking
  • Each text views are placed according to the order they are given in the parent layout
  • Parent view is LinearLayout

@meedaf12
Copy link

meedaf12 commented Nov 7, 2022

1- ViewGroupe is LinearLayout
2- orientation vertical
3- two child

@lalaodder
Copy link

  1. ViewGroup it's a element "LinearLayout".
  2. The sentence indicates that the orientation of the childs contained within the ViewGroup, wil be aligned vertically.
  3. The 2 childs elements are "TextView".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment