Layout Inflation without a Parent
Layout Inflation without a Parent
When inflating a layout, avoid passing in null as the parent view, since otherwise any layout parameters on the root of the inflated layout will be ignored.
Issue id: InflateParams
https://www.bignerdranch.com/blog/understanding-androids-layoutinflater-inflate/
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3 |
Plugin: | Android, 2022.3.1 Beta 2 |
Last modified: 13 July 2023