03.
android:layout_width
=
"match_parent"
04.
android:layout_height
=
"match_parent"
05.
tools:context
=
".MainActivity"
>
06.
07.
<
Button
08.
android:id
=
"@+id/button1"
09.
android:layout_width
=
"wrap_content"
10.
android:layout_height
=
"wrap_content"
11.
android:layout_alignParentLeft
=
"true"
12.
android:layout_alignParentTop
=
"true"
13.
android:layout_marginLeft
=
"54dp"
14.
android:layout_marginTop
=
"117dp"
15.
android:onClick
=
"ON"
16.
android:text
=
" ON "
/>
17.
18.
<
Button
19.
android:id
=
"@+id/button2"
20.
android:layout_width
=
"wrap_content"
21.
android:layout_height
=
"wrap_content"
22.
android:layout_alignBaseline
=
"@+id/button1"
23.
android:layout_alignBottom
=
"@+id/button1"
24.
android:layout_alignParentRight
=
"true"
25.
android:layout_marginRight
=
"66dp"
26.
android:onClick
=
"OFF"
27.
android:text
=
" OFF "
/>
28.
29.
</
RelativeLayout
>