OSDN Git Service

Change tools:list_item to listitem. [DO NOT MERGE]
authorDeepanshu Gupta <deepanshu@google.com>
Wed, 8 Jul 2015 19:47:46 +0000 (12:47 -0700)
committerDeepanshu Gupta <deepanshu@google.com>
Tue, 25 Aug 2015 19:06:51 +0000 (12:06 -0700)
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)

tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeConstants.java

index 661c08b..0e3fd1f 100644 (file)
@@ -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";
 }