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
api-impl: add stubs / simple stuff for OsmAnd
without native libs present, launches and renders white square in map view; with native libs present, segfaults in bundled skia
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
public abstract class CompoundButton extends Button implements Checkable {
|
||||
Drawable button_drawable = null;
|
||||
|
||||
public CompoundButton(Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
|
||||
public CompoundButton(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
@@ -41,4 +43,12 @@ public abstract class CompoundButton extends Button implements Checkable {
|
||||
public void setTextColor(int color) {}
|
||||
@Override
|
||||
public void setTextSize(float size) {}
|
||||
|
||||
public void setButtonDrawable(Drawable drawable) {
|
||||
button_drawable = drawable;
|
||||
}
|
||||
|
||||
public Drawable getButtonDrawable() {
|
||||
return button_drawable;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user