Miha-x64 / Mikes_IDEA_extensions

IntelliJ IDEA: missing parts.
Apache License 2.0
34 stars 7 forks source link

Request: add more inspections in layout XML for removing layout configurations that aren't needed #47

Open AndroidDeveloperLB opened 1 year ago

AndroidDeveloperLB commented 1 year ago

Examples:

layout_centerHorizontal="true", layout_centerInParent="true" - one of them isn't needed

layout_width="match_parent", layout_centerHorizontal="true" - no need to center if it's all size. This is a bit problematic because in code the size might change, so maybe have this disabled by default, or a weak warning, or something.

And of course any layout configuration that doesn't belong to the parent. such as layout_centerHorizontal for a child of LinearLayout and many more. These happen when copy-pasting and when converting from one layout to another without noticing them.