Kotlin shintethic compatible with several API versions
I have two different layouts for different API versions. Specifically for compatibility of the TextInputLayout (password feature) in API 21 and other for higher versions. My layouts are:
layout/define_password.xml
layout-v21/define_password.xml
As you can see, I share the same ids for both XML files. The problem comes when I try to use this views in the actual code.
To use synthetic in Kotlin...