https://kotlinlang.org logo
#android
Title
# android
f

francois

08/17/2016, 11:38 AM
the generated code seems to be faulty :
Copy code
itemIsWhenItemAndroi = (itemIsWhenItem) ? (getDrawableFromResource(R.drawable.transparent)) : (getDrawableFromResource(R.drawable.app_btn_background_material));
the error is that getDrawableFromResource expects 2 params : Error:(153, 60) error: method getDrawableFromResource in class ViewDataBinding cannot be applied to given types; required: View,int found: int reason: actual and formal argument lists differ in length