chatMode ui调整油化
This commit is contained in:
parent
7dc63a9544
commit
4a072ac2ce
|
|
@ -89,6 +89,7 @@ class ChatSettingView @JvmOverloads constructor(
|
||||||
ChatMode(
|
ChatMode(
|
||||||
name = "Mode-2",
|
name = "Mode-2",
|
||||||
description = "aaaaaaaaaaaaaaaaaaa",
|
description = "aaaaaaaaaaaaaaaaaaa",
|
||||||
|
onlyVip = true
|
||||||
),
|
),
|
||||||
ChatMode(
|
ChatMode(
|
||||||
name = "Mode-3",
|
name = "Mode-3",
|
||||||
|
|
@ -97,6 +98,8 @@ class ChatSettingView @JvmOverloads constructor(
|
||||||
ChatMode(
|
ChatMode(
|
||||||
name = "Mode-4",
|
name = "Mode-4",
|
||||||
description = "Pppppppppppppppppppppp",
|
description = "Pppppppppppppppppppppp",
|
||||||
|
isSelected = true,
|
||||||
|
onlyVip = true
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.animation.AccelerateDecelerateInterpolator
|
import android.view.animation.AccelerateDecelerateInterpolator
|
||||||
import android.widget.LinearLayout
|
import android.widget.LinearLayout
|
||||||
|
import androidx.core.view.isVisible
|
||||||
import com.remax.visualnovel.R
|
import com.remax.visualnovel.R
|
||||||
import com.remax.visualnovel.databinding.LayoutExpandSelectViewBinding
|
import com.remax.visualnovel.databinding.LayoutExpandSelectViewBinding
|
||||||
import com.remax.visualnovel.databinding.LayoutItemChatModeBinding
|
import com.remax.visualnovel.databinding.LayoutItemChatModeBinding
|
||||||
|
|
@ -89,6 +90,8 @@ class ExpandChatModeSelectView @JvmOverloads constructor(
|
||||||
val binding = LayoutItemChatModeBinding.inflate(LayoutInflater.from(context), mBinding.itemsContainer, false)
|
val binding = LayoutItemChatModeBinding.inflate(LayoutInflater.from(context), mBinding.itemsContainer, false)
|
||||||
binding.itemName.text = item.name
|
binding.itemName.text = item.name
|
||||||
binding.modeDescription.text = item.description
|
binding.modeDescription.text = item.description
|
||||||
|
binding.ivSelectedIndi.setImageResource(if (item.isSelected) R.drawable.sound_item_selected else R.drawable.sound_item_unselected)
|
||||||
|
binding.ivVipDidi.isVisible = item.onlyVip
|
||||||
|
|
||||||
|
|
||||||
binding.root.setOnClickListener {
|
binding.root.setOnClickListener {
|
||||||
|
|
|
||||||
|
|
@ -5,15 +5,16 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="@dimen/dp_12" >
|
android:padding="@dimen/dp_12" >
|
||||||
|
|
||||||
<View
|
<ImageView
|
||||||
android:id="@+id/selectedDot"
|
android:id="@+id/iv_selected_indi"
|
||||||
android:layout_width="@dimen/dp_13"
|
android:layout_width="@dimen/dp_13"
|
||||||
android:layout_height="@dimen/dp_13"
|
android:layout_height="@dimen/dp_13"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:background="@drawable/circle_selected"
|
android:src="@drawable/sound_item_unselected"
|
||||||
android:visibility="visible"/>
|
android:visibility="visible"/>
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|
@ -39,6 +40,7 @@
|
||||||
android:textColor="@color/gray3"/>
|
android:textColor="@color/gray3"/>
|
||||||
|
|
||||||
<com.remax.visualnovel.widget.uitoken.view.UITokenImageView
|
<com.remax.visualnovel.widget.uitoken.view.UITokenImageView
|
||||||
|
android:id="@+id/iv_vip_didi"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@mipmap/chat_vip_str"
|
android:src="@mipmap/chat_vip_str"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue