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"
- tools:context="app.tokoonline.Detail">
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="50dp">
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <android.support.v7.widget.CardView
- android:visibility="visible"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="10dp">
- <com.daimajia.slider.library.SliderLayout
- android:id="@+id/slider"
- android:layout_width="match_parent"
- android:layout_height="250dp"/>
- <com.daimajia.slider.library.Indicators.PagerIndicator
- android:id="@+id/custom_indicator"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="center"/>
- </android.support.v7.widget.CardView>
- <android.support.v7.widget.CardView
- android:visibility="visible"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_marginBottom="10dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:padding="10dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Nama Barang"
- android:textStyle="bold"
- android:textSize="16sp"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Kategori"/>
- <View
- android:layout_width="match_parent"
- android:layout_height="1px"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="10dp"
- android:background="@color/colorGrey"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:text="Rp 20.000"/>
- <View
- android:layout_width="match_parent"
- android:layout_height="1px"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="10dp"
- android:background="@color/colorGrey"/>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="5dp"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="10/09/2017"
- android:textSize="10sp"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="129 Dilihat"
- android:textSize="10sp"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="3 Komentar"
- android:textSize="10sp"/>
- </LinearLayout>
- </LinearLayout>
- </android.support.v7.widget.CardView>
- <android.support.v7.widget.CardView
- android:visibility="visible"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_marginBottom="10dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:padding="10dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Deskripsi"
- android:textStyle="bold"
- android:textSize="16sp"/>
- <View
- android:layout_width="match_parent"
- android:layout_height="1px"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="10dp"
- android:background="@color/colorGrey"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source."/>
- </LinearLayout>
- </android.support.v7.widget.CardView>
- <android.support.v7.widget.CardView
- android:visibility="visible"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="10dp"
- android:layout_marginRight="10dp"
- android:layout_marginBottom="10dp">
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="10dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Produk lain dari Penjual"
- android:textStyle="bold"
- android:textSize="16sp"/>
- <View
- android:layout_width="match_parent"
- android:layout_height="1px"
- android:layout_marginTop="10dp"
- android:layout_marginBottom="10dp"
- android:background="@color/colorGrey"/>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="10dp">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:adjustViewBounds="true"
- android:src="@drawable/product1"
- android:layout_margin="5dp"/>
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:adjustViewBounds="true"
- android:src="@drawable/product2"
- android:layout_margin="5dp"/>
- </LinearLayout>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="lihat semuanya"
- android:textColor="@color/colorPrimary"
- android:gravity="end"/>
- </LinearLayout>
- </android.support.v7.widget.CardView>
- </LinearLayout>
- </ScrollView>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentBottom="true"
- android:background="@color/colorWhite"
- android:gravity="center">
- <TextView
- android:id="@+id/txtBuy"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="BELI SEKARANG"
- android:textStyle="bold"
- android:textSize="16sp"
- android:gravity="center"/>
- </RelativeLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement