InspectRadioButton

class InspectRadioButton(context: Context, attrs: AttributeSet?) : AppCompatRadioButton

可以在RadioButton点击后判断是否拦截, 如果拦截则不会产生切换效果

Constructors

InspectRadioButton
Link copied to clipboard
fun InspectRadioButton(context: Context, attrs: AttributeSet? = null)

Types

Interceptor
Link copied to clipboard
interface Interceptor
切换状态前拦截点击事件

Functions

setInterceptor
Link copied to clipboard
fun setInterceptor(listener: InspectRadioButton.Interceptor)
拦截器
toggle
Link copied to clipboard
open override fun toggle()