hashMapBiodata.puttanggung_jawab, cursor.getString6;
hashMapBiodata.putkreatif, cursor.getString7; hashMapBiodata.putaktif, cursor.getString8;
hashMapBiodata.putdisiplin, cursor.getString9;
hashMapBiodata.puttahun, cursor.getString10; } while cursor.moveToNext;
} return hashMapBiodata;
} public ArrayListString getTahun {
SQLiteDatabase database = this.getReadableDatabase; ArrayListString arrayListTahun = new ArrayListString;
Cursor cursor = database.rawQuery SELECT DISTINCTtahun FROM tabel_biodata, null;
if cursor.moveToFirst { do {
arrayListTahun.addcursor.getString0; } while cursor.moveToNext;
} return arrayListTahun;
} }
6. Session.java
package com.nanda; publicclass Session {
static String tahun = 2015; publicstatic String getTahun {
returntahun; }
publicstaticvoid setTahunString tahun { Session.tahun = tahun;
} }
7. About.java
package com.nanda; import android.app.Activity;
import android.os.Bundle;
public class About extends Activity { Override
protected void onCreateBundle savedInstanceState { super.onCreatesavedInstanceState;
setContentViewR.layout.about; }
}
8. activity_main.xml
LinearLayout xmlns:android=http:schemas.android.comapkresandroid xmlns:tools=http:schemas.android.comtools
android:id=+idLinearLayout1 android:layout_width=match_parent
android:layout_height=match_parent android:orientation=vertical
android:background=drawablelatar_duaa android:paddingBottom=dimenactivity_vertical_margin
android:paddingLeft=dimenactivity_horizontal_margin android:paddingRight=dimenactivity_horizontal_margin
android:paddingTop=dimenactivity_vertical_margin tools:context=com.nanda.MainActivity
TableRow android:id=+idtableRow1
android:layout_width=match_parent android:layout_height=wrap_content
android:layout_marginBottom=108dp android:gravity=center
TableRow Button
android:id=+idbuttonDaftarCalon android:layout_width=match_parent
android:layout_height=wrap_content android:text=stringdaftar_calon
Button android:id=+idbuttonWSMdanSAW
android:layout_width=match_parent android:layout_height=wrap_content
android:text=stringwsm_saw
Button android:id=+idbuttonAbout
android:layout_width=match_parent android:layout_height=wrap_content
android:text=stringabout
LinearLayout
9. biodata.xml
LinearLayout xmlns:android=http:schemas.android.comapkresandroid xmlns:tools=http:schemas.android.comtools
android:id=+idLinearLayout1 android:layout_width=match_parent
android:layout_height=match_parent android:layout_gravity=center
android:background=drawablelatar_dua android:orientation=vertical
tools:context=.data
Button android:id=+idbuttonTambahBiodata
android:layout_width=186dp android:layout_height=wrap_content
android:layout_gravity=center
android:text=Tambah Calon HorizontalScrollView
android:id=+idhorizontalScrollView android:layout_width=match_parent
android:layout_height=wrap_content
ScrollView android:id=+idverticalScrollView
android:layout_width=wrap_content android:layout_height=match_parent
TableLayout android:id=+idtableBiodata
android:layout_width=match_parent android:layout_height=wrap_content
TableLayout ScrollView
HorizontalScrollView
LinearLayout
10. hasil_saw_wsm.xml