aboutsummaryrefslogtreecommitdiffstats
path: root/lint/libs/lint_checks/src/com
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-07-27 12:24:56 -0700
committerTor Norbye <tnorbye@google.com>2012-07-27 12:24:56 -0700
commit2a65086ed8cc1fdace4f98e0931893e5cdce171d (patch)
treea3e0c90b65a262fa63db0f05b48c2d28be2c4ff8 /lint/libs/lint_checks/src/com
parent3d1fd6f05a58463a8d56f7ba374240a093a061d0 (diff)
downloadsdk-2a65086ed8cc1fdace4f98e0931893e5cdce171d.zip
sdk-2a65086ed8cc1fdace4f98e0931893e5cdce171d.tar.gz
sdk-2a65086ed8cc1fdace4f98e0931893e5cdce171d.tar.bz2
26501: Handle padding between image and text
The visual refactoring for converting a LinearLayout with a <TextView> and an <ImageView> adjacent into a single <TextView> using a compound drawable, needed to properly handle spacing between the two widgets. This changeset updates it to convert margins between the views into a single drawablePadding attribute. Change-Id: Idb077e3324c279d41fdc0baa68008fe862d8181a
Diffstat (limited to 'lint/libs/lint_checks/src/com')
-rw-r--r--lint/libs/lint_checks/src/com/android/tools/lint/checks/UseCompoundDrawableDetector.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/lint/libs/lint_checks/src/com/android/tools/lint/checks/UseCompoundDrawableDetector.java b/lint/libs/lint_checks/src/com/android/tools/lint/checks/UseCompoundDrawableDetector.java
index 2a32af7..777c4ff 100644
--- a/lint/libs/lint_checks/src/com/android/tools/lint/checks/UseCompoundDrawableDetector.java
+++ b/lint/libs/lint_checks/src/com/android/tools/lint/checks/UseCompoundDrawableDetector.java
@@ -51,7 +51,8 @@ public class UseCompoundDrawableDetector extends LayoutDetector {
"Checks whether the current node can be replaced by a TextView using compound drawables.",
// TODO: OFFER MORE HELP!
"A LinearLayout which contains an ImageView and a TextView can be more efficiently " +
- "handled as a compound drawable.\n" +
+ "handled as a compound drawable. If the two widgets are offset from each other with " +
+ "margins, this can be replaced with a drawablePadding attribute.\n" +
"\n" +
"There's a lint quickfix to perform this conversion in the Eclipse plugin.",
Category.PERFORMANCE,