Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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"
- android:background="@drawable/background4"
- tools:context=".Detail">
- <ImageView
- android:id="@+id/iv_produk"
- android:layout_width="200dp"
- android:layout_height="200dp"
- android:layout_marginTop="30dp"
- android:layout_centerHorizontal="true"
- app:srcCompat="@drawable/icon"/>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/iv_produk"
- android:layout_marginTop="15dp"
- android:paddingLeft="10dp"
- android:paddingRight="10dp">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:id="@+id/layer1">
- <TextView
- android:id="@+id/labelNama"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="NAMA : "
- android:textStyle="bold"
- android:textSize="20dp"
- android:layout_marginBottom="10dp"/>
- <TextView
- android:id="@+id/Nama"
- android:textStyle="bold"
- android:textSize="20dp"
- android:layout_toRightOf="@+id/labelNama"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"/>
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:id="@+id/layer2"
- android:layout_below="@+id/layer1">
- <TextView
- android:id="@+id/labelStok"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="STOK : "
- android:textStyle="bold"
- android:textSize="20dp"
- android:layout_marginBottom="10dp"/>
- <TextView
- android:id="@+id/Stok"
- android:textStyle="bold"
- android:textSize="20dp"
- android:layout_toRightOf="@+id/labelStok"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"/>
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:id="@+id/layer3"
- android:layout_below="@+id/layer2">
- <TextView
- android:id="@+id/labelHarga"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="HARGA : "
- android:textStyle="bold"
- android:textSize="20dp"
- android:layout_marginBottom="10dp"/>
- <TextView
- android:id="@+id/Harga"
- android:textStyle="bold"
- android:textSize="20dp"
- android:layout_toRightOf="@+id/labelHarga"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginBottom="10dp"/>
- </RelativeLayout>
- </RelativeLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement