Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context=".MainActivity"
- android:orientation="vertical"
- android:gravity="center">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text = "@string/userName"/>
- <EditText
- android:id="@+id/userName"
- android:layout_width="160dp"
- android:layout_height="wrap_content"
- android:hint="@string/userName"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:hint = "@string/password"/>
- <EditText
- android:id="@+id/password"
- android:layout_width="160dp"
- android:layout_height="wrap_content"
- android:hint="@string/password"
- />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center|top">
- <Button
- android:id="@+id/EnterButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:onClick="loginButtonClicked"
- android:text="@string/Button" />
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement