Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/grey"
- android:paddingBottom="@dimen/app_margin"
- android:paddingEnd="@dimen/app_margin"
- android:paddingStart="@dimen/app_margin"
- android:paddingTop="@dimen/app_margin"
- tools:context=".activities.ProductList">
- <ListView
- android:id="@+id/prod_list"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentStart="true"
- android:layout_alignParentTop="true"
- android:layout_marginBottom="@dimen/app_margin" />
- <LinearLayout
- android:id="@+id/add_item_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@+id/prod_list"
- android:gravity="bottom"
- android:orientation="vertical">
- <EditText
- android:id="@+id/prod_name"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/prod_name_text"
- android:inputType="text" />
- <EditText
- android:id="@+id/prod_price"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/prod_price_text"
- android:inputType="numberDecimal" />
- <EditText
- android:id="@+id/prod_volume"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="@string/prod_volume_text"
- android:inputType="number" />
- <Button
- android:id="@+id/add_item"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/add_item_text" />
- </LinearLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement