From a14ec6f450eaff09b6800fc40616a00cf4899df8 Mon Sep 17 00:00:00 2001 From: Deepanshu Gupta Date: Wed, 8 Jul 2015 12:47:46 -0700 Subject: [PATCH] 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) --- .../bridge/src/com/android/layoutlib/bridge/BridgeConstants.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"; } -- 2.11.0