• Tidak ada hasil yang ditemukan

Perancangan Aplikasi Pengenalan 16 Tenses Bahasa Inggris Berbasis Android

N/A
N/A
Protected

Academic year: 2017

Membagikan "Perancangan Aplikasi Pengenalan 16 Tenses Bahasa Inggris Berbasis Android"

Copied!
27
0
0

Teks penuh

(1)

1

Lampiran Listing Program

splash_screen.xml

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

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"

android:layout_height="match_parent"

android:background="@color/colorPrimaryDark" >

<ImageView

android:src="@drawable/awal"

android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerVertical="true"

android:foregroundGravity="center_vertical" android:layout_centerHorizontal="true" />

<ProgressBar

android:id="@+id/progressBar1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:layout_marginBottom="50dp" />

</RelativeLayout>

home.xml

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

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"

android:layout_height="match_parent">

<LinearLayout

android:orientation="vertical" android:gravity="center"

android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/bc" android:weightSum="1"

android:layout_alignParentBottom="true" android:layout_centerHorizontal="true">

<ImageButton

android:id="@+id/imageButton2" android:layout_width="222dp" android:layout_height="50dp" android:layout_marginTop="10dp" android:background="#67aadd" android:src="@drawable/btn_klik3" android:onClick="menu1" />

<ImageButton

(2)

android:layout_marginTop="10dp" android:background="#67aadd" android:onClick="menu2"

android:src="@drawable/btn_klik2" />

<ImageButton

android:layout_marginTop="10dp" android:onClick="menu3"

android:background="#67aadd" android:layout_width="222dp" android:layout_height="40dp"

android:src="@drawable/btn_klik4" />

<ImageButton

android:layout_marginTop="10dp" android:onClick="menu4"

android:layout_width="222dp" android:background="#67aadd" android:layout_height="40dp"

android:src="@drawable/btn_klik" />

</LinearLayout> </RelativeLayout>

Materi.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"

android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="5">

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" >

<Button

android:onClick="satu"

android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/satu" />

<Button

android:onClick="dua"

android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/dua" />

(3)

android:onClick="tiga"

android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/tiga" />

<Button

android:onClick="empat"

android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/empat" />

<Button

android:onClick="lima"

android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/lima" />

<Button

android:onClick="enam"

android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/enam" />

<Button

android:onClick="tujuh"

android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/tujuh" />

<Button

android:onClick="lapan"

android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/lapan" />

<Button

android:onClick="sembilan" android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/sembilan" />

<Button

android:onClick="sepuluh"

android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/ten" />

<Button

android:onClick="sebelas"

android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

(4)

<Button

android:onClick="duabelas" android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/duabelas" />

<Button

android:onClick="tigabelas" android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/tigabelas" />

<Button

android:onClick="empatbelas" android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/empatbelas" />

<Button

android:onClick="limabelas" android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/limabelas" />

<Button

android:onClick="enambelas" android:layout_marginTop="10dp" android:layout_width="match_parent" android:layout_height="50dp"

android:background="@drawable/enambelas" /> </LinearLayout>

</ScrollView> </LinearLayout>

Pengertian.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

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

(5)

android:id="@+id/textView1"

android:layout_width="match_parent" android:layout_height="match_parent" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=" " />

<TextView

android:id="@+id/textView2"

android:layout_width="match_parent" android:layout_height="match_parent" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=""/>

<TextView

android:id="@+id/textView3"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text="" />

<TextView

android:id="@+id/textView4"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:layout_marginTop="5dp" android:text=""

/>

<TextView

android:id="@+id/textView5"

(6)

android:layout_marginRight="10dp" android:background="#fff"

android:text="" />

<TextView

android:id="@+id/textView6" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:textColor="#000000"

android:textSize="15sp" android:background="#fff"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:text=""

/>

</LinearLayout> </ScrollView>

</LinearLayout>

kuis.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"

android:layout_height="match_parent" android:orientation="vertical">

<RelativeLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:padding="8dp">

<TextView

android:id="@+id/score_text"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:text="Score"

android:textSize="20sp" />

<TextView

android:id="@+id/score"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:text="0"

android:textSize="20sp" />

</RelativeLayout>

<TextView

android:layout_width="match_parent" android:layout_height="70dp"

android:text="Which thing is alive?" android:textSize="20sp"

android:padding="8dp"

(7)

<Button

android:layout_width="match_parent" android:layout_height="wrap_content" android:text="bird"

android:background="#0091EA" android:textColor="#fff" android:padding="8dp"

android:layout_marginBottom="24dp" android:id="@+id/choice1"/>

<Button

android:layout_width="match_parent" android:layout_height="wrap_content" android:text="door"

android:background="#0091EA" android:textColor="#fff" android:padding="8dp"

android:layout_marginBottom="24dp" android:id="@+id/choice2"/>

<Button

android:layout_width="match_parent" android:layout_height="wrap_content" android:text="rock"

android:background="#0091EA" android:textColor="#fff" android:padding="8dp"

android:layout_marginBottom="24dp" android:id="@+id/choice3"/>

<Button

android:layout_width="match_parent" android:layout_height="wrap_content" android:onClick="quit"

android:textColor="#fff" android:padding="8dp"

android:layout_marginBottom="24dp" android:id="@+id/quit"

android:background="@drawable/menu1" />/>

</LinearLayout>

tentang.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/bg">

<ScrollView

android:id="@+id/scroll"

(8)

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" >

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:textStyle="bold"

android:layout_marginTop="10dp" android:layout_marginBottom="5dp" android:layout_marginLeft="15dp" android:layout_marginRight="15dp" android:layout_gravity="center" android:background="#fff"

android:textColor="#000000" android:textSize="20sp" android:gravity="center" android:text=""

/>

<TextView

android:textColor="#000000" android:textSize="15sp"

android:layout_marginBottom="5dp" android:layout_marginLeft="15dp" android:layout_marginRight="15dp" android:background="#fff"

android:textAlignment="center" android:id="@+id/textView2" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="46dp"

android:text= "Oleh:\nKesita Marintan\n\n\n"/>

<TextView

android:textColor="#000000" android:textSize="15sp"

android:layout_marginBottom="5dp" android:layout_marginLeft="15dp" android:layout_marginRight="15dp" android:background="#fff"

android:id="@+id/textView3"

android:layout_width="wrap_content" android:layout_height="wrap_content"

android:text= " Aplikasi ini bertujuan untuk menambah wawasan para pengguna."/>

<TextView

android:id="@+id/textView4"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:textStyle="bold"

(9)

android:textColor="#000000" android:textSize="20sp" android:gravity="center" android:text=" "

/>

<TextView

android:textColor="#000000" android:textSize="15sp"

android:layout_marginBottom="5dp" android:layout_marginLeft="15dp" android:layout_marginRight="15dp" android:background="#fff"

android:layout_gravity="center" android:textAlignment="center" android:id="@+id/textView5"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:text= “"/>

<TextView

android:id="@+id/textView6"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:textStyle="bold"

android:layout_gravity="center" android:background="#fff"

android:textColor="#000000" android:textSize="20sp" android:gravity="center" android:text="Terima Kasih " />

<TextView

android:textColor="#000000" android:textSize="15sp"

android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:layout_gravity="center" android:textAlignment="center" android:id="@+id/textView7"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:text= “"/>

<TextView

android:id="@+id/textView8"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="15dp" android:layout_marginTop="10dp" android:layout_marginLeft="10dp" android:textStyle="bold"

(10)

android:textColor="#000000" android:textSize="20sp" android:gravity="center" android:text=""

/> </LinearLayout> </ScrollView>

</LinearLayout>

Simplepresent.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp"

android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" >

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=""/>

<TextView

android:textSize="15sp"

android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:id="@+id/textView2" android:textColor="#000000"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:text=""/>

<TextView

android:textColor="#000000" android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginBottom="5dp" android:background="#fff"

(11)

android:layout_width="wrap_content" android:layout_height="wrap_content" android:text=""/>

<TextView

android:textSize="15sp"

android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:id="@+id/textView2" android:textColor="#000000"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="” />

</LinearLayout> </ScrollView>

</LinearLayout>

simplepast.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="5">

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">

<TextView

android:id="@+id/textView1"

android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=""/>

<TextView

android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:id="@+id/textView2"

(12)

android:background="#fff" android:text=""/>

</LinearLayout> </ScrollView>

</LinearLayout>

Simplefuture.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" >

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:textColor="#000000" android:textSize="15sp" android:text=""

/>

<TextView

android:textColor="#000000" android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginBottom="5dp" android:background="#fff"

android:id="@+id/textView2"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:text= "" />

</LinearLayout> </ScrollView>

</LinearLayout>

presentperfectcontinuous.xml

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

(13)

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" >

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content" android:textColor="#000000"

android:textSize="15sp"

android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=""/> <TextView

android:id="@+id/textView2"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:textColor="#000000" android:textSize="15sp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text="" /> </LinearLayout>

</ScrollView> </LinearLayout>

presentperfect.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

(14)

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" >

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=""/>

<TextView

android:id="@+id/textView2"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=”"/> </LinearLayout>

</ScrollView> </LinearLayout>

Presentperfectcontinuous.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:textColor="#000000"

android:textSize="15sp"

(15)

android:background="#fff" android:text="”/>

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=" "/> </LinearLayout>

</ScrollView> </LinearLayout>

Pastperfect.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=""/>

<TextView

android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:id="@+id/textView2"

(16)

android:text="" /> </LinearLayout>

</ScrollView> </LinearLayout>

Pastfutureperfectcontinuous.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=""/>

<TextView

android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:id="@+id/textView2"

android:layout_marginBottom="5dp" android:background="#fff"

android:text=" " /> </LinearLayout>

</ScrollView> </LinearLayout>

Pastfutureperfect.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

(17)

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp"

android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" >

<TextView

android:id="@+id/textView1"

android:layout_width="match_parent" android:layout_height="450dp"

android:textColor="#000000" android:textSize="15sp"

android:layout_marginBottom="5dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=""/> </LinearLayout>

</ScrollView> </LinearLayout>

Pastfuturecontinuous.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"

android:weightSum="1">

<TextView

android:id="@+id/textView1"

android:layout_width="match_parent" android:layout_height="450dp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="5dp" android:layout_weight="12.70" android:background="#fff" android:text=" "

(18)

</LinearLayout> </ScrollView>

</LinearLayout>

Pastfuture.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">

<TextView

android:id="@+id/textView1" android:background="#fff"

android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:textColor="#000000" android:textSize="15sp"

android:layout_marginRight="10dp" android:layout_marginTop="5dp" android:text="" />

</LinearLayout> </ScrollView>

</LinearLayout>

Pastcontinuous.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

(19)

<TextView

android:id="@+id/textView1" android:background="#fff"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:textColor="#000000" android:textSize="15sp"

android:layout_marginRight="10dp" android:layout_marginTop="5dp" android:text=""/>

<TextView

android:id="@+id/textView2" android:background="#fff"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:textColor="#000000" android:textSize="15sp"

android:layout_marginRight="10dp" android:layout_marginTop="5dp" android:text="" />

</LinearLayout> </ScrollView>

</LinearLayout>

Futureperfectcontinuous.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">

<TextView

android:id="@+id/textView1" android:background="#fff"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:textColor="#000000" android:textSize="15sp"

(20)

<TextView

android:id="@+id/textView2" android:background="#fff"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:textColor="#000000" android:textSize="15sp"

android:layout_marginRight="10dp" android:layout_marginTop="5dp" android:text= "" />

</LinearLayout> </ScrollView>

</LinearLayout>

Futureperfect.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"

android:weightSum="1">

<TextView

android:id="@+id/textView1" android:background="#fff"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:textColor="#000000" android:textSize="15sp"

android:layout_marginRight="10dp" android:layout_marginTop="5dp" android:text=""/>

<TextView

android:id="@+id/textView1" android:background="#fff"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:textColor="#000000" android:textSize="15sp"

android:layout_marginRight="10dp" android:layout_marginTop="5dp" android:text="" />

(21)

</ScrollView> </LinearLayout>

Futurecontinuous.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" >

<TextView

android:id="@+id/textView1" android:background="#fff"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:textColor="#000000" android:textSize="15sp"

android:layout_marginRight="10dp" android:layout_marginTop="5dp" android:text=""/>

<TextView

android:id="@+id/textView2" android:background="#fff"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:textColor="#000000" android:textSize="15sp"

android:layout_marginRight="10dp" android:layout_marginTop="5dp" android:text= ""/>

</LinearLayout> </ScrollView>

</LinearLayout>

kuis.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

(22)

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" >

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=" " />

<TextView

android:id="@+id/textView2"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=" " /> </LinearLayout>

</ScrollView> </LinearLayout>

Presentcontinuous.xml

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

android:layout_width="match_parent" android:layout_height="match_parent" android:background="#008fd7">

<ScrollView

android:id="@+id/scroll"

android:layout_width="match_parent" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:layout_height="match_parent" android:layout_weight="5" >

<LinearLayout

android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" >

(23)

android:id="@+id/textView1"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=" " />

<TextView

android:id="@+id/textView2"

android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:textColor="#000000"

android:textSize="15sp"

android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#fff"

android:text=" " /> </LinearLayout>

</ScrollView> </LinearLayout>

Menu.java

package com.kesita.key.tesnsesinggris;

import android.content.Intent;

import android.support.v7.app.AppCompatActivity; import android.os.Bundle;

import android.view.View;

public class menu extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

setContentView(R.layout.activity_menu); }

public void menu1(View view) {

Intent intent = new Intent(menu.this, pengertian.class); startActivity(intent);

}

public void menu2(View view) {

Intent intent = new Intent(menu.this, materi.class); startActivity(intent);

}

public void menu3(View view) {

Intent intent = new Intent(menu.this, soal1.class); startActivity(intent);

}

public void menu4(View view) {

(24)

} }

Materi.java

package com.kesita.key.tesnsesinggris;

import android.content.Intent;

import android.support.v7.app.AppCompatActivity; import android.os.Bundle;

import android.view.View;

public class materi extends AppCompatActivity {

@Override

protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

setContentView(R.layout.activity_materi);

getSupportActionBar().setTitle("Materi Tenses"); }

public void satu (View view){

Intent intent = new Intent(materi.this,simplepresent.class); startActivity(intent);

}

public void dua (View view){

Intent intent = new Intent(materi.this,presentcontinuous.class); startActivity(intent);

}

public void tiga (View view){

Intent intent = new Intent(materi.this,presentperfect.class); startActivity(intent);

}

public void empat (View view){ Intent intent = new

Intent(materi.this,presentperfectcontinuous.class); startActivity(intent);

}

public void lima (View view){

Intent intent = new Intent(materi.this,simplepast.class); startActivity(intent);

}

public void enam (View view){

Intent intent = new Intent(materi.this,pastcontinuous.class); startActivity(intent);

}

public void tujuh (View view){

Intent intent = new Intent(materi.this,pastperfect.class); startActivity(intent);

}

public void lapan (View view){ Intent intent = new

Intent(materi.this,pastperfectcontinuous.class); startActivity(intent);

}

public void sembilan (View view){

Intent intent = new Intent(materi.this,simplefuture.class); startActivity(intent);

}

public void sepuluh (View view){

Intent intent = new Intent(materi.this,futurecontinuous.class); startActivity(intent);

(25)

public void sebelas (View view){

Intent intent = new Intent(materi.this,futureperfect.class); startActivity(intent);

}

public void duabelas (View view){ Intent intent = new

Intent(materi.this,futureperfectcontinuous.class); startActivity(intent);

}

public void tigabelas (View view){

Intent intent = new Intent(materi.this,pastfuture.class); startActivity(intent);

}

public void empatbelas (View view){

Intent intent = new Intent(materi.this,pastfuturecontinuous.class); startActivity(intent);

}

public void limabelas (View view){

Intent intent = new Intent(materi.this,pastfutureperfect.class); startActivity(intent);

}

public void enambelas (View view){ Intent intent = new

Intent(materi.this,pastfutureperfectcontinuous.class); startActivity(intent);

}

}

Splashscreen.java

package com.kesita.key.tesnsesinggris;

import android.content.Intent; import android.os.Handler;

import android.support.v7.app.AppCompatActivity; import android.os.Bundle;

import android.view.Menu; import android.view.Window;

import android.view.WindowManager;

import static com.kesita.key.tesnsesinggris.R.*;

public class splash_screen extends AppCompatActivity {

//Set waktu lama splashscreen

private static int splashInterval = 1000;

@Override

protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

requestWindowFeature(Window.FEATURE_NO_TITLE);

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

setContentView(R.layout.activity_splash_screen);

new Handler().postDelayed(new Runnable() {

(26)

public void run() {

// TODO Auto-generated method stub

Intent i = new Intent(splash_screen.this, menu.class); startActivity(i);

//jeda selesai Splashscreen this.finish();

}

private void finish() {

// TODO Auto-generated method stub

}

}, splashInterval);

} }

kuis.java

package com.kesita.key.tesnsesinggris;

import android.content.DialogInterface; import android.content.Intent;

import android.os.Bundle;

import android.support.v7.app.AlertDialog;

import android.support.v7.app.AppCompatActivity; import android.view.View;

import android.widget.RadioButton; import android.widget.RadioGroup; import android.widget.TextView; import android.widget.Toast;

import static com.kesita.key.tesnsesinggris.R.id.radioButton;

/*

Fathurrahman (okedroid.com) */

public class soal1 extends AppCompatActivity {

AlertDialog.Builder builder; RadioGroup radiogroup;

//deklarasi var or obj

@Override

protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

setContentView(R.layout.activity_soal1);

getSupportActionBar().setTitle("Soal Latihan");

//radiogroup inisialisasi

radiogroup = (RadioGroup) findViewById(R.id.radioGroup);

}

(27)

public void onRadioButton(View view) {

Boolean checked = ((RadioButton) view).isChecked();

switch (view.getId()) {

case radioButton: if (checked)

jawabanBenar(); break;

case R.id.radioButton2: if (checked)

jawabanSalah(); break;

case R.id.radioButton3: if (checked)

jawabanSalah(); break;

case R.id.radioButton4: if (checked)

jawabanSalah(); break;

}

}

//menampilkan toast text jawaban salah public void jawabanSalah() {

Toast.makeText(this, "Wrong", Toast.LENGTH_SHORT).show();

}

public void jawabanBenar() {

Toast.makeText(this, "Correct", Toast.LENGTH_SHORT).show();

}

public void soal1 (View view){

Intent intent = new Intent(soal1.this,soal2.class); startActivity(intent);

}

Referensi

Dokumen terkait

[r]

Aplikasi pembelajaran kaidah bahasa jawa berbasis android mobile telah selesai dibangun dengan menggunakan eclipse bundle ADT yang bertujuan untuk menumbuhkan minat

 Permainan ini mengkhususkan kepada anak-anak, namun banyak pelajar di jenjang yang lebih tinggi ternyata juga masih mengalami kesulitan ketika mempelajari materi tenses,

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

Berdasarkan hasil pembahasan mengenai rancang bangun aplikasi media pembelajaran Bahasa Inggris pronoun, tobe, dan tenses berbasis android, maka dapat disimpulkan

Dengan teknologi yang berkembang oleh jumlah orang yang menggunakan smartphone berbasis Android, dengan desain aplikasi tenses inggris ini belajar dilakukan, dengan tujuan

Pemakaian Aplikasi mobile pembelajaran dalam proses mengajar juga membangkitkan motivasi belajar dan membawa pengaruh psikologi terhadap anak didik, dengan adanya aplikasi

Gambar 6 User Interface halaman menu video Hasil Hasil yang diperoleh dari pengembangan Aplikasi Media Pembelajaran bahasa Inggris Tenses Berbasis Android Pada SMA Muhammadiyah 1