I noticed that the synthetic properties of Kotlin do not work in CustomViews. I do not know if it is intended or not. When reading the generated java class, I see that the cache is present:
private HashMap _$_findViewCache;
but never used. Instead, when a view is required, it is called findViewById. Is this the default behavior? Do synthetic properties only work on actions and fragments?
source
share