Advertisement
uopspop

Untitled

Oct 10th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.04 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v7.widget.CardView
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto"
  6.    android:layout_height="wrap_content"
  7.    android:layout_width="match_parent"
  8.    android:layout_margin="6dp"
  9.    app:cardBackgroundColor="#dddddd"
  10.    app:cardCornerRadius="24dp"
  11.    app:cardElevation="8dp"
  12.    >
  13.     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  14.        xmlns:tools="http://schemas.android.com/tools"
  15.        android:layout_width="match_parent"
  16.        android:layout_height="match_parent"
  17.        android:paddingBottom="@dimen/activity_vertical_margin"
  18.        android:paddingLeft="@dimen/activity_horizontal_margin"
  19.        android:paddingRight="@dimen/activity_horizontal_margin"
  20.        android:paddingTop="@dimen/activity_vertical_margin"
  21.        android:orientation="vertical"
  22.        tools:context="com.example.sam.recycleviewprac.MainActivity">
  23.  
  24.         <ImageView
  25.            android:id="@+id/ivImage"
  26.            android:layout_width="48dp"
  27.            android:layout_height="53dp"
  28.            android:src="@drawable/hotel1"/>
  29.  
  30.  
  31.         <TextView
  32.            android:id="@+id/tvHotel"
  33.            android:layout_width="wrap_content"
  34.            android:layout_height="wrap_content"
  35.            android:layout_toRightOf="@id/ivImage"
  36.  
  37.            android:textSize="24sp"
  38.            android:text="福華飯店 單人房"
  39.            android:textColor="#0000AA"
  40.            android:layout_marginLeft="10dp"/>
  41.  
  42.         <TextView
  43.            android:id="@+id/tvPrice"
  44.            android:layout_width="wrap_content"
  45.            android:layout_height="wrap_content"
  46.            android:layout_alignLeft="@id/tvHotel"
  47.            android:layout_below="@+id/tvHotel"
  48.            android:paddingTop="5dp"
  49.            android:textSize="20sp"
  50.            android:text="500$" />
  51.  
  52.  
  53.     </RelativeLayout>
  54. </android.support.v7.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement