Skip to content

Instantly share code, notes, and snippets.

@muhakmal
Created January 3, 2018 20:16
Show Gist options
  • Save muhakmal/e378417eea546348174ea82e20e1bfed to your computer and use it in GitHub Desktop.
Save muhakmal/e378417eea546348174ea82e20e1bfed to your computer and use it in GitHub Desktop.
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
android:id="@+id/toolbar_keranjang"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:elevation="2dp"
android:minHeight="?attr/actionBarSize"
android:theme="@style/ThemeOverlay.AppCompat.Dark"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:titleTextColor="@android:color/white" />
<ImageView
android:id="@+id/sad"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_alignTop="@+id/toolbar_keranjang"
android:layout_centerHorizontal="true"
android:layout_marginTop="150dp"
android:src="@drawable/ic_sad"
android:visibility="gone" />
<TextView
android:id="@+id/textView7"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/sad"
android:text="Kamu belum memiliki item keranjang"
android:textAlignment="center"
android:textColor="@color/greySubText" />
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view_cart"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/relativeLayout"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_below="@id/toolbar_keranjang" />
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="@dimen/tinggiButton"
android:layout_alignParentBottom="true"
android:background="@color/baseWhite"
android:gravity="center"
android:orientation="horizontal">
<Button
android:id="@+id/btn_bayar_keranjang"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimary"
android:text="bayar"
android:textColor="@color/baseWhite"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>
<RelativeLayout
android:id="@+id/relativeLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/linearLayout"
android:background="@color/baseWhite">
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/nliveo_divider" />
<TextView
android:id="@+id/totalestimasi"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginBottom="10dp"
android:layout_marginLeft="15dp"
android:layout_marginStart="15dp"
android:layout_marginTop="10dp"
android:gravity="center_vertical"
android:text="Total Estimasi :"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_total_estimasi_item_keranjang"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/totalestimasi"
android:layout_alignBottom="@+id/totalestimasi"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginEnd="21dp"
android:layout_marginRight="21dp"
android:text="Rp 120.000,-" />
</RelativeLayout>
<ProgressBar
android:id="@+id/progressBarItemKeranjang"
style="?android:attr/progressBarStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/progress_bar_center_margin"
android:elevation="5dp"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolbar_keranjang" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment