Fix the layoutlib to still support fill_parent.

Change-Id: I5e1825f1f853cf9e31b2ee262edce636a030429d
This commit is contained in:
Xavier Ducrohet
2010-02-23 19:43:04 -08:00
parent 2e1818a4d1
commit bc3323bea6
2 changed files with 6 additions and 2 deletions

View File

@@ -927,6 +927,7 @@ public final class BridgeContext extends Context {
return null;
}
@Override
public File getExternalCacheDir() {
// TODO Auto-generated method stub
return null;
@@ -964,6 +965,7 @@ public final class BridgeContext extends Context {
return null;
}
@Override
public File getExternalFilesDir(String type) {
// TODO Auto-generated method stub
return null;

View File

@@ -392,7 +392,8 @@ public final class BridgeTypedArray extends TypedArray {
if (s == null) {
return defValue;
} else if (s.equals(BridgeConstants.MATCH_PARENT)) {
} else if (s.equals(BridgeConstants.MATCH_PARENT) ||
s.equals(BridgeConstants.FILL_PARENT)) {
return LayoutParams.MATCH_PARENT;
} else if (s.equals(BridgeConstants.WRAP_CONTENT)) {
return LayoutParams.WRAP_CONTENT;
@@ -460,7 +461,8 @@ public final class BridgeTypedArray extends TypedArray {
if (s == null) {
return defValue;
} else if (s.equals(BridgeConstants.MATCH_PARENT)) {
} else if (s.equals(BridgeConstants.MATCH_PARENT) ||
s.equals(BridgeConstants.FILL_PARENT)) {
return LayoutParams.MATCH_PARENT;
} else if (s.equals(BridgeConstants.WRAP_CONTENT)) {
return LayoutParams.WRAP_CONTENT;