Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.70 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:orientation="vertical">
  7.  
  8.     <android.support.v7.widget.CardView
  9.        android:layout_width="match_parent"
  10.        android:layout_height="match_parent">
  11.  
  12.         <RelativeLayout
  13.            android:layout_width="match_parent"
  14.            android:layout_height="match_parent">
  15.  
  16.             <ImageView
  17.                android:id="@+id/imageView2"
  18.                android:layout_width="wrap_content"
  19.                android:layout_height="wrap_content"
  20.                app:srcCompat="@mipmap/ic_launcher"
  21.                android:layout_alignTop="@+id/textView3"
  22.                android:layout_alignParentStart="true"
  23.                android:layout_alignBottom="@+id/textView4" />
  24.  
  25.             <TextView
  26.                android:id="@+id/textView3"
  27.                android:layout_width="wrap_content"
  28.                android:layout_height="wrap_content"
  29.                android:layout_alignParentTop="true"
  30.                android:layout_marginStart="14dp"
  31.                android:layout_marginTop="12dp"
  32.                android:layout_toEndOf="@+id/imageView2"
  33.                android:text="Product Title"
  34.                android:textSize="25sp" />
  35.  
  36.             <TextView
  37.                android:id="@+id/textView4"
  38.                android:layout_width="wrap_content"
  39.                android:layout_height="wrap_content"
  40.                android:layout_marginTop="15dp"
  41.                android:text="This is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple descriptionThis is a simple description"
  42.                android:layout_below="@+id/textView3"
  43.                android:layout_alignStart="@+id/textView3"
  44.                android:layout_alignEnd="@+id/textView3" />
  45.  
  46.             <Button
  47.                android:id="@+id/button"
  48.                android:layout_width="match_parent"
  49.                android:layout_height="wrap_content"
  50.                android:text="Button"
  51.                android:layout_below="@+id/textView4"
  52.                android:layout_marginTop="20dp" />
  53.  
  54.         </RelativeLayout>
  55.  
  56.     </android.support.v7.widget.CardView>
  57.  
  58. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement