States: XML vs. Kotlin

Report a typo

Match the XML state selector to its Kotlin counterpart.

Match the items from left and right columns
android:state_checked="true" android:state_enabled="true"
android:state_checked="true" android:state_enabled="false"
android:state_checked="false" android:state_enabled="false"
intArrayOf( android.R.attr.state_checked, android.R.attr.state_enabled)
intArrayOf( android.R.attr.state_checked, -android.R.attr.state_enabled)
intArrayOf( -android.R.attr.state_checked, -android.R.attr.state_enabled)
intArrayOf()
___

Create a free account to access the full topic