0% found this document useful (0 votes)
48 views3 pages

Nama: Albertus Andy Setyaputra NIM: A11.2010.05611 Kelp: A11.4601

aiwdmaiosdma aoskdpas pdamspdoiamspod maposdm apsodmapsdima psidmaspifmweoifmwmc CIM IWMCWOICM WIEMCWIOCM WIOCM WmcCIM asdasd asdadasd a dsasdads asdasdasdimdoiwemdoiwemd wiemdow dm

Uploaded by

Andy Setyaputra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views3 pages

Nama: Albertus Andy Setyaputra NIM: A11.2010.05611 Kelp: A11.4601

aiwdmaiosdma aoskdpas pdamspdoiamspod maposdm apsodmapsdima psidmaspifmweoifmwmc CIM IWMCWOICM WIEMCWIOCM WIOCM WmcCIM asdasd asdadasd a dsasdads asdasdasdimdoiwemdoiwemd wiemdow dm

Uploaded by

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

Nama NIM Kelp

: Albertus Andy Setyaputra : A11.2010.05611 : A11.4601

TUGAS 1

Scource code: package android.kitkat.dataandy;

import android.os.Bundle; import android.app.Activity; import android.view.Menu;

public class MainActivity extends Activity {

@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); }

@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; }

Activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".MainActivity" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello world" android:textSize="34sp" /> <TextView android:id="@+id/TextView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@+id/TextView1"

android:layout_below="@+id/textView1" android:layout_marginTop="41dp" android:text="NIM : A11.2010.05611" /> <TextView android:id="@+id/TextView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_above="@+id/TextView1" android:layout_alignLeft="@+id/textView1" android:layout_marginBottom="40dp" android:layout_marginLeft="16dp" android:text="Agama : Katolik" /> <TextView android:id="@+id/TextView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@+id/textView1" android:layout_below="@+id/TextView1" android:layout_marginTop="52dp" android:text="Jenis kelamin : Laki-laki" /> <TextView android:id="@+id/TextView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@+id/TextView1" android:layout_below="@+id/TextView1" android:layout_marginTop="64dp" android:text="Alamat : Jl. Wahyu temurun II no.5/7, perumahan tlogosari, jawa tengah." /> <TextView android:id="@+id/TextView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@+id/TextView1" android:layout_centerVertical="true" android:text="Nama : Albertus andy setyaputra" /> </RelativeLayout>

You might also like