aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-11-29 16:18:19 -0800
committerTor Norbye <tnorbye@google.com>2012-11-29 16:20:40 -0800
commit4c2c7f656cc57c1f12d0efa1a753ab372b6b69de (patch)
tree7bdd01af267305330f3d0d3033699c149cfefee4 /eclipse/plugins/com.android.ide.eclipse.tests/src/com/android
parente36c788c93fc115415241e31d0d4ea2107aef19b (diff)
downloadsdk-4c2c7f656cc57c1f12d0efa1a753ab372b6b69de.zip
sdk-4c2c7f656cc57c1f12d0efa1a753ab372b6b69de.tar.gz
sdk-4c2c7f656cc57c1f12d0efa1a753ab372b6b69de.tar.bz2
Make inefficient weight detector identify more candidates
The inefficient weight detector looks for horizontal layouts with weights where all the children are layouts. It didn't have a very good heuristic for finding out whether all children are layouts; it just looked for whether the tag name contains "Layout". This changeset generalizes this a bit, adding other layouts, as well as <fragment> tags to the lint check. It also updates the Master/Detail template to set the baseline alignment attribute to false (to avoid triggering the updated lint check), as well as android:textIsSelectable to clear another recent new lint rule. Change-Id: I887962b5e29a9ad0c5b5c01970b0c66f884125d8
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.tests/src/com/android')
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/TemplateHandlerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/TemplateHandlerTest.java b/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/TemplateHandlerTest.java
index 80df145..2f43cf0 100644
--- a/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/TemplateHandlerTest.java
+++ b/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/templates/TemplateHandlerTest.java
@@ -180,11 +180,11 @@ public class TemplateHandlerTest extends SdkLoadingTestCase {
}
public void testNewFullscreen() throws Exception {
- checkCreateTemplate("activities", "Fullscreen");
+ checkCreateTemplate("activities", "FullscreenActivity");
}
public void testFullscreenInProject() throws Exception {
- checkCreateActivityInProject("Fullscreen");
+ checkCreateActivityInProject("FullscreenActivity");
}
public void testNewLoginActivity() throws Exception {