説明なし

register.xml 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical">
  8. <!-- tools:context=".RegisterFragment">-->
  9. <TextView
  10. android:id="@+id/tv_logo"
  11. android:layout_width="wrap_content"
  12. android:layout_height="wrap_content"
  13. android:text="@string/register"
  14. android:textAlignment="center"
  15. android:textSize="50sp"
  16. android:layout_marginStart="25dp"
  17. android:layout_marginBottom="5dp"
  18. android:layout_marginTop="60dp"/>
  19. <EditText
  20. android:id="@+id/et_name"
  21. android:layout_width="match_parent"
  22. android:layout_height="50dp"
  23. android:hint="@string/your_name"
  24. android:layout_marginLeft="20dp"
  25. android:layout_marginRight="20dp"
  26. android:layout_marginBottom="10dp"
  27. android:padding="15dp"
  28. android:inputType="textPersonName"
  29. android:textSize="15sp" />
  30. <EditText
  31. android:id="@+id/et_email"
  32. android:layout_width="match_parent"
  33. android:layout_height="50dp"
  34. android:hint="@string/e_mail"
  35. android:layout_marginLeft="20dp"
  36. android:layout_marginRight="20dp"
  37. android:layout_marginBottom="10dp"
  38. android:padding="15dp"
  39. android:inputType="textEmailAddress"
  40. android:textSize="15sp" />
  41. <EditText
  42. android:id="@+id/et_password"
  43. android:layout_width="match_parent"
  44. android:layout_height="50dp"
  45. android:hint="@string/password"
  46. android:layout_marginLeft="20dp"
  47. android:layout_marginRight="20dp"
  48. android:layout_marginBottom="10dp"
  49. android:padding="15dp"
  50. android:inputType="textPassword"
  51. android:textSize="15sp" />
  52. <EditText
  53. android:id="@+id/et_repassword"
  54. android:layout_width="match_parent"
  55. android:layout_height="50dp"
  56. android:hint="@string/re_type_password"
  57. android:layout_marginLeft="20dp"
  58. android:layout_marginRight="20dp"
  59. android:padding="15dp"
  60. android:inputType="textPassword"
  61. android:textSize="15sp" />
  62. <RelativeLayout
  63. android:layout_width="match_parent"
  64. android:layout_height="0dp"
  65. android:layout_weight="1">
  66. <Button
  67. android:id="@+id/btn_register"
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:layout_marginLeft="20dp"
  71. android:layout_marginRight="20dp"
  72. android:layout_marginBottom="30dp"
  73. android:layout_centerInParent="true"
  74. android:textColor="@android:color/white"
  75. android:text="@string/register"/>
  76. <ImageView
  77. android:layout_width="30dp"
  78. android:layout_height="30dp"
  79. android:layout_above="@id/to_login_activity"
  80. android:layout_centerHorizontal="true"/>
  81. <Button
  82. android:id="@+id/to_login_activity"
  83. android:layout_width="wrap_content"
  84. android:layout_height="wrap_content"
  85. android:text="Already registered?"
  86. android:layout_centerHorizontal="true"
  87. android:layout_alignParentBottom="true"
  88. android:layout_marginBottom="20dp"/>
  89. </RelativeLayout>
  90. </LinearLayout>