jm_float_view.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="wrap_content"
  5. android:layout_height="56dp">
  6. <LinearLayout
  7. android:id="@+id/ll_menu"
  8. android:layout_width="match_parent"
  9. android:layout_height="56dp"
  10. android:background="@drawable/jmfloat_bg"
  11. android:gravity="center"
  12. android:orientation="horizontal"
  13. android:paddingLeft="56dp"
  14. android:paddingRight="12dp"
  15. android:visibility="gone"
  16. tools:visibility="visible">
  17. <FrameLayout
  18. android:id="@+id/tv_account"
  19. android:layout_width="45dp"
  20. android:layout_height="45dp"
  21. android:layout_marginTop="2dp">
  22. <LinearLayout
  23. android:layout_width="45dp"
  24. android:layout_height="45dp"
  25. android:gravity="center"
  26. android:orientation="vertical">
  27. <ImageView
  28. android:layout_width="@dimen/jm_float_icon_size"
  29. android:layout_height="@dimen/jm_float_icon_size"
  30. android:src="@drawable/jm_float_user" />
  31. <TextView
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="@string/float_user_msg"
  35. android:textColor="@color/jmfont_blues"
  36. android:textSize="12sp" />
  37. </LinearLayout>
  38. <ImageView
  39. android:id="@+id/account_tip"
  40. android:layout_width="@dimen/jm_float_tip_size"
  41. android:layout_height="@dimen/jm_float_tip_size"
  42. android:layout_gravity="end"
  43. android:layout_marginRight="10dp"
  44. android:src="@drawable/jm_message_tip"
  45. android:visibility="gone" />
  46. </FrameLayout>
  47. <ImageView
  48. android:id="@+id/tv_gift_line"
  49. android:layout_width="2dp"
  50. android:layout_height="35dp"
  51. android:src="@drawable/jm_interval" />
  52. <FrameLayout
  53. android:id="@+id/tv_gift"
  54. android:layout_width="45dp"
  55. android:layout_height="45dp"
  56. android:layout_marginTop="2dp">
  57. <LinearLayout
  58. android:layout_width="45dp"
  59. android:layout_height="45dp"
  60. android:gravity="center"
  61. android:orientation="vertical">
  62. <ImageView
  63. android:layout_width="@dimen/jm_float_icon_size"
  64. android:layout_height="@dimen/jm_float_icon_size"
  65. android:src="@drawable/jm_float_gift" />
  66. <TextView
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:text="@string/float_gift"
  70. android:textColor="@color/jmfont_blues"
  71. android:textSize="12sp" />
  72. </LinearLayout>
  73. <ImageView
  74. android:id="@+id/gift_tip"
  75. android:layout_width="@dimen/jm_float_tip_size"
  76. android:layout_height="@dimen/jm_float_tip_size"
  77. android:layout_gravity="end"
  78. android:layout_marginRight="10dp"
  79. android:src="@drawable/jm_message_tip"
  80. android:visibility="gone" />
  81. </FrameLayout>
  82. <ImageView
  83. android:id="@+id/tv_kefu_line"
  84. android:layout_width="2dp"
  85. android:layout_height="35dp"
  86. android:src="@drawable/jm_interval" />
  87. <LinearLayout
  88. android:id="@+id/tv_kefu"
  89. android:layout_width="45dp"
  90. android:layout_height="45dp"
  91. android:layout_marginTop="2dp"
  92. android:gravity="center"
  93. android:orientation="vertical">
  94. <ImageView
  95. android:layout_width="@dimen/jm_float_icon_size"
  96. android:layout_height="@dimen/jm_float_icon_size"
  97. android:src="@drawable/jm_float_service" />
  98. <TextView
  99. android:layout_width="wrap_content"
  100. android:layout_height="wrap_content"
  101. android:text="@string/float_kefu_msg"
  102. android:textColor="@color/jmfont_blues"
  103. android:textSize="12sp" />
  104. </LinearLayout>
  105. </LinearLayout>
  106. <FrameLayout
  107. android:id="@+id/float_view"
  108. android:layout_width="30dp"
  109. android:layout_height="56dp"
  110. android:padding="2dp"
  111. tools:visibility="gone">
  112. <ImageView
  113. android:id="@+id/float_view_icon_imageView"
  114. android:layout_width="match_parent"
  115. android:layout_height="52dp"
  116. android:layout_gravity="start|center_vertical"
  117. android:scaleType="fitStart"
  118. android:src="@drawable/jm_float" />
  119. <ImageView
  120. android:id="@+id/icon_tip"
  121. android:layout_width="@dimen/jm_float_tip_size"
  122. android:layout_height="@dimen/jm_float_tip_size"
  123. android:layout_gravity="end"
  124. android:layout_marginTop="2dp"
  125. android:layout_marginRight="2dp"
  126. android:src="@drawable/jm_message_tip"
  127. android:visibility="gone"/>
  128. </FrameLayout>
  129. </FrameLayout>