modificare il main.xml in modo da visualizzare la stringa "hello world + nome"
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hello World, Lorenzo"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hello World, Luigi"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hello World, Daniele"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hello World, Michele"
/>
</LinearLayout>
---------------------------------------------------------------------
Modificare il main.xml aggiungendo un bottone con la scritta "sono un bottone"
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hello World, Bottone"
/>
<Button android:id="@+id/bottone"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Sono un Bottone!"
/>
</LinearLayout>
Bene
RispondiElimina