Tugas Mobile Programming - Praktikum 1 | Teknik Informatika UNPI

 

NAMA                  : MUHAMMAD MUSLIM ABDUL JABBAAR

NIM                      : 217200035

PRODI                  : TEKNIK INFORMATIKA

MATKUL              : MOBILE PROGRAMMING 1

 

 

 

   PRAKTIKUM 1

Layouting pada android studio

1.        Layout merupakan tempat komponen-komponen dalam android studio berada seperti: button, image, dll.

2.        Pengaturan bagaimana jenis layout dalam activity main


Absolut Layout



Source  Code:

<?xml version=”1.0” encoding=”utf-8”?>

<AbsoluteLayout xmlns: android=”https://schemas.android.com/apk/res/android

         xmlns: tools=http://schemas.android.com/tools

         android: layout_width=”match_parent”

         android: layout_height=”match_parent”      

         tools: ignore=”Deprecated”

         android: layout_margin=”8dp”

         android: background=”ffffcc”

         tools: context= “.MainActivity”>

        

         <TextView

                  android: layout_width=”match_parent”

                  android: layout_height=”wrap_content”

                  android: text=”Masukan Email & Password”

                  android: gravity=”center”

                  android: textSize=”25sp”

                  android: textStyle=”bold”/>

 

         <EditText

                  android: id=”@+id/edit1”

                  android: layout_width=”match_parent”

                  android: layout_height=”wrap_content”

                  android: hint=”Email”

                  android: layout_y=”30dp”

                  android: inputType=”textPersonName”/>

 

         <EditText

                  android: id=”@+id/edit1”

                  android: layout_width=”match_parent”

                  android: layout_height=”wrap_content”

                  android: hint=”Password”

                  android: layout_y=”70dp”

                  android: inputType=”textPassword”/>

 

         <Button

                  android: id=”@+id/tombol1”

                  android: layout_width=”match_parent”

                  android: layout_height=”wrap_content”

                  android: hint=”Masuk”

                  android: layout_y=”125dp”

 

         <Button

                  android: id=”@+id/tombol2”

                  android: layout_width=”match_parent”

                  android: layout_height=”wrap_content”

                  android: hint=”Daftar”

                  android: layout_y=”125dp”

                  android: layout_x=”305dp”

        

</AbsoluteLayout>


Komentar

Postingan populer dari blog ini

Tugas Mobile Programming - Praktikum 5 | Teknik Informatika UNPI

Tugas Mobile Programming - Praktikum 8 | Teknik Informatika UNPI

Tugas Mobile Programming - Praktikum 9 | Teknik Informatika UNPI