Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.07 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:background="@color/grey"
  7.    android:paddingBottom="@dimen/app_margin"
  8.    android:paddingEnd="@dimen/app_margin"
  9.    android:paddingStart="@dimen/app_margin"
  10.    android:paddingTop="@dimen/app_margin"
  11.    tools:context=".activities.ProductList">
  12.  
  13.     <ListView
  14.        android:id="@+id/prod_list"
  15.        android:layout_width="match_parent"
  16.        android:layout_height="wrap_content"
  17.        android:layout_alignParentStart="true"
  18.        android:layout_alignParentTop="true"
  19.        android:layout_marginBottom="@dimen/app_margin" />
  20.  
  21.     <LinearLayout
  22.        android:id="@+id/add_item_layout"
  23.        android:layout_width="match_parent"
  24.        android:layout_height="wrap_content"
  25.        android:layout_below="@+id/prod_list"
  26.        android:gravity="bottom"
  27.        android:orientation="vertical">
  28.  
  29.         <EditText
  30.            android:id="@+id/prod_name"
  31.            android:layout_width="match_parent"
  32.            android:layout_height="wrap_content"
  33.            android:hint="@string/prod_name_text"
  34.            android:inputType="text" />
  35.  
  36.         <EditText
  37.            android:id="@+id/prod_price"
  38.            android:layout_width="match_parent"
  39.            android:layout_height="wrap_content"
  40.            android:hint="@string/prod_price_text"
  41.            android:inputType="numberDecimal" />
  42.  
  43.         <EditText
  44.            android:id="@+id/prod_volume"
  45.            android:layout_width="match_parent"
  46.            android:layout_height="wrap_content"
  47.            android:hint="@string/prod_volume_text"
  48.            android:inputType="number" />
  49.  
  50.         <Button
  51.            android:id="@+id/add_item"
  52.            android:layout_width="match_parent"
  53.            android:layout_height="wrap_content"
  54.            android:text="@string/add_item_text" />
  55.  
  56.     </LinearLayout>
  57.  
  58. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement