Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 <?xml version="1.0" encoding="utf-8"?>
- 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- 3 xmlns:app="http://schemas.android.com/apk/res-auto"
- 4 xmlns:tools="http://schemas.android.com/tools"
- 5 android:layout_width="match_parent"
- 6 android:layout_height="match_parent"
- 7 android:padding="16dp"
- 8 tools:context="MainActivity">
- 9
- 10 <EditText
- 11 android:id="@+id/editText_id"
- 12 android:layout_width="match_parent"
- 13 android:layout_height="wrap_content"
- 14 android:layout_alignParentTop="true"
- 15 android:inputType="number"
- 16 android:hint="Id"/>
- 17
- 18
- 19 <EditText
- 20 android:id="@+id/editText_name"
- 21 android:layout_width="match_parent"
- 22 android:layout_height="wrap_content"
- 23 android:layout_below="@id/editText_id"
- 24 android:hint="Name"
- 25 />
- 26
- 27 <EditText
- 28 android:id="@+id/editText_surname"
- 29 android:layout_width="match_parent"
- 30 android:layout_height="wrap_content"
- 31 android:layout_below="@id/editText_name"
- 32 android:hint="Surname"/>
- 33
- 34 <EditText
- 35 android:id="@+id/editText_Marks"
- 36 android:layout_width="match_parent"
- 37 android:layout_height="wrap_content"
- 38 android:layout_below="@id/editText_surname"
- 39 android:inputType="number"
- 40 android:hint="Marks"
- 41
- 42 />
- 43
- 44 <Button
- 45 android:id="@+id/button_add"
- 46 android:layout_width="wrap_content"
- 47 android:layout_height="wrap_content"
- 48 android:layout_marginTop="10dp"
- 49 android:layout_below="@+id/editText_Marks"
- 50 android:layout_centerHorizontal="true"
- 51 android:text="Add Data"/>
- 52
- 53 <Button
- 54 android:id="@+id/button_view"
- 55 android:layout_width="wrap_content"
- 56 android:layout_height="wrap_content"
- 57 android:layout_below="@id/button_add"
- 58 android:layout_centerHorizontal="true"
- 59 android:text="View"
- 60
- 61 />
- 62
- 63 <Button
- 64 android:id="@+id/button_update"
- 65 android:layout_width="wrap_content"
- 66 android:layout_height="wrap_content"
- 67 android:layout_below="@id/button_view"
- 68 android:layout_centerHorizontal="true"
- 69 android:text="Update"
- 70 />
- 71
- 72
- 73 <Button
- 74 android:id="@+id/button_delete"
- 75 android:layout_width="wrap_content"
- 76 android:layout_height="wrap_content"
- 77 android:layout_below="@id/button_update"
- 78 android:layout_centerHorizontal="true"
- 79 android:text="Delete"
- 80 />
- 81
- 82 <Button
- 83 android:id="@+id/button_viewAll"
- 84 android:layout_width="wrap_content"
- 85 android:layout_height="wrap_content"
- 86 android:layout_below="@id/button_delete"
- 87 android:layout_centerHorizontal="true"
- 88 android:text="View All"
- 89 />
- 90
- 91 </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement