You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
add lots of java APIs needed for Whatsapp
This commit is contained in:
@@ -211,7 +211,9 @@ public class Drawable {
|
||||
drawable.inflate(resources, parser, attrs, null);
|
||||
return drawable;
|
||||
} else if ("layer-list".equals(parser.getName())) {
|
||||
return new LayerDrawable();
|
||||
LayerDrawable drawable = new LayerDrawable();
|
||||
drawable.inflate(resources, parser, attrs);
|
||||
return drawable;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -8,6 +8,10 @@ public class InsetDrawable extends Drawable {
|
||||
super();
|
||||
}
|
||||
|
||||
public InsetDrawable(Drawable drawable, int inset) {
|
||||
super();
|
||||
}
|
||||
|
||||
public boolean getPadding(Rect padding) { return false; }
|
||||
|
||||
}
|
||||
|
||||
@@ -162,7 +162,8 @@ public class LayerDrawable extends Drawable implements Drawable.Callback {
|
||||
dr = Drawable.createFromXmlInner(r, parser, attrs);
|
||||
}
|
||||
|
||||
addLayer(dr, id, left, top, right, bottom);
|
||||
if (dr != null)
|
||||
addLayer(dr, id, left, top, right, bottom);
|
||||
}
|
||||
|
||||
ensurePadding();
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package android.graphics.drawable.shapes;
|
||||
|
||||
import android.graphics.RectF;
|
||||
|
||||
public class RoundRectShape extends Shape {
|
||||
|
||||
public RoundRectShape(float[] outerR, RectF innerR, float[] cornR) {}
|
||||
}
|
||||
Reference in New Issue
Block a user