Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfe25b0e authored by Xavier Ducrohet's avatar Xavier Ducrohet Committed by Android (Google) Code Review
Browse files

Merge "LayoutLib: support for custom styles." into eclair

parents ccaebfc9 9ce3b775
Loading
Loading
Loading
Loading
+14 −3
Original line number Diff line number Diff line
@@ -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);