StateView icon indicating copy to clipboard operation
StateView copied to clipboard

setOnRetryClickListener

Open hanshiyang opened this issue 1 year ago • 1 comments

stateView 压根就没与这个函数 setOnRetryClickListener 不知道你是怎么写的

hanshiyang avatar Apr 18 '24 08:04 hanshiyang

最新版源码:https://github.com/nukc/StateView/blob/kotlin/kotlin/src/main/java/com/github/nukc/stateview/StateView.kt#L47

Java Demo: https://github.com/nukc/StateView/blob/kotlin/app/src/main/java/com/github/nukc/sample/CustomActivity.java#L28

Kotlin:

       stateView.onRetryClickListener = object : StateView.OnRetryClickListener {
            override fun onRetryClick() {
                // do something
            }
        }

nukc avatar Apr 19 '24 01:04 nukc