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:
Mis012
2024-04-12 18:32:30 +02:00
parent fefd2f108b
commit 2802aaa28d
42 changed files with 2171 additions and 77 deletions

View File

@@ -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;
}
}