summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib
diff options
context:
space:
mode:
authorDeepanshu Gupta <deepanshu@google.com>2015-07-08 12:47:46 -0700
committerDeepanshu Gupta <deepanshu@google.com>2015-08-25 12:06:51 -0700
commita14ec6f450eaff09b6800fc40616a00cf4899df8 (patch)
tree6a7a8f881b9cd6298ef3c7432b812f50a3fb331c /tools/layoutlib
parentb1e21330f82ec0940658b16dfe7e14e8da8c5d33 (diff)
downloadframeworks_base-a14ec6f450eaff09b6800fc40616a00cf4899df8.zip
frameworks_base-a14ec6f450eaff09b6800fc40616a00cf4899df8.tar.gz
frameworks_base-a14ec6f450eaff09b6800fc40616a00cf4899df8.tar.bz2
Change tools:list_item to listitem. [DO NOT MERGE]
The listitem is already in use for ListView. Reuse the same attribute for RecyclerView rather than creating a new one. Change-Id: I82aabe7d04fbe3e61645bc427a81c14c454d03c5 (cherry picked from commit 111dc04a28f0181bf429e5ded9024d3fdff7be50)
Diffstat (limited to 'tools/layoutlib')
-rw-r--r--tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeConstants.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeConstants.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeConstants.java
index 661c08b..0e3fd1f 100644
--- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeConstants.java
+++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeConstants.java
@@ -50,6 +50,8 @@ public class BridgeConstants {
public final static String FILL_PARENT = "fill_parent";
public final static String WRAP_CONTENT = "wrap_content";
+ // Should be kept in sync with LayoutMetadata.KEY_LV_ITEM in tools/adt/idea
/** Attribute in the tools namespace used to specify layout manager for RecyclerView. */
- public static final String ATTR_LIST_ITEM = "list_item";
+ @SuppressWarnings("SpellCheckingInspection")
+ public static final String ATTR_LIST_ITEM = "listitem";
}