activity_login.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. android:orientation="vertical"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:padding="20dp">
  8. <com.google.android.material.textfield.TextInputLayout
  9. android:id="@+id/login_error"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. >
  13. <com.google.android.material.textfield.TextInputEditText
  14. android:id="@+id/login"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:inputType="textPersonName"
  18. android:hint="Введите логин"
  19. />
  20. </com.google.android.material.textfield.TextInputLayout>
  21. <com.google.android.material.textfield.TextInputLayout
  22. android:id="@+id/password_error"
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent"
  25. >
  26. <com.google.android.material.textfield.TextInputEditText
  27. android:id="@+id/password"
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:inputType="textPassword"
  31. android:hint="Введите пароль"
  32. />
  33. </com.google.android.material.textfield.TextInputLayout>
  34. <TextView
  35. android:id="@+id/login_button"
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:layout_marginTop="20dp"
  39. android:gravity="right"
  40. android:textColor="@color/design_default_color_primary"
  41. android:text="ЛОГИН"
  42. />
  43. </LinearLayout>