自传bg 删除
This commit is contained in:
parent
063a8bca04
commit
210f793709
|
|
@ -1,7 +1,6 @@
|
|||
package com.remax.visualnovel.ui.chat.setting.customui.expandableSelector
|
||||
|
||||
import android.animation.Animator
|
||||
import android.animation.AnimatorListenerAdapter
|
||||
import android.animation.ObjectAnimator
|
||||
import android.animation.ValueAnimator
|
||||
import android.content.Context
|
||||
|
|
@ -21,7 +20,7 @@ class ExpandAiModelSelectView @JvmOverloads constructor(
|
|||
context: Context,
|
||||
attrs: AttributeSet? = null,
|
||||
defStyleAttr: Int = 0
|
||||
) : android.widget.LinearLayout(context, attrs, defStyleAttr) {
|
||||
) : LinearLayout(context, attrs, defStyleAttr) {
|
||||
|
||||
private lateinit var mBinding: LayoutExpandSelectViewBinding
|
||||
|
||||
|
|
|
|||
|
|
@ -76,9 +76,13 @@ class ExpandBackgroundSubView @JvmOverloads constructor(
|
|||
}
|
||||
|
||||
onClick(R.id.iv_del) {
|
||||
// TODO - request delete method
|
||||
val chatBackground = getModel<ChatBackgroundBase.ChatBackground>()
|
||||
//itemsRv.bindingAdapter.
|
||||
val delItemIndex = items.indexOf(chatBackground)
|
||||
items.remove(chatBackground)
|
||||
if (delItemIndex >= 0) {
|
||||
itemsRv.bindingAdapter.models = items
|
||||
itemsRv.bindingAdapter.notifyItemRemoved(delItemIndex)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ package com.remax.visualnovel.ui.chat.setting.customui.expandableSelector
|
|||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import android.view.LayoutInflater
|
||||
import androidx.lifecycle.LifecycleOwner
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.drake.brv.annotaion.DividerOrientation
|
||||
import com.drake.brv.utils.bindingAdapter
|
||||
|
|
|
|||
Loading…
Reference in New Issue