login_phonenumber.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@color/transparent">
  6. <LinearLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="250dp"
  9. android:layout_marginLeft="30dp"
  10. android:layout_marginTop="180dp"
  11. android:layout_marginRight="30dp"
  12. android:background="@color/white"
  13. android:orientation="vertical">
  14. <EditText
  15. android:id="@+id/phonenumber_phonenumber"
  16. android:layout_width="match_parent"
  17. android:layout_height="0dp"
  18. android:layout_weight="1"
  19. android:background="@drawable/shape_login_phonenumber_edittext"
  20. android:gravity="left|center"
  21. android:hint="请输入手机号码"
  22. android:inputType="number"
  23. android:maxLength="11"
  24. android:paddingLeft="30dp"
  25. android:paddingRight="10dp"
  26. android:textSize="20sp"></EditText>
  27. <View
  28. android:layout_width="match_parent"
  29. android:layout_height="0dp"
  30. android:layout_weight="0.5"></View>
  31. <LinearLayout
  32. android:layout_width="match_parent"
  33. android:layout_height="0dp"
  34. android:layout_weight="1"
  35. android:orientation="horizontal">
  36. <EditText
  37. android:id="@+id/phonenumber_verifcation"
  38. android:layout_width="0dp"
  39. android:layout_height="match_parent"
  40. android:layout_gravity="center"
  41. android:layout_weight="1.3"
  42. android:background="@drawable/shape_login_phonenumber_edittext"
  43. android:gravity="left|center"
  44. android:hint="请输入验证码"
  45. android:inputType="number"
  46. android:maxLength="4"
  47. android:paddingLeft="30dp"
  48. android:paddingRight="10dp"
  49. android:textSize="20sp"></EditText>
  50. <View
  51. android:layout_width="0dp"
  52. android:layout_height="match_parent"
  53. android:layout_weight="0.1"></View>
  54. <FrameLayout
  55. android:layout_width="0dp"
  56. android:layout_height="match_parent"
  57. android:layout_weight="1">
  58. <TextView
  59. android:id="@+id/phonenumber_getverifcation"
  60. android:layout_width="match_parent"
  61. android:layout_height="match_parent"
  62. android:layout_gravity="center|right"
  63. android:background="@drawable/shape_login_phonenumber_getverification"
  64. android:gravity="center"
  65. android:text="获取验证码"
  66. android:textColor="#FFA301"
  67. android:textSize="20sp"></TextView>
  68. </FrameLayout>
  69. </LinearLayout>
  70. <View
  71. android:layout_width="match_parent"
  72. android:layout_height="0dp"
  73. android:layout_weight="0.5"></View>
  74. <TextView
  75. android:id="@+id/phonenumber_login"
  76. android:layout_width="match_parent"
  77. android:layout_height="0dp"
  78. android:layout_weight="1"
  79. android:background="@drawable/shape_login_phonenumber_login"
  80. android:gravity="center"
  81. android:text="登 录"
  82. android:textColor="@color/white"
  83. android:textSize="20sp"></TextView>
  84. <View
  85. android:layout_width="match_parent"
  86. android:layout_height="0dp"
  87. android:layout_weight="0.5"></View>
  88. <TextView
  89. android:id="@+id/change_text"
  90. android:layout_width="match_parent"
  91. android:layout_height="0dp"
  92. android:layout_gravity="center|bottom"
  93. android:layout_weight="1"
  94. android:gravity="top|center"
  95. android:text="切换手机号登录"
  96. android:textColor="#0B0B0B"
  97. android:textSize="16sp"></TextView>
  98. </LinearLayout>
  99. </FrameLayout>