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

Tugas 2 Pemrograman Mobile

This document contains instructions for Android Programming Assignment 2. It includes screenshots of the Android Studio project and emulator, as well as the XML layout code and Java code for a login screen. The XML code contains EditText fields for username and password, as well as buttons to login or cancel. The Java code sets the content view to the XML layout file.

Uploaded by

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

Tugas 2 Pemrograman Mobile

This document contains instructions for Android Programming Assignment 2. It includes screenshots of the Android Studio project and emulator, as well as the XML layout code and Java code for a login screen. The XML code contains EditText fields for username and password, as well as buttons to login or cancel. The Java code sets the content view to the XML layout file.

Uploaded by

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

TUGAS 2 PEMROGRAMAN MOBILE

Disusun oleh:

NOVITA SHANEN RETRAUBUN


172122

PROGRAM STUDI TEKNIK INFORMATIKA

UNIVERSITAS DIPA MAKASSAR

2023
1. Screenshoot project android studio

2. Screenshoot hasil emulator


3. Script XML
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
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:layout_margin="16dp"
android:orientation="vertical">

<EditText
android:id="@+id/username"
android:layout_width="393dp"
android:layout_height="50dp"
android:ems="10"
android:inputType="textPersonName"
android:text="Username" />

<EditText
android:id="@+id/password"
android:layout_width="393dp"
android:layout_height="50dp"
android:ems="10"
android:inputType="textPassword"
android:text="Password" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="16dp"
android:orientation="horizontal">

<Button
android:id="@+id/loginbutton"
android:layout_width="264dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Login" />
<Space
android:layout_width="16dp"
android:layout_height="16dp"></Space>
<Button
android:id="@+id/cancelbutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="X" />
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
4. Script Java
package com.example.novitasretraubun_172122_a;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy