SlideShare a Scribd company logo
Kode Program Layout xml dan tampilan UI graphical
1. Layout Splash
<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:background="@drawable/background"
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=".Splash" >
<ProgressBar
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />
</RelativeLayout>
2. Layout Isi Kamus (Menu)
<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:background="@drawable/menuutama"
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=".IsiKamus" >
<ImageButton
android:id="@+id/imgangka"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginRight="15dp"
android:layout_marginTop="75dp"
android:layout_toLeftOf="@+id/imgbuah"
android:background="@drawable/numbers"
android:src="@drawable/numbers" />
<ImageButton
android:id="@+id/imgbuah"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/imgangka"
android:background="@drawable/fruit"
android:src="@drawable/fruit" />
<ImageButton
android:id="@+id/imgfamily"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imgbuah"
android:layout_below="@+id/imgbuah"
android:layout_marginTop="16dp"
android:background="@drawable/familys"
android:src="@drawable/familys" />
<ImageButton
android:id="@+id/imgvehicle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imgangka"
android:layout_alignTop="@+id/imgfamily"
android:background="@drawable/vegetable"
android:src="@drawable/vehicles" />
<ImageButton
android:id="@+id/imgsayuran"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imgfamily"
android:layout_below="@+id/imgfamily"
android:layout_marginTop="21dp"
android:background="@drawable/vegetable"
android:src="@drawable/vegetable" />
<ImageButton
android:id="@+id/imghewan"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imgvehicle"
android:layout_alignTop="@+id/imgsayuran"
android:background="@drawable/animal"
android:src="@drawable/animal" />
<ImageButton
android:id="@+id/imgabout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imgsayuran"
android:layout_below="@+id/imgsayuran"
android:layout_marginTop="22dp"
android:background="@drawable/tentang"
android:src="@drawable/tentang" />
<ImageButton
android:id="@+id/imgexit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imghewan"
android:layout_alignTop="@+id/imgabout"
android:background="@drawable/exit"
android:src="@drawable/exit" />
</RelativeLayout>
3. Layout Deskripsi
4. Layout Angka
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/backgroundangka"
android:orientation="vertical" >
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</FrameLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="ANGKA | NUMBER"
android:textColor="#ffff00ff"
android:background="#ffffffff">
</TextView>
<Gallery
android:id="@+id/gallery1"
android:layout_width="fill_parent"
android:layout_height="100px" >
</Gallery>
<ImageView
android:id="@+id/image1"
android:layout_width="320px"
android:layout_height="250px"
android:scaleType="fitXY" />
</LinearLayout>
5. Layout Buah
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/backgroundfruits"
android:orientation="vertical" >
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</FrameLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ffffffff"
android:text="@string/buah"
android:textColor="#ffff00ff" >
</TextView>
<Gallery
android:id="@+id/gallery1"
android:layout_width="fill_parent"
android:layout_height="100px" >
</Gallery>
<ImageView
android:id="@+id/image1"
android:layout_width="320px"
android:layout_height="250px"
android:scaleType="fitXY" />
</LinearLayout>
6. Layout Family (Keluarga)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/backgroundkeluarga"
android:orientation="vertical" >
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</FrameLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ffffffff"
android:text="@string/familyku"
android:textColor="#ffff00ff" >
</TextView>
<Gallery
android:id="@+id/gallery1"
android:layout_width="fill_parent"
android:layout_height="100px" >
</Gallery>
<ImageView
android:id="@+id/image1"
android:layout_width="320px"
android:layout_height="250px"
android:scaleType="fitXY" />
</LinearLayout>
7. Layout Hewan
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/backroundhewan"
android:orientation="vertical" >
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</FrameLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ffffffff"
android:text="@string/hewan"
android:textColor="#ffff00ff" >
</TextView>
<Gallery
android:id="@+id/gallery1"
android:layout_width="fill_parent"
android:layout_height="100px" >
</Gallery>
<ImageView
android:id="@+id/image1"
android:layout_width="320px"
android:layout_height="250px"
android:scaleType="fitXY" />
</LinearLayout>
8. Layout Kendaraan
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/transportationbackground"
android:orientation="vertical" >
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</FrameLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ffffffff"
android:text="@string/kendaraan"
android:textColor="#ffff00ff" >
</TextView>
<Gallery
android:id="@+id/gallery1"
android:layout_width="fill_parent"
android:layout_height="100px" >
</Gallery>
<ImageView
android:id="@+id/image1"
android:layout_width="320px"
android:layout_height="250px"
android:scaleType="fitXY" />
</LinearLayout>
9. Layout Sayur
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background_2"
android:orientation="vertical" >
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</FrameLayout>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ffffffff"
android:text="SAYURAN | VEGETABLES"
android:textColor="#ffff00ff" >
</TextView>
<Gallery
android:id="@+id/gallery1"
android:layout_width="fill_parent"
android:layout_height="100px" >
</Gallery>
<ImageView
android:id="@+id/image1"
android:layout_width="320px"
android:layout_height="250px"
android:scaleType="fitXY" />
</LinearLayout>

More Related Content

PDF
Quick tips for android
DOCX
Uts mb
DOCX
Fragmentwithouttag
DOCX
Practica 2
PDF
Penambahan menu atau tampilan
DOCX
Actividad 01
DOCX
Quick tips for android
Uts mb
Fragmentwithouttag
Practica 2
Penambahan menu atau tampilan
Actividad 01

What's hot (19)

DOCX
Actividad 01
PPTX
Portafolio mar
DOCX
Codificacion1
DOCX
DOCX
Portafolio 2do parcial
PDF
Lab 10 gride view
PPTX
Programa6
TXT
Activity accueil
TXT
Main.xml
PPTX
Portafolio2
PDF
Lab 9 list view
DOCX
Portafolio 2do parcial
DOCX
Client server part 8
DOCX
Part 4
DOCX
Practica 5
PPTX
Portafolio2
PPTX
Portafolio
Actividad 01
Portafolio mar
Codificacion1
Portafolio 2do parcial
Lab 10 gride view
Programa6
Activity accueil
Main.xml
Portafolio2
Lab 9 list view
Portafolio 2do parcial
Client server part 8
Part 4
Practica 5
Portafolio2
Portafolio
Ad

More from Melina Krisnawati (20)

PDF
makalah sistem operasi - android vd ios
PDF
Laporan praktikum i dan ii tentang mengenal perintah dasar linux ubuntu
PDF
menu strip - visual basic
DOCX
Tugas algoritma fibonacci
DOCX
Tugas algoritma faktorial
DOCX
Algoritma - Array
PPTX
Aplikasi sistem informasi pada fungsi fungsi organisasi
DOCX
Laporan Final Project - Aplikasi Sistem Informasi Rental CD - Netbeans
DOC
Java (Netbeans) - Abstract & Interface - Object Oriented Programming
DOCX
Java (Netbeans) Polymorphism - Object Oriented Programming (OOP)
PDF
Java (Netbeans) - Exception handling - Object Oriented Programming
DOCX
Java (Netbeans) - Looping - Object Oriented Programming
DOCX
Java (Netbeans) - Class, Constructor, Object (Object Oriented Programming)
DOCX
Laporan pembuatan Final Project (Java - Netbeans) "Rental CD"
DOC
Konsep & storyboard game multimedia (puzzle alphabet)
PPTX
Multimedia 2D (Game) - Puzzle alphabet
DOCX
Pemrograman Mobile - Try Catch
PDF
Laporan praktikum 4 Sistem Operasi - External Command (mem, xcopy, system, l...
PDF
Laporan praktikum 3 - Sistem Operasi Internal & External Command (Lanjutan)
PDF
Laporan praktikum 2 - Sistem Operasi - internal command - copy con, rename,...
makalah sistem operasi - android vd ios
Laporan praktikum i dan ii tentang mengenal perintah dasar linux ubuntu
menu strip - visual basic
Tugas algoritma fibonacci
Tugas algoritma faktorial
Algoritma - Array
Aplikasi sistem informasi pada fungsi fungsi organisasi
Laporan Final Project - Aplikasi Sistem Informasi Rental CD - Netbeans
Java (Netbeans) - Abstract & Interface - Object Oriented Programming
Java (Netbeans) Polymorphism - Object Oriented Programming (OOP)
Java (Netbeans) - Exception handling - Object Oriented Programming
Java (Netbeans) - Looping - Object Oriented Programming
Java (Netbeans) - Class, Constructor, Object (Object Oriented Programming)
Laporan pembuatan Final Project (Java - Netbeans) "Rental CD"
Konsep & storyboard game multimedia (puzzle alphabet)
Multimedia 2D (Game) - Puzzle alphabet
Pemrograman Mobile - Try Catch
Laporan praktikum 4 Sistem Operasi - External Command (mem, xcopy, system, l...
Laporan praktikum 3 - Sistem Operasi Internal & External Command (Lanjutan)
Laporan praktikum 2 - Sistem Operasi - internal command - copy con, rename,...
Ad

Kode program layout xml dan tampilan ui graphical (menggunakan eclipse)