!
"#$%%&'$%%()*!
+,(-&'%'(&./-&%'%'(
0
122!!23!
5
$
4!56+5
'
$
•
"*"!+78389',:"
!
•
*36+";<;3:
"<!
=
4!56+5
'
=
>3?*
>'?*
! "#>"?*":
$ %&*":<""!
' ()>@:*@:*)@:*@:*A?
B
4!56+5
'
B
*&+
.! C",!
$! D"E!
=! "<:;F ;>":?
4
4!56+5
'
4
*&+
G@:>H?
/
4!56+5
'
/
G@:
,I$!=
-
4!56+5
'
-
5:"*E3!
J"*J;
•
<*
•
J*
•
:"*
•
"*
•
"*
•
"
&
4!56+5
'
&
(
:!
<
*K")-;: ;!
<J< "
(
4!56+5
'
(
.(
:>GLM+NL?>@OM+?!
PQ3R !"#$%&
P
R'()
S:R*+,
S"R*+,
"R //
"R0,
3R1,2))),3))
./"horizontal" &
P"%&
R'()45
S:R,+
S"R,+
"R 66
3R45
3,TR6,
3,R
3R
U
P23@:U
P0"
R'()5
S:R,+
S"R,+
3,TR$,
U
P2O3U
P*1
R'()7
S:R,+
S"R,+
3R7
3,R
U
P21U
P2U
)-
.%
4!56+5
'
.%
.,2
•
)"88T"3!
•
)T:;*:;::
"!
empty screen space
natural sizes
4!56+5
'
.,2
:"1
android:layout_widthandroid:layout_height
;!
@J"":
.! ,J,*'>3?
$! V&3*::"J*"*:
&& J!
=! V43*::"J"*E:"
;!
.$
4!56+5
'
.$
.,2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/myLinearLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ff0033cc"
android:padding="4dip"
android:orientation="vertical"
xmlns:android=" />>
<TextView
android:id="@+id/labelUserName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ffff0066"
android:text="User Name"
android:textSize="16sp"
android:textStyle="bold"
android:textColor="#ff000000"
>
</TextView>
<EditText
android:id="@+id/ediName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="18sp"
>
</EditText>
<Button
android:id="@+id/btnGo"
android:layout_width="125dip"
android:layout_height="wrap_content"
android:text="Go"
android:textStyle="bold"
>
</Button>
</LinearLayout>
&
&
)
&
4
-
.
'
'
&5!678
7).!6$965!8
.=
4!56+5
'
.=
.:)
+<":":!
W.3&)>.*$*=*A?:<;;":"!
0
891:"
3!<
android:layout_weight="1":O3
android:layout_weight="2"
:;
";.<5==8
)
.B
4!56+5
'
.B
! .7
•
+::"!
•
;*:"E''"!
•
W
.3 />+?
"
<==!=,=1=
1)"
.4
4!56+5
'
.4
! "@(A. 3
7:
.
J:;F*3''3*:F;!
.3
<::>!!::?!
android:gravity="center"
android:layout_gravity="center"
./
4!56+5
'
./
$ .B
•
"J::;:"88:"!
•
+;:::";*::
•
.
•
">!>?<:"9F!
A.V""":"!
4!56+5
'
! .B2
.&
4!56+5
'
.&
! .@2B
0.
O33"=%;"
<EditText
android:id="@+id/ediName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="18sp"
android:padding="30dip“
>
</EditText>
.(.(
4!56+5
'
.(
$ .5082
•
;*:"<" 3!
•
:.31
<EditText
android:id="@+id/ediName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="18sp"
android:layout_margin=“6dip“
>
</EditText>
+':"
$%
4!56+5
'
$%
:"<:"!
*
0
C
:*"
:*E;
$.
4!56+5
'
$.
)
,<">?<":""<)C
•
.3B":"":;
•
.3B*1:"1":1;
•
.3BD:"E":E;
•
.3B):""":";
•
.3@B:"<T<;
•
.3E-:"<T;
•
.3%:"<<;
$$
4!56+5
'
$$
F)&
;:"<"<";:")&.
•
.3# :":";
•
.3#&:"::";
•
.3D(:"E;:";
•
.3)(:"";:";
$=
4!56+5
'
$=
F)&F
•
.3":"":;:";
•
.3*1:"1":1;:";
•
.3D:"E":E;:";
•
.3):""":";:";
•
.3*;::""
$B
4!56+5
'
$B
F)&
+M<<V<
.! V<J>android:id1?:!
$! ,3G=<>;O33android:id="@+id/ediUserName")
=! M;:""<J>G=<?":"!D:
O33android:layout_below="@+id/ediUserName"
$4
4!56+5
'
F0
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/myRelativeLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ff000099"
xmlns:android=" /><TextView
android:id="@+id/lblUserName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ffff0066"
android:text="User Name"
android:textStyle="bold"
android:textColor="#ff000000"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true">
</TextView>
<EditText
android:id="@+id/ediUserName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/lblUserName"
android:layout_alignParentLeft="true"
android:layout_alignLeft="@+id/myRelativeLayout"
android:padding="20dip">
</EditText>
<Button
android:id="@+id/btnGo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/ediUserName"
android:layout_alignRight="@+id/ediUserName"
android:text="Go"
android:textStyle="bold">
</Button>
<Button
android:id="@+id/btnCancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/btnGo"
android:layout_below="@+id/ediUserName"
android:text="Cancel"
android:textStyle="bold">
</Button>
</RelativeLayout>
$4