Loading tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeContext.java +14 −3 Original line number Diff line number Diff line Loading @@ -259,7 +259,18 @@ public final class BridgeContext extends Context { // resolve the defStyleAttr value into a IStyleResourceValue IStyleResourceValue defStyleValues = null; if (defStyleAttr != 0) { // look for a custom style. String customStyle = parser.getAttributeValue(null /* namespace*/, "style"); if (customStyle != null) { IResourceValue item = findResValue(customStyle); if (item instanceof IStyleResourceValue) { defStyleValues = (IStyleResourceValue)item; } } if (defStyleValues == null && defStyleAttr != 0) { // get the name from the int. String defStyleName = searchAttr(defStyleAttr); Loading Loading
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeContext.java +14 −3 Original line number Diff line number Diff line Loading @@ -259,7 +259,18 @@ public final class BridgeContext extends Context { // resolve the defStyleAttr value into a IStyleResourceValue IStyleResourceValue defStyleValues = null; if (defStyleAttr != 0) { // look for a custom style. String customStyle = parser.getAttributeValue(null /* namespace*/, "style"); if (customStyle != null) { IResourceValue item = findResValue(customStyle); if (item instanceof IStyleResourceValue) { defStyleValues = (IStyleResourceValue)item; } } if (defStyleValues == null && defStyleAttr != 0) { // get the name from the int. String defStyleName = searchAttr(defStyleAttr); Loading