LISTING PROGRAM
Aturan_permainan.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="@drawable/bg" android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:background="@drawable/header_title" android:gravity="center"
android:text="Aturan Permainan"
android:textAppearance="?android:attr/textAppearanceLarge" />
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent" android:layout_height="match_parent" android:cursorVisible="false"
android:editable="false" android:gravity="left|top"
android:inputType="textMultiLine" android:text="
1. Memilih Level sesuai Keinginan\n 2. Jumlah soal sebanyak 10\n
3. Diberi 3 kali kesempatan untuk kesalahan\n 4. Soal ditampilkan satu per satu\n
5. Skor mudah dikali 1\n Skor menengah dikali 2\n Skor Sulit dikali 3" >
<requestFocus /> </EditText>
</LinearLayout>
Button_shape_click.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<corners
android:radius="2dp" />
<solid
android:color="#4f68d5" />
android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" />
<stroke
android:width="1dp" android:color="#000" />
</shape>
Button_shape.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<corners
android:radius="2dp" />
<solid
android:color="#FFFFFF" />
<padding
android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" />
<stroke
android:width="1dp" android:color="#787878" />
</shape>
Game.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="@drawable/bg" android:orientation="vertical" >
<TableLayout
android:layout_width="match_parent" android:layout_height="wrap_content"
android:background="@drawable/header_title" android:padding="5dp"
android:stretchColumns="1,3,5" >
<TableRow
android:id="@+id/tableRow2"
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Soal : " />
<TextView
android:id="@+id/textViewNoSoal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="1" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Nyawa : " />
<TextView
android:id="@+id/textViewNyawa" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="3" />
<TextView
android:id="@+id/tewxtVeiew1"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Level : " />
<TextView
android:id="@+id/textViewLevel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Mudah" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Skor : "/>
<TextView
android:id="@+id/textViewSkor" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="0" />
</TableRow> </TableLayout>
<TextView
android:id="@+id/textViewSoal" android:layout_width="match_parent" android:layout_height="wrap_content"
android:background="@layout/textview_shape" android:gravity="center"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TableLayout
android:id="@+id/tabelLayoutJawaban" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" >
</TableLayout>
<Space
android:layout_width="match_parent" android:layout_height="0dp"
android:layout_weight="1" />
<TableLayout
android:id="@+id/tabelKeyboard" android:layout_width="match_parent" android:layout_height="wrap_content"
android:background="@layout/textview_shape" android:baselineAligned="true" >
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content" android:layout_height="wrap_content" > </TableRow>
</TableLayout>
</LinearLayout>
Menu_utama.xml
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/bg" android:orientation="vertical"
tools:context="com.edukasi.MenuUtama" >
<Button
android:id="@+id/buttonAturanPermainan" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="15dp"
android:background="@drawable/button" android:text="Aturan Permainan"
android:textColor="#fff" />
<Button
android:background="@drawable/button" android:text="Mulai Main"
android:textColor="#fff" />
<Button
android:id="@+id/buttonTentang" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/button" android:text="Tentang"
android:textColor="#fff" />
<Button
android:id="@+id/buttonSkor"
android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="15dp"
android:background="@drawable/button" android:text="Skor"
android:textColor="#fff" />
</LinearLayout>
Pilih_level.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="@drawable/bg" android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:background="@drawable/header_title" android:gravity="center"
android:text="Level"
android:textAppearance="?android:attr/textAppearanceLarge" />
<RadioGroup
android:id="@+id/radioGroup1"
android:layout_width="wrap_content" android:layout_height="wrap_content" >
<RadioButton
android:id="@+id/radioMudah"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:checked="true"
android:text="Mudah" />
<RadioButton
android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Menengah" />
<RadioButton
android:id="@+id/radioSulit"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Sulit" />
</RadioGroup>
<Button
android:id="@+id/buttonMulai"
android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/button" android:text="Mulai"
android:textColor="#fff" />
</LinearLayout>
Skor.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" >
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:background="@drawable/header_title" android:gravity="center"
android:text="Skor"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TableLayout
android:id="@+id/tabelLayoutSkor" android:layout_width="match_parent" android:layout_height="wrap_content" >
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content" android:layout_height="wrap_content" > </TableRow>
<TableRow
android:id="@+id/tableRow2"
<TableRow
android:id="@+id/tableRow3"
android:layout_width="wrap_content" android:layout_height="wrap_content" > </TableRow>
<TableRow
android:id="@+id/tableRow4"
android:layout_width="wrap_content" android:layout_height="wrap_content" > </TableRow>
</TableLayout>
</LinearLayout>
Tentang.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="@drawable/bg" android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:background="@drawable/header_title" android:gravity="center"
android:text="Tentang Permainan"
android:textAppearance="?android:attr/textAppearanceLarge" />
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent" android:layout_height="wrap_content" >
<LinearLayout
android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" >
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="5dp"
android:cursorVisible="false" android:editable="false" android:ems="10"
android:gravity="left|top"
android:inputType="textMultiLine"
Menggunakan level sesuai kemampuan yang kita pilih, terdapat level Mudah, menengah, dan Sulit. Setiap pemain berhak mendapatkan tiga kali kesempatan menjawab ketika jawaban tersebut salah. Pemain akan merasa terhibur dan tertantang saat menjawab soal karena soal-soal yang akan membuat pemain penasaran. Jika Pemain menjawab dengar benar, pemain mendapatkan skor sesuai level yang dipilih. Skor level mudah dikalikan satu, level menengah dikalikan dua, sedangkan level sulit dikalikan tiga. Selamat Bermain, Good People." >
<requestFocus /> </EditText>
</LinearLayout> </ScrollView>
</LinearLayout>
Textview_shape.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<corners
android:radius="2dp" />
<solid
android:color="#dfe5e7" />
<padding
android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" />
<stroke
android:width="1dp" android:color="#000" />
</shape>
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> <manifest
xmlns:android="http://schemas.android.com/apk/res/android" package="com.edukasi"
android:versionCode="1" android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="22" />
<application
android:hardwareAccelerated="false" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity
android:name=".MenuUtama"
android:label="@string/app_name" > <intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" /> </intent-filter>
</activity>
<activity android:name="AturanPermainan" > </activity>
<activity android:name="Game" > </activity>
<activity android:name="PilihLevel" > </activity>
<activity android:name="Tentang" > </activity>
<activity android:name="Skor" > </activity>
</application>