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
make BitmapDrawable functional
This commit is contained in:
@@ -1,5 +1,33 @@
|
||||
package android.graphics.drawable;
|
||||
|
||||
public class Drawable {
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Rect;
|
||||
|
||||
public abstract class Drawable {
|
||||
|
||||
private Rect mBounds = new Rect();
|
||||
|
||||
public int getChangingConfigurations() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void setChangingConfigurations(int bitmap) {}
|
||||
|
||||
public ConstantState getConstantState() {
|
||||
return new ConstantState();
|
||||
}
|
||||
|
||||
public class ConstantState {
|
||||
|
||||
}
|
||||
|
||||
public void setBounds(int left, int top, int right, int bottom) {
|
||||
mBounds.set(left, top, right, bottom);
|
||||
}
|
||||
|
||||
public final Rect getBounds() {
|
||||
return mBounds;
|
||||
}
|
||||
|
||||
public abstract void draw(Canvas canvas);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user