I was wondering why i am able to access `androidx....
# compose
r
I was wondering why i am able to access
androidx.compose.ui.platform.AndroidComposeView
inside xml, even though they are marked as internal in
platform
module. Why linter isn't throwing any error?
👀 1
e
Android inflates XML by using Java reflection which does not know anything about Kotlin's internal visibility. as far as the framework is concerned, those classes are public
r
Inflation happens when you call
LayouInflator.inflate
isn't it? And that when it creates a view tree in Java?
I mean, should be there be a linter for xml's which can look out for modifiers.