activity_edit_bank_card.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto">
  4. <data>
  5. <variable
  6. name="clickListener"
  7. type="android.view.View.OnClickListener" />
  8. </data>
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:background="#F2F2F2"
  13. android:orientation="vertical">
  14. <include
  15. android:id="@+id/include_title"
  16. layout="@layout/include_title_bar"
  17. app:clickListener="@{clickListener}" />
  18. <LinearLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="44dp"
  21. android:layout_marginTop="5dp"
  22. android:background="@color/picture_color_white"
  23. android:gravity="center_vertical"
  24. android:paddingLeft="15dp"
  25. android:paddingRight="34dp">
  26. <TextView
  27. android:layout_width="0dp"
  28. android:layout_weight="1"
  29. android:layout_height="wrap_content"
  30. android:text="持卡人"
  31. android:textColor="#000000"
  32. android:textSize="15sp" />
  33. <androidx.appcompat.widget.AppCompatEditText
  34. android:id="@+id/input_user_name"
  35. android:layout_width="wrap_content"
  36. android:layout_height="match_parent"
  37. android:gravity="center"
  38. android:textSize="12sp"
  39. android:background="@null"
  40. android:hint="填写持卡人姓名"/>
  41. </LinearLayout>
  42. <LinearLayout
  43. android:id="@+id/select_bank"
  44. android:onClick="@{clickListener}"
  45. android:layout_width="match_parent"
  46. android:layout_height="44dp"
  47. android:layout_marginTop="5dp"
  48. android:background="@color/picture_color_white"
  49. android:gravity="center_vertical"
  50. android:paddingLeft="15dp"
  51. android:paddingRight="5dp">
  52. <TextView
  53. android:layout_width="0dp"
  54. android:layout_weight="1"
  55. android:layout_height="wrap_content"
  56. android:text="银行"
  57. android:textColor="#000000"
  58. android:textSize="14sp" />
  59. <TextView
  60. android:id="@+id/bank"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:textColor="#808080"
  64. android:textSize="12sp"
  65. android:layout_marginRight="10dp"
  66. android:text="选择银行"/>
  67. <androidx.appcompat.widget.AppCompatImageView
  68. android:layout_width="25dp"
  69. android:layout_height="15dp"
  70. android:src="@mipmap/next_black_img"/>
  71. </LinearLayout>
  72. <LinearLayout
  73. android:layout_width="match_parent"
  74. android:layout_height="44dp"
  75. android:layout_marginTop="1dp"
  76. android:background="@color/picture_color_white"
  77. android:gravity="center_vertical"
  78. android:paddingLeft="15dp"
  79. android:paddingRight="34dp">
  80. <TextView
  81. android:layout_width="0dp"
  82. android:layout_weight="1"
  83. android:layout_height="wrap_content"
  84. android:text="银行卡号"
  85. android:textColor="#000000"
  86. android:textSize="14sp" />
  87. <androidx.appcompat.widget.AppCompatEditText
  88. android:id="@+id/input_bank_card_num"
  89. android:inputType="number"
  90. android:layout_width="wrap_content"
  91. android:layout_height="match_parent"
  92. android:gravity="center"
  93. android:textSize="12sp"
  94. android:background="@null"
  95. android:hint="填写银行卡号"/>
  96. </LinearLayout>
  97. <TextView
  98. android:id="@+id/confirm_button"
  99. android:onClick="@{clickListener}"
  100. android:layout_width="match_parent"
  101. android:layout_height="49dp"
  102. android:gravity="center"
  103. android:textSize="16sp"
  104. android:textColor="#FFFFFF"
  105. android:background="@drawable/bg_finish_button"
  106. android:layout_marginLeft="15dp"
  107. android:layout_marginRight="15dp"
  108. android:layout_marginTop="200dp"
  109. android:text="确认"/>
  110. </LinearLayout>
  111. </layout>