implement android.widget.ImageButton using GtkButton

This commit is contained in:
Julian Winkler
2023-08-22 13:53:52 +02:00
parent f2e71cd50f
commit f9a85017c1
5 changed files with 306 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ public class ImageView extends View {
@Override
protected native long native_constructor(Context context, AttributeSet attrs);
private native void native_setPixbuf(long pixbuf);
protected native void native_setPixbuf(long pixbuf);
public /*native*/ void setImageResource(final int resid) {
if (Context.this_application.getResources().getString(resid).endsWith(".xml"))