Add new rules to layoutopt: UseCompoundDrawables and UselessLayout.
Change-Id: I5dfb2567d923da8442b1df1e703e4ebca6e9523b
This commit is contained in:
@@ -12,5 +12,6 @@
|
||||
if (xml.isRoot() && xml.is("FrameLayout") && !xml.'@android:background' &&
|
||||
!xml.'@android:foreground' && ((node.isWidthFillParent() &&
|
||||
node.isHeightFillParent()) || !xml.'@android:layout_gravity')) {
|
||||
analysis << [node: node, description: "The root-level <FrameLayout/> can be replaced with <merge/>"]
|
||||
analysis << [node: node, description: "The root-level <FrameLayout/> can be " +
|
||||
"replaced with <merge/>"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user