StateView icon indicating copy to clipboard operation
StateView copied to clipboard

:sparkles: StateView is an invisible, zero-sized View that can be used to lazily inflate loadingView/emptyView/retryView/anyView at runtime.

Results 3 StateView issues
Sort by recently updated
recently updated
newest added

kotlin.TypeCastException: null cannot be cast to non-null type android.view.ViewGroup at com.github.nukc.stateview.StateView.showView(StateView.kt:155) at com.github.nukc.stateview.StateView.showEmpty(StateView.kt:123) Occurs when retryView is set

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

```kotlin @JvmStatic fun wrap(view: View): StateView { val parent = view.parent if (parent is ViewGroup) { ... val wrap = FrameLayout(view.context) // 似乎应该处理 index parent.addView(wrap, view.layoutParams) ... return stateView }...