radityahunter48

activity_login

Nov 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 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:paddingBottom="@dimen/activity_vertical_margin"
  8. android:paddingLeft="@dimen/activity_horizontal_margin"
  9. android:paddingRight="@dimen/activity_horizontal_margin"
  10. android:paddingTop="@dimen/activity_vertical_margin"
  11. android:orientation="vertical"
  12. tools:context=".LoginActivity">
  13.  
  14. <ImageView
  15. android:background="@drawable/logo"
  16. android:layout_gravity="center_horizontal"
  17. android:layout_width="150dp"
  18. android:layout_height="150dp" />
  19.  
  20. <android.support.design.widget.TextInputLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:layout_marginTop="8dp"
  24. android:layout_marginBottom="8dp">
  25.  
  26. <EditText
  27. android:id="@+id/username"
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:hint="Username"
  31.  
  32. android:inputType="textPersonName" />
  33. </android.support.design.widget.TextInputLayout>
  34.  
  35. <android.support.design.widget.TextInputLayout
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:layout_marginTop="8dp"
  39. android:layout_marginBottom="8dp">
  40. <EditText android:id="@+id/editTextPassword"
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:inputType="textPassword"
  44. android:hint="Password"/>
  45. </android.support.design.widget.TextInputLayout>
  46.  
  47. <ProgressBar
  48. android:id="@+id/pDialog"
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content" />
  51.  
  52. <android.support.v7.widget.AppCompatButton
  53. android:id="@+id/buttonLogin"
  54. android:layout_width="fill_parent"
  55. android:layout_height="wrap_content"
  56. android:background="@color/colorPrimary"
  57. android:textColor="@android:color/white"
  58. android:layout_marginTop="24dp"
  59. android:layout_marginBottom="24dp"
  60. android:padding="12dp"
  61. android:text="Login"/>
  62.  
  63. </LinearLayout>
Add Comment
Please, Sign In to add comment