Advertisement
Guest User

activity_login

a guest
Dec 14th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 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:id="@+id/main_layout"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:gravity="center"
  9. android:orientation="vertical">
  10.  
  11. <ImageView
  12. android:id="@+id/ivLogin"
  13. android:layout_width="100dp"
  14. android:layout_height="100dp"
  15. android:src="@drawable/amcc"
  16. android:layout_margin="32dp" />
  17.  
  18. <com.google.android.material.textfield.TextInputLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content">
  21.  
  22. <EditText
  23. android:id="@+id/etNimLogin"
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:layout_marginLeft="@dimen/margin32"
  27. android:layout_marginRight="@dimen/margin32"
  28. android:hint="NIM" />
  29.  
  30. </>
  31.  
  32. <com.google.android.material.textfield.TextInputLayout
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. app:passwordToggleEnabled="true">
  36.  
  37. <EditText
  38. android:id="@+id/etPasswordLogin"
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:layout_marginLeft="@dimen/margin32"
  42. android:layout_marginTop="@dimen/margin16"
  43. android:layout_marginRight="@dimen/margin32"
  44. android:inputType="textPassword"
  45. android:hint="Password" />
  46.  
  47. </com.google.android.material.textfield.TextInputLayout>
  48.  
  49. <Button
  50. android:id="@+id/btnLogin"
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:layout_margin="@dimen/margin32"
  54. android:background="@drawable/shape_linear_layout"
  55. android:text="Login"
  56. android:textColor="@android:color/white" />
  57.  
  58. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement