Professional Documents
Culture Documents
Exp 2 Android
Exp 2 Android
Aim: Create “Hello World” application to “Hello World” in the middle of the screen in
the red colour with white background.
Program :- Active_main.xml
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/tv"
android:text="Hello World!"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:textColor="@color/Red"/>
</RelativeLayout>
Program: color.xml
Output:
Conclusion: Thus we have completed this experiment successfully. We learnt the
create “Hello World” application to “Hello World” in the middle of the screen in the
red colour with white background.