diff --git a/app/src/main/java/com/yizhuan/erban/avroom/adapter/DatingMicroViewAdapter.kt b/app/src/main/java/com/yizhuan/erban/avroom/adapter/DatingMicroViewAdapter.kt
index 8f2ace015..696929027 100644
--- a/app/src/main/java/com/yizhuan/erban/avroom/adapter/DatingMicroViewAdapter.kt
+++ b/app/src/main/java/com/yizhuan/erban/avroom/adapter/DatingMicroViewAdapter.kt
@@ -34,6 +34,15 @@ class DatingMicroViewAdapter(context: Context?) : BaseMicroViewAdapter(context)
*/
override fun bindToRecyclerView(recyclerView: RecyclerView) {
val layoutManager = GridLayoutManager(context, 4)
+ layoutManager.spanSizeLookup = object : GridLayoutManager.SpanSizeLookup() {
+ override fun getSpanSize(position: Int): Int {
+ return if (position == 0) {
+ 4
+ } else {
+ 1
+ }
+ }
+ }
layoutManager.orientation = LinearLayoutManager.VERTICAL
recyclerView.layoutManager = layoutManager
recyclerView.adapter = this
@@ -55,12 +64,12 @@ class DatingMicroViewAdapter(context: Context?) : BaseMicroViewAdapter(context)
override fun microType() = MICRO_TYPE_DATING
- private inner class DatingMicroViewHolder constructor(itemView: View) :GiftValueViewHolder(itemView) {
+ private inner class DatingMicroViewHolder constructor(itemView: View) : GiftValueViewHolder(itemView) {
private val viewGenderBg: View = itemView.findViewById(R.id.view_gender_bg)
private val tvSelectedStatus: TextView = itemView.findViewById(R.id.tv_selected_status)
private val ivCap: ImageView = itemView.findViewById(R.id.iv_cap)
- private val ivValue: ImageView = itemView.findViewById(R.id.iv_value_icon)
+ //private val ivValue: ImageView = itemView.findViewById(R.id.iv_value_icon)
@SuppressLint("SetTextI18n")
public override fun bind(info: RoomQueueInfo, position: Int) {
@@ -72,7 +81,7 @@ class DatingMicroViewAdapter(context: Context?) : BaseMicroViewAdapter(context)
if (roomMicInfo != null) {
viewGenderBg.setBackgroundResource(if (manMicro) R.drawable.shape_circle_micro_man_bg else R.drawable.shape_circle_micro_woman_bg)
tvSelectedStatus.setBackgroundResource(if (manMicro) R.drawable.selector_dating_select_man_bg else R.drawable.selector_dating_select_woman_bg)
- ivValue.setImageResource(if (manMicro) R.drawable.icon_gift_value_man else R.drawable.icon_gift_value)
+ //ivValue.setImageResource(if (manMicro) R.drawable.icon_gift_value_man else R.drawable.icon_gift_value)
}
info.mChatRoomMember?.let {
@@ -109,9 +118,10 @@ class DatingMicroViewAdapter(context: Context?) : BaseMicroViewAdapter(context)
}
- inner class DatingBossMicroViewHolder internal constructor(itemView: View) :BossMicroViewHolder(itemView) {
+ inner class DatingBossMicroViewHolder internal constructor(itemView: View) : BossMicroViewHolder(itemView) {
private val radioGroup: RadioGroup = itemView.findViewById(R.id.radio_group)
+
public override fun bind(info: RoomQueueInfo, position: Int) {
super.bind(info, position)
val roomInfo = AvRoomDataManager.get().mCurrentRoomInfo ?: return
diff --git a/app/src/main/res/layout/include_mic_charm_layout.xml b/app/src/main/res/layout/include_mic_charm_layout.xml
index 07ff1ce41..8c19d51b0 100644
--- a/app/src/main/res/layout/include_mic_charm_layout.xml
+++ b/app/src/main/res/layout/include_mic_charm_layout.xml
@@ -2,6 +2,7 @@
@@ -42,6 +43,7 @@
android:orientation="horizontal">
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_micro_dating.xml b/app/src/main/res/layout/item_micro_dating.xml
index 249aa2f3b..fd6a1a4be 100644
--- a/app/src/main/res/layout/item_micro_dating.xml
+++ b/app/src/main/res/layout/item_micro_dating.xml
@@ -1,5 +1,4 @@
-
-
@@ -110,7 +112,7 @@
app:layout_constraintTop_toBottomOf="@id/micro_layout">
-
-
-
-
-
-
-
+ app:layout_constraintStart_toStartOf="parent" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_micro_dating_boss.xml b/app/src/main/res/layout/item_micro_dating_boss.xml
index 6b0786601..da9ac0aed 100644
--- a/app/src/main/res/layout/item_micro_dating_boss.xml
+++ b/app/src/main/res/layout/item_micro_dating_boss.xml
@@ -21,7 +21,7 @@
android:layout_height="match_parent"
android:layout_gravity="center" />
-
@@ -96,7 +99,7 @@
-
+ app:layout_constraintTop_toBottomOf="@id/micro_layout">
-
+
+
+
+
+
+
+
+
-
+ android:orientation="horizontal"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/rl_nick">
+
+
+
+
+
+
+
+ app:layout_constraintTop_toBottomOf="@id/desc_layout">
-
+
-
+
+
+
+
+ android:layout_height="wrap_content">
-
+
-
+
+
+
+
+
+
+
+
-
-
-
+