activity_register.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical"
  6. android:background="@color/white">
  7. <RelativeLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:paddingLeft="@dimen/default_content_margin"
  11. android:paddingTop="@dimen/default_content_margin"
  12. android:paddingRight="@dimen/default_content_margin">
  13. <ImageView
  14. android:id="@+id/iv_cancel"
  15. android:layout_width="@dimen/company_20dp"
  16. android:layout_height="@dimen/company_20dp"
  17. android:src="@drawable/login_cancel_icon" />
  18. <TextView
  19. android:id="@+id/tv_login"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_alignParentRight="true"
  23. android:text="登录"
  24. android:textColor="@color/main_color"
  25. android:textSize="@dimen/company_18sp" />
  26. </RelativeLayout>
  27. <LinearLayout
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:layout_marginTop="@dimen/company_30dp"
  31. android:gravity="center_horizontal"
  32. android:orientation="vertical">
  33. <ImageView
  34. android:layout_width="62dp"
  35. android:layout_height="62dp"
  36. android:src="@drawable/logo" />
  37. <TextView
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_marginTop="@dimen/company_6dp"
  41. android:text="仕 途 网"
  42. android:textColor="@color/main_color"
  43. android:textSize="@dimen/company_18sp"
  44. android:textStyle="bold" />
  45. </LinearLayout>
  46. <LinearLayout
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:orientation="vertical"
  50. android:paddingLeft="@dimen/company_15dp"
  51. android:paddingTop="@dimen/company_15dp"
  52. android:paddingRight="@dimen/company_15dp">
  53. <EditText
  54. android:id="@+id/edit_phone_number"
  55. android:layout_width="match_parent"
  56. android:layout_height="@dimen/company_50dp"
  57. android:layout_marginTop="@dimen/company_10dp"
  58. android:background="@drawable/shapre_default_edit_bg"
  59. android:hint="请输入用户名称/手机号/邮箱"
  60. android:maxLines="1"
  61. android:textCursorDrawable="@null"
  62. android:textSize="@dimen/company_14sp" />
  63. <EditText
  64. android:id="@+id/edit_password"
  65. android:layout_width="match_parent"
  66. android:layout_height="@dimen/company_50dp"
  67. android:layout_marginTop="@dimen/company_20dp"
  68. android:background="@drawable/shapre_default_edit_bg"
  69. android:hint="请输入登陆密码"
  70. android:inputType="textPassword"
  71. android:maxLines="1"
  72. android:textCursorDrawable="@null"
  73. android:textSize="@dimen/company_14sp" />
  74. </LinearLayout>
  75. <Button
  76. android:id="@+id/btn_next"
  77. android:layout_width="match_parent"
  78. android:layout_height="@dimen/company_50dp"
  79. android:layout_marginTop="@dimen/company_20dp"
  80. android:background="@drawable/shape_default_btn_bg"
  81. android:layout_marginLeft="@dimen/default_content_margin"
  82. android:layout_marginRight="@dimen/default_content_margin"
  83. android:textColor="@color/white"
  84. android:textSize="@dimen/company_16sp"
  85. android:text="下一步"/>
  86. </LinearLayout>