Mismatched Styleable/Custom View Name
Mismatched Styleable/Custom View Name
The convention for custom views is to use a declare-styleable
whose name matches the custom view class name. The IDE relies on this convention such that for example code completion can be offered for attributes in a custom view in layout XML resource files.
(Similarly, layout parameter classes should use the suffix _Layout
.)
Issue id: CustomViewStyleable
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