aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Prigogin <sprigogin@google.com>2018-05-07 14:38:41 -0700
committerSergey Prigogin <sprigogin@google.com>2018-05-07 14:38:41 -0700
commitcf6d4ec286fb25052e950eacb1c457b9fb1191fa (patch)
tree6ae960a13ae6d8bd7da86e05094bcebee768ec44
parentc5fabf71f9c33339856931bc41ce596f35543b7a (diff)
downloadlayoutlib-cf6d4ec286fb25052e950eacb1c457b9fb1191fa.tar.gz
More namespace support
Test: existing tests Bug: 36052362 Change-Id: I3f2c0829e5fb559864c7bf8532b81a1390f2934a
-rw-r--r--bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java22
1 files changed, 12 insertions, 10 deletions
diff --git a/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java b/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java
index 1ed13dfb97..9b7df4f921 100644
--- a/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java
+++ b/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java
@@ -120,22 +120,24 @@ public class BridgeContext extends Context {
private static final Map<String, ResourceValue> FRAMEWORK_REPLACE_VALUES = new HashMap<>(3);
static {
- FRAMEWORK_PATCHED_VALUES.put("animateFirstView", new ResourceValue(
- ResourceType.BOOL, "animateFirstView", "false", false));
+ FRAMEWORK_PATCHED_VALUES.put("animateFirstView",
+ new ResourceValue(ResourceNamespace.ANDROID, ResourceType.BOOL,
+ "animateFirstView", "false"));
FRAMEWORK_PATCHED_VALUES.put("animateLayoutChanges",
- new ResourceValue(ResourceType.BOOL, "animateLayoutChanges", "false", false));
+ new ResourceValue(ResourceNamespace.ANDROID, ResourceType.BOOL,
+ "animateLayoutChanges", "false"));
FRAMEWORK_REPLACE_VALUES.put("textEditSuggestionItemLayout",
- new ResourceValue(ResourceType.LAYOUT, "textEditSuggestionItemLayout",
- "text_edit_suggestion_item", true));
+ new ResourceValue(ResourceNamespace.ANDROID, ResourceType.LAYOUT,
+ "textEditSuggestionItemLayout", "text_edit_suggestion_item"));
FRAMEWORK_REPLACE_VALUES.put("textEditSuggestionContainerLayout",
- new ResourceValue(ResourceType.LAYOUT, "textEditSuggestionContainerLayout",
- "text_edit_suggestion_container", true));
+ new ResourceValue(ResourceNamespace.ANDROID, ResourceType.LAYOUT,
+ "textEditSuggestionContainerLayout", "text_edit_suggestion_container"));
FRAMEWORK_REPLACE_VALUES.put("textEditSuggestionHighlightStyle",
- new ResourceValue(ResourceType.STYLE, "textEditSuggestionHighlightStyle",
- "TextAppearance.Holo.SuggestionHighlight", true));
-
+ new ResourceValue(ResourceNamespace.ANDROID, ResourceType.STYLE,
+ "textEditSuggestionHighlightStyle",
+ "TextAppearance.Holo.SuggestionHighlight"));
}
/** The map adds cookies to each view so that IDE can link xml tags to views. */