Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.06 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:app="http://schemas.android.com/apk/res-auto"
  3.    xmlns:tools="http://schemas.android.com/tools"
  4.    android:id="@+id/main_content"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:background="#FFFFFF"
  8.    android:orientation="vertical"
  9.    android:padding="20dp">
  10.  
  11.     <TextView
  12.        android:layout_width="wrap_content"
  13.        android:layout_height="wrap_content"
  14.        android:text="@string/enter_barcode"/>
  15.  
  16.     <EditText
  17.        android:layout_width="match_parent"
  18.        android:layout_height="wrap_content"
  19.        android:hint="Enter Barcode"
  20.        android:textSize="14sp"/>
  21.  
  22.     <TextView
  23.        android:layout_width="wrap_content"
  24.        android:layout_height="wrap_content"
  25.        android:layout_marginTop="16dp"
  26.        android:text="@string/enter_dimms_width_x_height_x_depth" />
  27.  
  28.     <RelativeLayout
  29.        android:id="@+id/entries"
  30.        android:layout_width="wrap_content"
  31.        android:layout_height="wrap_content"
  32.        android:orientation="horizontal"
  33.        android:layout_marginLeft="24dp"
  34.        android:layout_marginRight="24dp">
  35.         <EditText
  36.            android:layout_width="wrap_content"
  37.            android:layout_height="wrap_content"
  38.            android:layout_gravity="center"
  39.            android:hint="@string/width_placeholder"
  40.            android:inputType="numberDecimal"/>
  41.  
  42.         <EditText
  43.            android:layout_width="wrap_content"
  44.            android:layout_height="wrap_content"
  45.            android:layout_alignParentTop="true"
  46.            android:layout_centerHorizontal="true"
  47.            android:hint="@string/height_placeholder"
  48.            android:inputType="numberDecimal"/>
  49.         <EditText
  50.            android:layout_width="wrap_content"
  51.            android:layout_height="wrap_content"
  52.            android:layout_gravity="right"
  53.            android:layout_alignParentRight="true"
  54.            android:hint="@string/depth_placeholder"
  55.            android:inputType="numberDecimal"/>
  56.     </RelativeLayout>
  57.  
  58.     <RelativeLayout
  59.        android:layout_width="fill_parent"
  60.        android:layout_height="wrap_content"
  61.        android:orientation="horizontal">
  62.  
  63.         <Button
  64.            android:id="@+id/reset"
  65.            android:layout_width="wrap_content"
  66.            android:layout_height="wrap_content"
  67.            android:layout_alignParentBottom="true"
  68.            android:text="@string/button_reset"
  69.            android:background="@color/colorPrimaryDark"
  70.            android:textColor="#FFFFFF"/>
  71.  
  72.         <Button
  73.            android:id="@+id/save"
  74.            android:layout_width="wrap_content"
  75.            android:layout_height="wrap_content"
  76.            android:layout_alignParentBottom="true"
  77.            android:layout_alignParentRight="true"
  78.            android:text="@string/button_save"
  79.            android:background="@color/colorPrimaryDark"
  80.            android:textColor="#FFFFFF" />
  81.     </RelativeLayout>
  82.  
  83. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement