summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Deepanshu Gupta <deepanshu@google.com> 2015-07-08 12:47:46 -0700
committer Deepanshu Gupta <deepanshu@google.com> 2015-07-15 16:31:00 -0700
commit111dc04a28f0181bf429e5ded9024d3fdff7be50 (patch)
tree90f4ea372a58cc3a553c1892dd451b20a93e0a63
parent5d1654a9439f0ed81ecccecfacda34872270dfcb (diff)
Change tools:list_item to listitem.
The listitem is already in use for ListView. Reuse the same attribute for RecyclerView rather than creating a new one. Change-Id: I82aabe7d04fbe3e61645bc427a81c14c454d03c5
-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 661c08b98e81..0e3fd1f7fe70 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";
}