Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.29 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:tools="http://schemas.android.com/tools"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:padding="10dp"
  7.    tools:context=".ProductDetailActivity">
  8.  
  9.     <ImageView
  10.        android:background="@color/colorAccent"
  11.        android:id="@+id/iv_product_image"
  12.        android:layout_width="match_parent"
  13.        android:layout_height="200dp"
  14.        android:scaleType="centerCrop" />
  15.  
  16.     <de.hdodenhof.circleimageview.CircleImageView
  17.        android:scaleType="centerCrop"
  18.        android:layout_width="80dp"
  19.        android:id="@+id/cv_image"
  20.        android:layout_height="80dp"
  21.        android:layout_marginLeft="10dp"
  22.        android:layout_marginTop="150dp"
  23.        android:src="@mipmap/ic_launcher" />
  24.  
  25.     <TextView
  26.        android:id="@+id/tv_product_name"
  27.        android:layout_marginLeft="100dp"
  28.        android:layout_below="@id/iv_product_image"
  29.        android:text="Prodcut 1"
  30.        android:textStyle="bold"
  31.        android:textAppearance="@style/TextAppearance.AppCompat.Large"
  32.        android:layout_width="180dp"
  33.        android:layout_height="wrap_content" />
  34.  
  35.     <TextView
  36.        android:layout_alignParentRight="true"
  37.        android:id="@+id/tv_product_date"
  38.        android:layout_below="@id/iv_product_image"
  39.        android:text="Prodcut 1"
  40.        android:textAppearance="@style/TextAppearance.AppCompat.Small"
  41.        android:layout_width="70dp"
  42.        android:layout_height="wrap_content" />
  43.  
  44.     <EditText
  45.        android:id="@+id/et_product_desc"
  46.        android:inputType="none"
  47.        android:clickable="false"
  48.        android:focusable="false"
  49.        android:text="adfassafafaf"
  50.        android:layout_marginTop="10dp"
  51.        android:layout_below="@id/tv_product_name"
  52.        android:layout_above="@id/btn_buy"
  53.        android:layout_width="match_parent"
  54.        android:layout_height="wrap_content">
  55.  
  56.  
  57.     </EditText>
  58.  
  59.     <Button
  60.        android:id="@+id/btn_buy"
  61.        android:layout_width="100dp"
  62.        android:layout_height="wrap_content"
  63.        android:layout_alignParentBottom="true"
  64.        android:background="@color/colorPrimary"
  65.        android:text="Buy"
  66.        android:textAppearance="@style/TextAppearance.AppCompat.Large"
  67.        android:textColor="#fff" />
  68.  
  69.     <LinearLayout
  70.        android:layout_width="match_parent"
  71.        android:layout_height="wrap_content"
  72.        android:layout_alignParentBottom="true"
  73.        android:layout_marginLeft="10dp"
  74.        android:layout_toRightOf="@id/btn_buy"
  75.        android:orientation="vertical">
  76.  
  77.         <TextView
  78.            android:id="@+id/tv_product_price_old"
  79.            android:layout_width="match_parent"
  80.            android:layout_height="wrap_content"
  81.            android:text="Rp. 34433"
  82.            android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
  83.  
  84.         <TextView
  85.            android:id="@+id/tv_product_price_new"
  86.            android:layout_width="match_parent"
  87.            android:layout_height="wrap_content"
  88.            android:text="Rp. 34433"
  89.            android:textAppearance="@style/TextAppearance.AppCompat.Large" />
  90.  
  91.     </LinearLayout>
  92. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement