Advertisement
Guest User

XML

a guest
Feb 19th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.84 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.    tools:context=".MainActivity"
  8.    android:orientation="vertical"
  9.    android:gravity="center">
  10.  
  11.  
  12.     <LinearLayout
  13.        android:layout_width="wrap_content"
  14.        android:layout_height="wrap_content">
  15.         <TextView
  16.            android:layout_width="wrap_content"
  17.            android:layout_height="wrap_content"
  18.            android:text = "@string/userName"/>
  19.         <EditText
  20.            android:id="@+id/userName"
  21.            android:layout_width="160dp"
  22.            android:layout_height="wrap_content"
  23.            android:hint="@string/userName"/>
  24.  
  25.  
  26.     </LinearLayout>
  27.  
  28.  
  29.     <LinearLayout
  30.        android:layout_width="wrap_content"
  31.        android:layout_height="wrap_content">
  32.         <TextView
  33.            android:layout_width="wrap_content"
  34.            android:layout_height="wrap_content"
  35.            android:hint = "@string/password"/>
  36.         <EditText
  37.            android:id="@+id/password"
  38.            android:layout_width="160dp"
  39.            android:layout_height="wrap_content"
  40.            android:hint="@string/password"
  41.             />
  42.  
  43.     </LinearLayout>
  44.     <LinearLayout
  45.        android:layout_width="match_parent"
  46.        android:layout_height="wrap_content"
  47.        android:gravity="center|top">
  48.  
  49.  
  50.         <Button
  51.            android:id="@+id/EnterButton"
  52.            android:layout_width="wrap_content"
  53.            android:layout_height="wrap_content"
  54.            android:onClick="loginButtonClicked"
  55.            android:text="@string/Button" />
  56.  
  57.  
  58.     </LinearLayout>
  59.  
  60. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement