Add new rules to layoutopt: UseCompoundDrawables and UselessLayout.

Change-Id: I5dfb2567d923da8442b1df1e703e4ebca6e9523b
This commit is contained in:
Romain Guy
2009-10-05 11:58:09 -07:00
parent 06f70393bd
commit 5a31898020
9 changed files with 83 additions and 8 deletions

View File

@@ -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/>"]
}