fragment_login.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. xmlns:tools="http://schemas.android.com/tools"
  5. android:id="@+id/main"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context=".view.activity.LoginActivity">
  9. <ImageView
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:background="@mipmap/main_bg" />
  13. <androidx.recyclerview.widget.RecyclerView
  14. android:id="@+id/rv_type"
  15. style="@style/CommonRecyclerView"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_centerInParent="true"
  19. android:orientation="horizontal" />
  20. <TextView
  21. android:id="@+id/main_title"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:layout_centerHorizontal="true"
  25. android:layout_marginLeft="40dp"
  26. android:layout_marginTop="100dp"
  27. android:layout_marginRight="40dp"
  28. android:gravity="center"
  29. android:text="@string/loto"
  30. android:textColor="@color/white"
  31. android:textSize="46sp" />
  32. <com.grkj.iscs_mars.view.widget.CommonBtn
  33. android:id="@+id/cb_motor"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_above="@+id/login_tip"
  37. android:layout_centerHorizontal="true"
  38. android:layout_marginVertical="@dimen/common_spacing"
  39. android:visibility="gone"
  40. app:btn_bg="@drawable/common_btn_blue_bg"
  41. app:btn_name="@string/motor_map" />
  42. <TextView
  43. android:id="@+id/login_tip"
  44. style="@style/CommonTextView"
  45. android:layout_above="@+id/copyright"
  46. android:layout_centerHorizontal="true"
  47. android:layout_marginBottom="40dp"
  48. android:paddingLeft="20dp"
  49. android:paddingRight="20dp"
  50. android:text="@string/login_method_tip"
  51. android:textSize="20sp" />
  52. <TextView
  53. android:id="@+id/copyright"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:layout_alignParentBottom="true"
  57. android:layout_centerHorizontal="true"
  58. android:layout_marginBottom="@dimen/page_padding"
  59. android:text="@string/copyright"
  60. android:textColor="@color/white"
  61. android:textSize="18sp" />
  62. <TextView
  63. android:id="@+id/tv_version"
  64. style="@style/CommonTextView"
  65. android:layout_alignParentRight="true"
  66. android:padding="@dimen/page_padding"
  67. android:textSize="14sp" />
  68. </RelativeLayout>