2. Kode Program Tampilan Antarmuka Interface
1. dashboard_layout.xml
com.friska.makanan.DashboardSetting xmlns:android=http:schemas.android.comapkresandroid
android:layout_width=fill_parent android:layout_height=fill_parent
android:layout_weight=1 android:background=drawablethema
Button android:id=+idbtn_kue
style=styleDashboardButton android:layout_width=match_parent
android:drawableTop=drawablebtn_kue android:text=stringlabel_kue
Button android:id=+idbtn_sayur
style=styleDashboardButton android:drawableTop=drawablebtn_sayur
android:text=stringlabel_sayur
Button android:id=+idbtn_daging
style=styleDashboardButton android:drawableTop=drawablebtn_daging
android:text=stringlabel_daging Button
android:id=+idbtn_ikan style=styleDashboardButton
android:drawableTop=drawablebtn_ikan android:text=stringlabel_ikan
com.friska.makanan.DashboardSetting
2. detail_objek_layout.xml
?xml version=1.0 encoding=utf-8? LinearLayout
xmlns:android=http:schemas.android.comapkresandroid android:layout_width=match_parent
android:layout_height=match_parent android:background=FF69B4
android:orientation=vertical android:layout_gravity=center
android:layout_marginBottom=10dp android:layout_marginLeft=7dp
android:layout_marginRight=7dp android:layout_marginTop=5dp
Universitas Sumatera Utara
ScrollView android:layout_width=fill_parent
android:layout_height=0dp android:layout_weight=0.05
LinearLayout android:layout_width=fill_parent
android:layout_height=wrap_content android:orientation=vertical
TextView android:id=+idtitle
android:layout_width=match_parent android:layout_height=wrap_content
android:layout_weight=1.79 android:gravity=center
android:textColor=000000 android:textSize=18sp
android:typeface=sans android:textStyle=bold
ImageView android:id=+idicon
android:layout_width=match_parent android:layout_height=match_parent
android:layout_weight=8.45 TextView
android:id=+idket android:layout_width=fill_parent
android:layout_height=wrap_content android:gravity=left|fill_horizontal
android:textColor=000000 android:textSize=16sp
LinearLayout ScrollView
LinearLayout
3. header_layout.xml
LinearLayout xmlns:android=http:schemas.android.comapkresandroid
style=styleHeaderStyle TextView
android:layout_width=match_parent android:layout_height=wrap_content
android:layout_gravity=center_vertical android:gravity=center
android:text= RESEP MASAKAN android:textColor=FF7F50
android:textSize=24dip android:textStyle=bold
android:background=drawablebutton1 LinearLayout
Universitas Sumatera Utara
4. list_adapter.xml
?xml version=1.0 encoding=utf-8? LinearLayout
xmlns:android=http:schemas.android.comapkresandroid android:layout_width=fill_parent
android:layout_height=wrap_content android:orientation=horizontal
LinearLayout xmlns:android=http:schemas.android.comapkresandroid
android:layout_width=fill_parent android:layout_height=wrap_content
android:layout_margin=10dp android:orientation=vertical
TextView android:id=+idtitle
android:layout_width=fill_parent android:layout_height=wrap_content
android:textColor=333333 android:textSize=16sp
android:textStyle=bold android:text=Contact Name
LinearLayout LinearLayout
5. listview_layout.xml