右上角click问题 解决
This commit is contained in:
parent
a237f7f5ac
commit
c2b41a5309
|
|
@ -95,7 +95,7 @@ class TaskManager private constructor() {
|
|||
registerEvents()
|
||||
|
||||
// TODO - remove test code
|
||||
if (true) {
|
||||
if (false) {
|
||||
mDailySignTaskHelper.generateTestDailySignTestBean()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import android.content.res.ColorStateList
|
|||
import android.util.AttributeSet
|
||||
import android.view.Gravity
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.widget.FrameLayout
|
||||
import android.widget.LinearLayout
|
||||
import androidx.appcompat.widget.AppCompatImageView
|
||||
|
|
@ -95,7 +96,7 @@ class CustomTitleBar @JvmOverloads constructor(
|
|||
layoutParam.gravity = Gravity.CENTER_VERTICAL
|
||||
|
||||
newImageView.isClickable = true
|
||||
newImageView.setOnClickListener { onClicked }
|
||||
newImageView.setOnClickListener { onClicked.invoke() }
|
||||
|
||||
mBinding.llRightRoot.addView(newImageView, layoutParam)
|
||||
}
|
||||
|
|
@ -108,7 +109,7 @@ class CustomTitleBar @JvmOverloads constructor(
|
|||
layoutParam.marginEnd = 15.dp
|
||||
layoutParam.gravity = Gravity.CENTER_VERTICAL
|
||||
newTextView.isClickable = true
|
||||
newTextView.setOnClickListener { onClicked }
|
||||
newTextView.setOnClickListener { onClicked.invoke() }
|
||||
|
||||
mBinding.llRightRoot.addView(newTextView, layoutParam)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue