0% found this document useful (0 votes)
4 views

FirstProject

cara membuat aplikasi android sederhana

Uploaded by

ice chloe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

FirstProject

cara membuat aplikasi android sederhana

Uploaded by

ice chloe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

First Project

activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/r
es/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" <Button
android:layout_height="match_parent" android:id="@+id/btn_simpan"
android:padding="16dp" android:layout_width="match_parent"
android:orientation="vertical" android:layout_height="wrap_content"
tools:context=".MainActivity"> android:text="@string/btn_save" />

<TextView <TextView
android:layout_width="match_parent" android:id="@+id/tv_pesan"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:text="@string/app_name" /> android:layout_height="wrap_content"
android:gravity="center"
<EditText android:text="@string/pesan"
android:id="@+id/et_nama" android:textSize="24sp"
android:layout_width="match_parent" android:textStyle="bold" />
android:layout_height="wrap_content"
android:inputType="text" </LinearLayout>
android:lines="1" />
string.xml

<resources>
<string name="app_name">Kirim
Pesan</string>
<string name="name">Masukan Nama
Saya</string>
<string name="btn_save">Simpan</string>
<string name="pesan">Pesan</string>
</resources>
MainActivity.java
Hasilnya

You might also like