Advertisement
vergepuppeter

Sample Bg

Nov 24th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.17 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:orientation="vertical" android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    android:padding="16dp"
  6.    android:background="#CC9360">
  7.  
  8.     <LinearLayout
  9.        android:layout_width="match_parent"
  10.        android:layout_height="150dp"
  11.        android:orientation="horizontal"
  12.        android:weightSum="2">
  13.  
  14.         <LinearLayout
  15.            android:layout_width="0dp"
  16.            android:layout_height="match_parent"
  17.            android:layout_weight="1"
  18.            android:padding="10dp"
  19.            android:orientation="vertical"
  20.            android:background="@drawable/sample_bg"
  21.            android:layout_marginRight="20dp">
  22.             <RelativeLayout
  23.                android:layout_width="match_parent"
  24.                android:layout_height="30dp">
  25.                 <TextView
  26.                    android:layout_width="match_parent"
  27.                    android:layout_height="30dp"
  28.                    android:text="CHECK IN"
  29.                    android:gravity="center_vertical"/>
  30.  
  31.                 <ImageView
  32.                    android:layout_width="wrap_content"
  33.                    android:layout_height="wrap_content"
  34.                    android:background="@android:drawable/ic_menu_my_calendar"
  35.                    android:layout_alignParentRight="true"/>
  36.             </RelativeLayout>
  37.  
  38.  
  39.             <View
  40.                android:layout_width="match_parent"
  41.                android:layout_height="1dp"
  42.                android:background="@android:color/darker_gray"/>
  43.  
  44.         </LinearLayout>
  45.         <LinearLayout
  46.            android:layout_width="0dp"
  47.            android:layout_height="match_parent"
  48.            android:layout_weight="1"
  49.            android:padding="10dp"
  50.            android:orientation="vertical"
  51.            android:background="@drawable/sample_bg">
  52.             <RelativeLayout
  53.                android:layout_width="match_parent"
  54.                android:layout_height="30dp">
  55.                 <TextView
  56.                    android:layout_width="match_parent"
  57.                    android:layout_height="30dp"
  58.                    android:text="CHECK OUT"
  59.                    android:gravity="center_vertical"/>
  60.  
  61.                 <ImageView
  62.                    android:layout_width="wrap_content"
  63.                    android:layout_height="wrap_content"
  64.                    android:background="@android:drawable/ic_menu_my_calendar"
  65.                    android:layout_centerVertical="true"
  66.                    android:layout_alignParentRight="true"/>
  67.             </RelativeLayout>
  68.  
  69.             <View
  70.                android:layout_width="match_parent"
  71.                android:layout_height="1dp"
  72.                android:background="@android:color/darker_gray"/>
  73.         </LinearLayout>
  74.     </LinearLayout>
  75.  
  76.     <LinearLayout
  77.        android:layout_width="match_parent"
  78.        android:layout_height="wrap_content"
  79.        android:orientation="vertical"
  80.        android:background="@drawable/sample_bg"
  81.        android:layout_marginTop="20dp"
  82.        android:padding="10dp">
  83.         <TextView
  84.            android:layout_width="match_parent"
  85.            android:layout_height="50dp"
  86.            android:text="ROOM 1"/>
  87.  
  88.         <EditText
  89.            android:layout_width="match_parent"
  90.            android:layout_height="50dp" />
  91.  
  92.         <EditText
  93.            android:layout_width="match_parent"
  94.            android:layout_height="50dp" />
  95.  
  96.         <EditText
  97.            android:layout_width="match_parent"
  98.            android:layout_height="50dp" />
  99.  
  100.     </LinearLayout>
  101.  
  102.     <Button
  103.        android:layout_width="match_parent"
  104.        android:layout_height="50dp"
  105.        android:text="Search"
  106.        android:layout_marginTop="10dp"/>
  107.  
  108. </LinearLayout>
  109.  
  110.  
  111.  
  112.  
  113. //White box background - Copy and paste masuk dlm drawable
  114.  
  115. <?xml version="1.0" encoding="utf-8"?>
  116. <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
  117.     <corners
  118.        android:radius="8dp"
  119.        />
  120.     <solid
  121.        android:color="#FFFFFF"
  122.        />
  123. </shape>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement