Advertisement
Shishu

2nd class in android

Oct 11th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.87 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:tools="http://schemas.android.com/tools"
  4.     android:layout_width="match_parent"
  5.     android:layout_height="match_parent"
  6.     android:orientation="vertical"
  7.     tools:context="com.example.user.shishu.MainActivity">
  8.  
  9.     <TextView
  10.         android:id="@+id/a1"
  11.         android:layout_width="match_parent"
  12.         android:layout_height="wrap_content"
  13.         android:gravity="center"
  14.         android:text="LOGIN FORM"
  15.         android:textColor="@color/colorAccent"
  16.         android:textSize="30sp" />
  17.     <LinearLayout
  18.         android:layout_width="match_parent"
  19.         android:layout_height="wrap_content"
  20.         android:orientation="horizontal"
  21.         >
  22.         <ImageView
  23.             android:layout_width="30dp"
  24.             android:layout_height="30dp"
  25.             android:src="@drawable/user" />
  26.         <TextView
  27.             android:id="@+ida5/"
  28.             android:layout_width="wrap_content"
  29.             android:layout_height="wrap_content"
  30.             android:gravity="left"
  31.             android:text="User Name:"
  32.             android:textSize="20dp"/>
  33.         <EditText
  34.             android:id="@+ida6/"
  35.             android:layout_width="match_parent"
  36.             android:layout_height="wrap_content"
  37.             />
  38.  
  39.     </LinearLayout>
  40.     <LinearLayout
  41.         android:layout_width="match_parent"
  42.         android:layout_height="wrap_content"
  43.         android:orientation="horizontal">
  44.  
  45.         <ImageView
  46.             android:layout_width="20dp"
  47.             android:layout_height="20dp"
  48.             android:src="@drawable/21_lock-512"
  49.             />
  50.  
  51.         <TextView
  52.             android:id="@+ida7/"
  53.             android:layout_width="wrap_content"
  54.             android:layout_height="wrap_content"
  55.             android:gravity="left"
  56.             android:text="password:"
  57.             android:textSize="20dp"/>
  58.         <EditText
  59.             android:id="@+id/a8"
  60.             android:layout_width="match_parent"
  61.             android:layout_height="wrap_content"
  62.             android:inputType="textPassword"
  63.             />
  64.     </LinearLayout>
  65.  
  66.     <LinearLayout
  67.         android:layout_width="wrap_content"
  68.         android:layout_height="wrap_content"
  69.         android:orientation="horizontal">
  70.  
  71.         <Button
  72.             android:id="@+id/a9"
  73.             android:layout_width="wrap_content"
  74.             android:layout_height="wrap_content"
  75.             android:text="LOGIN"
  76.             android:textColor="#f00" />
  77.  
  78.         <Button
  79.             android:id="@+id/a10"
  80.             android:layout_width="wrap_content"
  81.             android:layout_height="wrap_content"
  82.             android:layout_marginLeft="200dp"
  83.             android:text="Exit"
  84.             android:textColor="#f00" />
  85.     </LinearLayout>
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement