am dfe25b0e: Merge "LayoutLib: support for custom styles." into eclair
Merge commit 'dfe25b0e0c382d04a59bb03c7f5f8689ece5395e' into eclair-plus-aosp * commit 'dfe25b0e0c382d04a59bb03c7f5f8689ece5395e': LayoutLib: support for custom styles.
This commit is contained in:
@@ -259,7 +259,18 @@ public final class BridgeContext extends Context {
|
|||||||
|
|
||||||
// resolve the defStyleAttr value into a IStyleResourceValue
|
// resolve the defStyleAttr value into a IStyleResourceValue
|
||||||
IStyleResourceValue defStyleValues = null;
|
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.
|
// get the name from the int.
|
||||||
String defStyleName = searchAttr(defStyleAttr);
|
String defStyleName = searchAttr(defStyleAttr);
|
||||||
|
|
||||||
@@ -1104,7 +1115,7 @@ public final class BridgeContext extends Context {
|
|||||||
Bundle initialExtras) {
|
Bundle initialExtras) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setTheme(int arg0) {
|
public void setTheme(int arg0) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
@@ -1137,7 +1148,7 @@ public final class BridgeContext extends Context {
|
|||||||
throws IntentSender.SendIntentException {
|
throws IntentSender.SendIntentException {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean startInstrumentation(ComponentName arg0, String arg1,
|
public boolean startInstrumentation(ComponentName arg0, String arg1,
|
||||||
Bundle arg2) {
|
Bundle arg2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user