Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.73 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto">
  6.     <android.support.v7.widget.CardView
  7.        android:layout_width="match_parent"
  8.        android:layout_height="wrap_content"
  9.        app:cardUseCompatPadding="true"
  10.        app:cardElevation="10dp">
  11.         <LinearLayout
  12.            android:layout_width="match_parent"
  13.            android:layout_height="wrap_content"
  14.            android:orientation="vertical"
  15.            android:gravity="center"
  16.            android:padding="10dp">
  17.            
  18.             <ImageView
  19.                android:id="@+id/product_phote_iv"
  20.                android:layout_width="match_parent"
  21.                android:layout_height="100dp"
  22.                android:scaleType="centerCrop"
  23.                android:src="@mipmap/ic_launcher"/>
  24.            
  25.             <TextView
  26.                android:id="@+id/product_name_tv"
  27.                android:layout_width="wrap_content"
  28.                android:layout_height="wrap_content"
  29.                android:textAppearance="@style/Base.TextAppearance.AppCompat.Large"
  30.                android:layout_marginTop="10dp"
  31.                android:text="Nama Product"/>
  32.  
  33.             <TextView
  34.                android:id="@+id/product_price_tv"
  35.                android:layout_width="wrap_content"
  36.                android:layout_height="wrap_content"
  37.                android:textAppearance="@style/Base.TextAppearance.AppCompat.Small"
  38.                android:text="Harga Product"/>
  39.         </LinearLayout>
  40.     </android.support.v7.widget.CardView>
  41. </FrameLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement