Advertisement
Shishu

xml 1st file for android database

Dec 13th, 2019
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.82 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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:orientation="vertical"
  8.    tools:context=".MainActivity"
  9.    android:gravity="center">
  10.  
  11.     <LinearLayout
  12.        android:layout_width="match_parent"
  13.        android:layout_height="wrap_content"
  14.        android:orientation="horizontal"
  15.        android:layout_marginTop="20dp"
  16.        android:layout_marginRight="20dp"
  17.        android:layout_marginLeft="20dp">
  18.  
  19.         <TextView
  20.  
  21.            android:layout_width="wrap_content"
  22.            android:layout_height="wrap_content"
  23.            android:text="Name:"
  24.            android:textSize="25sp"/>
  25.         <EditText
  26.            android:id="@+id/e1"
  27.            android:layout_width="match_parent"
  28.            android:layout_height="wrap_content"
  29.            android:textSize="25sp"/>
  30.  
  31.     </LinearLayout>
  32.  
  33.     <LinearLayout
  34.        android:layout_width="match_parent"
  35.        android:layout_height="wrap_content"
  36.        android:orientation="horizontal"
  37.        android:layout_marginTop="30dp"
  38.        android:layout_marginRight="20dp"
  39.        android:layout_marginLeft="20dp">
  40.  
  41.         <TextView
  42.  
  43.            android:layout_width="wrap_content"
  44.            android:layout_height="wrap_content"
  45.            android:text="College:"
  46.            android:textSize="25sp"/>
  47.         <EditText
  48.            android:id="@+id/e2"
  49.            android:layout_width="match_parent"
  50.            android:layout_height="wrap_content"
  51.            android:textSize="25sp"/>
  52.  
  53.     </LinearLayout>
  54.  
  55.     <LinearLayout
  56.        android:layout_width="match_parent"
  57.        android:layout_height="wrap_content"
  58.        android:orientation="horizontal"
  59.        android:layout_marginTop="40dp"
  60.        android:layout_marginLeft="20dp"
  61.        android:layout_marginRight="20dp">
  62.  
  63.         <Button
  64.            android:id="@+id/bu1"
  65.            android:layout_width="wrap_content"
  66.            android:layout_height="wrap_content"
  67.            android:text="INSERT"
  68.            android:textSize="25sp"/>
  69.  
  70.         <Button
  71.            android:id="@+id/bu2"
  72.            android:layout_width="wrap_content"
  73.            android:layout_height="wrap_content"
  74.            android:text="EXIT"
  75.            android:textSize="25sp"
  76.            android:layout_marginLeft="20dp"
  77.            android:layout_marginRight="20dp"/>
  78.  
  79.         <Button
  80.            android:id="@+id/bu3"
  81.            android:layout_width="wrap_content"
  82.            android:layout_height="wrap_content"
  83.            android:text="DISPLAY"
  84.            android:textSize="25sp"/>
  85.  
  86.  
  87.  
  88.     </LinearLayout>
  89.  
  90. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement