You are on page 1of 3

Ingeniera en Arquitectura de Software.

Nombre: ANA KAREN CERN FERNNDEZ

Matrcula: 1713110241

Nombre del curso:

Nombre del profesor:

Aplicaciones III

Salvador Hernndez Mendoza

Segundo Parcial

Tema:
LinearLayout(vertical)

Fecha: 06-03-2015
Bibliografa:

Introduccin:
En este ejercicio aprenderemos a utilizar un LinearLayout (vertical).
Procedimiento:

Componentes

!!ActivityMain!!
< LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation =
android:layout_width =

"vertical"
"fill_parent"

android:layout_height =

"fill_parent"

android:layout_weight =

"1"

>

< TextView
android:text =

"red"

android:gravity =

"center_vertical"

android:background =

"#aa0000"

android:layout_width =

"wrap_content"

android:layout_height =

"fill_parent"

android:layout_weight =

"1"

/>

< TextView
android:text =

"green"

android:gravity =

"center_vertical"

android:background =

"#00aa00"

android:layout_width =

"wrap_content"

android:layout_height =

"fill_parent"

android:layout_weight =

"1"

/>

< TextView
android:text =

"blue"

android:gravity =

"center_vertical"

android:background =

"#0000aa"

android:layout_width =

"wrap_content"

android:layout_height =

"fill_parent"

android:layout_weight =

"1"

/>

< TextView
android:text =

"yellow"

android:gravity =

"center_vertical"

android:background =

"#aaaa00"

android:layout_width =

"wrap_content"

android:layout_height =

"fill_parent"

android:layout_weight =

"1"

</ LinearLayout >

/>

!!! Concluin!!!

!Ejercicio concluido!!

You might also like