Skip to content

Instantly share code, notes, and snippets.

View muhakmal's full-sized avatar

Akmal Muhamad muhakmal

  • Jakarta, ID
View GitHub Profile
@muhakmal
muhakmal / activity_item_keranjang.xml
Created January 3, 2018 20:16
tambahtotalestimasi
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.baskom.masakini.activity.ItemKeranjangActivity">
<android.support.v7.widget.Toolbar
@muhakmal
muhakmal / MainActivity.java
Created December 23, 2017 13:49
navigasi drawer item
@Override
public boolean onNavigationItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.nav_beranda) {
viewPager.setCurrentItem(0);
} else if (id == R.id.nav_info_akun) {
Intent infoAkun = new Intent(MainActivity.this, InfoAkunActivity.class);
startActivity(infoAkun);
} else if (id == R.id.nav_riwayat_order) {