activity_login.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@mipmap/background_login"
  7. android:fitsSystemWindows="true">
  8. <FrameLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="400dp">
  11. <TextView
  12. android:id="@+id/login_logo"
  13. android:layout_width="wrap_content"
  14. android:layout_height="wrap_content"
  15. android:layout_gravity="center"
  16. android:layout_marginTop="50dp"
  17. android:gravity="center"
  18. android:textStyle="bold"
  19. app:drawableTopCompat="@mipmap/login_logo" />
  20. </FrameLayout>
  21. <LinearLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_centerInParent="true"
  25. android:layout_marginStart="45dp"
  26. android:layout_marginEnd="65dp"
  27. android:orientation="vertical">
  28. <LinearLayout
  29. android:layout_width="match_parent"
  30. android:layout_height="50dp"
  31. android:layout_marginTop="300dp"
  32. android:background="@drawable/shape_corner_stroke_white"
  33. android:orientation="horizontal">
  34. <EditText
  35. android:id="@+id/account"
  36. android:layout_width="match_parent"
  37. android:layout_height="match_parent"
  38. android:layout_marginStart="15dp"
  39. android:layout_marginEnd="15dp"
  40. android:background="@color/white"
  41. android:hint="@string/account"
  42. android:importantForAutofill="no"
  43. android:inputType="text"
  44. android:maxLines="1"
  45. android:textColorHint="@color/hint_text_color"
  46. android:textSize="@dimen/text_size_medium" />
  47. </LinearLayout>
  48. <LinearLayout
  49. android:layout_width="match_parent"
  50. android:layout_height="50dp"
  51. android:layout_marginTop="@dimen/common_padding_large"
  52. android:background="@drawable/shape_corner_stroke_white"
  53. android:orientation="horizontal">
  54. <EditText
  55. android:id="@+id/password"
  56. android:layout_width="match_parent"
  57. android:layout_height="match_parent"
  58. android:layout_gravity="center_vertical"
  59. android:layout_marginStart="15dp"
  60. android:layout_marginEnd="15dp"
  61. android:background="@color/white"
  62. android:hint="@string/password"
  63. android:importantForAutofill="no"
  64. android:inputType="textPassword"
  65. android:maxLines="1"
  66. android:textColorHint="@color/hint_text_color"
  67. android:textSize="@dimen/text_size_medium" />
  68. </LinearLayout>
  69. <com.pan_american.android.util.CommitButton
  70. android:id="@+id/login_button"
  71. android:layout_width="match_parent"
  72. android:layout_height="@dimen/button_height"
  73. android:layout_marginTop="@dimen/common_padding_large" />
  74. <TextView
  75. android:id="@+id/system_info"
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:layout_marginStart="5dp"
  79. android:layout_marginTop="@dimen/common_padding"
  80. android:layout_marginEnd="5dp"
  81. android:gravity="center"
  82. android:text="@string/system_info"
  83. android:textColor="@color/background_color"
  84. android:textSize="@dimen/text_size_minimum" />
  85. </LinearLayout>
  86. <TextView
  87. android:id="@+id/icp_code"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:layout_alignParentBottom="true"
  91. android:layout_centerHorizontal="true"
  92. android:layout_marginBottom="@dimen/common_padding"
  93. android:gravity="center"
  94. android:text="@string/ICP_code"
  95. android:textColor="@color/background_color"
  96. android:textSize="@dimen/text_size_minimum" />
  97. </RelativeLayout>