U2 02
Revisión del 22:47 2 nov 2013 de Carrion (discusión | contribuciones)
- Inicio
1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools"
3 android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 android:paddingBottom="@dimen/activity_vertical_margin"
6 android:paddingLeft="@dimen/activity_horizontal_margin"
7 android:paddingRight="@dimen/activity_horizontal_margin"
8 android:paddingTop="@dimen/activity_vertical_margin"
9 tools:context=".U2_02_ParBasicos" >
10
11 <TextView
12 android:layout_width="wrap_content"
13 android:layout_height="wrap_content"
14 android:text="@string/hello_world" />
15
16 </RelativeLayout>
1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools"
3 android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 android:paddingBottom="@dimen/activity_vertical_margin"
6 android:paddingLeft="@dimen/activity_horizontal_margin"
7 android:paddingRight="@dimen/activity_horizontal_margin"
8 android:paddingTop="@dimen/activity_vertical_margin"
9 tools:context=".U2_02_ParBasicos" >
10
11 <TextView
12 android:id="@+id/textView1"
13 android:layout_width="wrap_content"
14 android:layout_height="wrap_content"
15 android:text="@string/hello_world" />
16
17 <Button
18 android:id="@+id/button1"
19 android:layout_width="wrap_content"
20 android:layout_height="wrap_content"
21 android:layout_below="@+id/textView1"
22 android:layout_marginTop="99dp"
23 android:layout_toRightOf="@+id/textView1"
24 android:text="Button" />
25
26 </RelativeLayout>
1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools"
3 android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 android:orientation="vertical">
6
7
8 <TextView
9 android:id="@+id/textView1"
10 android:layout_width="wrap_content"
11 android:layout_height="wrap_content"
12 android:text="@string/hello_world" />
13
14 </LinearLayout>
1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools"
3 android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 android:orientation="vertical">
6
7
8 <TextView
9 android:id="@+id/textView1"
10 android:layout_width="wrap_content"
11 android:layout_height="wrap_content"
12 android:text="@string/hello_world" />
13
14 <TextView
15 android:layout_width="wrap_content"
16 android:layout_height="wrap_content"
17 android:text="O meu primeiro texto"/>
18
19 </LinearLayout>
1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools"
3 android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 android:orientation="vertical">
6
7 <TextView
8 android:id="@+id/textView1"
9 android:layout_width="wrap_content"
10 android:layout_height="wrap_content"
11 android:text="@string/hello_world" />
12
13 <TextView
14 android:layout_width="wrap_content"
15 android:layout_height="wrap_content"
16 android:textColor="#F00"
17 android:layout_marginLeft="20sp"
18 android:textStyle="bold"
19 android:textSize="22sp"
20 android:text="O meu primeiro texto"/>
21
22 <TextView
23 android:layout_width="wrap_content"
24 android:layout_height="wrap_content"
25 android:background="#000"
26 android:textColor="#FFF"
27 android:textStyle="bold|italic"
28 android:typeface="serif"
29 android:text="Negriña, cursiva e serif"/>
30
31 <TextView
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:background="#00F"
35 android:textColor="#FFF"
36 android:text="Ocupando o ancho do pai"/>
37
38 </LinearLayout>
1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools"
3 android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 android:orientation="vertical">
6
7 <TextView
8 android:id="@+id/textView1"
9 android:layout_width="wrap_content"
10 android:layout_height="wrap_content"
11 android:text="@string/hello_world" />
12
13 <TextView
14 android:layout_width="wrap_content"
15 android:layout_height="wrap_content"
16 android:textColor="#F00"
17 android:layout_marginLeft="20sp"
18 android:textStyle="bold"
19 android:textSize="22sp"
20 android:text="O meu primeiro texto"/>
21
22 <TextView
23 android:layout_width="wrap_content"
24 android:layout_height="wrap_content"
25 android:background="#000"
26 android:textColor="#FFF"
27 android:textStyle="bold|italic"
28 android:typeface="serif"
29 android:text="Negriña, cursiva e serif"/>
30
31 <TextView
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:background="#00F"
35 android:textColor="#FFF"
36 android:textStyle="bold"
37 android:text="Ocupando o ancho do pai"/>
38
39 <TextView
40 android:layout_width="wrap_content"
41 android:layout_height="match_parent"
42 android:background="#F00"
43 android:textColor="#FFF"
44 android:textStyle="bold"
45 android:text="Ocupando o resto do alto do pai "/>
46
47 </LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">
<TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_world" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#F00" android:layout_marginLeft="20sp" android:textStyle="bold" android:textSize="22sp" android:text="O meu primeiro texto"/>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#000" android:textColor="#FFF" android:textStyle="bold|italic" android:typeface="serif" android:text="Negriña, cursiva e serif"/> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="right" android:background="#00F" android:textColor="#FFF" android:textStyle="bold" android:text="Ocupando o ancho do pai"/> <TextView android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="right" android:background="#F00" android:textColor="#FFF" android:textStyle="bold" android:text="Ocupando o resto do alto do pai "/>
</LinearLayout>