0% found this document useful (0 votes)
60 views4 pages

Atya Dwi Yulianti 171177 Final Prak Mobile

This document is the final task for the Mobile Application Programming Practicum by Atya Dwi Yulianti with the student ID of 171177 in the D class. It contains details about the output, MainActivity XML layout, and MainActivity Java code for an application that collects user input fields including name, student ID, class, major, and email using edit texts, auto-complete text views, and a submit button.

Uploaded by

Muhammad Irfan
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)
60 views4 pages

Atya Dwi Yulianti 171177 Final Prak Mobile

This document is the final task for the Mobile Application Programming Practicum by Atya Dwi Yulianti with the student ID of 171177 in the D class. It contains details about the output, MainActivity XML layout, and MainActivity Java code for an application that collects user input fields including name, student ID, class, major, and email using edit texts, auto-complete text views, and a submit button.

Uploaded by

Muhammad Irfan
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/ 4

TUGAS FINAL

PRAKTIKUM PEMROGRAMAN APLIKASI MOBILE

OLEH :

NAMA : ATYA DWI YULIANTI


STAMBUK : 171177
KELAS : D

STMIK DIPANEGARA
MAKASSAR
2020
 Output
 MainActivity.Xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<EditText
android:id="@+id/editText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="Masukkan Nama"
android:inputType="textPersonName"
android:textColor="#000000"
android:textColorHint="#000000" />

<EditText
android:id="@+id/editText2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="Masukkan NIM"
android:inputType="textPersonName"
android:textColor="#000000"
android:textColorHint="#000000" />

<EditText
android:id="@+id/editText3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="Masukkan Kelas"
android:inputType="textPersonName"
android:textColor="#000000"
android:textColorHint="#000000" />

<MultiAutoCompleteTextView
android:id="@+id/simpleMultiAutoCompleteTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Masukkan Jurusan"
android:padding="10dp"
android:textColor="#f00"
android:textColorHint="#000000"
android:textSize="18sp" />
<EditText
android:id="@+id/editText4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:hint="Masukkan Email"
android:inputType="textPersonName"
android:textColorHint="#000000" />

<Button
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="40dp"
android:text="submit" />
</LinearLayout>

</RelativeLayout>

 MainActivity. Java
package com.example.finalprakatyadwiyulianti17117;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.MultiAutoCompleteTextView;

public class MainActivity extends AppCompatActivity {


String[] androidVersionNames = {"Jurusan Teknik Informatika" , "Jurusan Sistem
Informasi" , "Jurusan Manajemen Informatika" };

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

MultiAutoCompleteTextView simpleMultiAutoCompleteTextView =
(MultiAutoCompleteTextView)findViewById(R.id.simpleMultiAutoCompleteTextView);

ArrayAdapter<String> versonNames = new ArrayAdapter<String>(this,


android.R.layout.simple_list_item_1, androidVersionNames);
simpleMultiAutoCompleteTextView.setAdapter(versonNames);

simpleMultiAutoCompleteTextView.setThreshold(1);

simpleMultiAutoCompleteTextView.setTokenizer(new
MultiAutoCompleteTextView.CommaTokenizer());
}
}

You might also like