Professional Documents
Culture Documents
Code For Act 1
Code For Act 1
xml:
?
1
2
3
<?xml version="1.0" encoding="utf-8"?>
4 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
5 android:orientation="vertical"
6 android:layout_width="match_parent"
7 android:layout_height="match_parent">
8
9 <TextView
android:id="@+id/textView"
10 android:layout_width="match_parent"
11 android:layout_height="wrap_content"
12 android:layout_margin="30dp"
13 android:gravity="center"
android:text="Hello World!"
14 android:textSize="25sp"
15 android:textStyle="bold" />
16
17 <Button
18 android:id="@+id/button1"
19 android:layout_width="match_parent"
android:layout_height="wrap_content"
20 android:layout_margin="20dp"
21 android:gravity="center"
22 android:text="Change font size"
23 android:textSize="25sp" />
<Button
24
android:id="@+id/button2"
25 android:layout_width="match_parent"
26 android:layout_height="wrap_content"
27 android:layout_margin="20dp"
28 android:gravity="center"
android:text="Change color"
29 android:textSize="25sp" />
30 </LinearLayout>
31
32
33