x7_shock_hint_flaoting_view.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="wrap_content"
  4. android:layout_height="wrap_content"
  5. android:background="@drawable/x7_corner_8_solid_transparent"
  6. android:minWidth="360dp"
  7. android:padding="16dp">
  8. <ImageView
  9. android:id="@+id/iv_shock"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:src="@drawable/x7_phone_shock" />
  13. <TextView
  14. android:id="@+id/tv_hint"
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:layout_below="@id/iv_shock"
  18. android:layout_centerHorizontal="true"
  19. android:layout_marginTop="10dp"
  20. android:text="@string/x7_shock_hint"
  21. android:textColor="@color/x7_green_12cdb0" />
  22. <CheckBox
  23. android:id="@+id/ck_hint"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_below="@id/tv_hint"
  27. android:layout_centerHorizontal="true"
  28. android:layout_marginTop="8dp"
  29. android:button="@drawable/x7_selection_for_agreement"
  30. android:drawablePadding="18dp"
  31. android:text=" 不再显示此提示"
  32. android:textColor="@color/x7_white"
  33. android:textSize="10dp" />
  34. <LinearLayout
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:layout_below="@id/ck_hint"
  38. android:layout_centerHorizontal="true"
  39. android:layout_marginTop="16dp"
  40. android:orientation="horizontal">
  41. <Button
  42. android:id="@+id/btn_cancel"
  43. style="@style/X7BtnClickStyleNew"
  44. android:layout_width="80dp"
  45. android:layout_height="36dp"
  46. android:text="@string/x7_cancel" />
  47. <Button
  48. android:id="@+id/btn_sure"
  49. android:layout_width="80dp"
  50. android:layout_height="36dp"
  51. android:layout_marginLeft="20dp"
  52. android:background="@drawable/x7_corner_7_solid_orange"
  53. android:text="@string/x7_sure"
  54. android:textColor="@color/x7_white"
  55. android:textSize="16dp" />
  56. </LinearLayout>
  57. </RelativeLayout>