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
implement android.widget.ImageButton using GtkButton
This commit is contained in:
@@ -17,4 +17,15 @@ public class ImageButton extends ImageView {
|
||||
super(context, attributeSet, defStyleAttr);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected native long native_constructor(Context context, AttributeSet attrs);
|
||||
@Override
|
||||
protected native void native_setPixbuf(long pixbuf);
|
||||
protected native void native_setOnClickListener(long widget, OnClickListener l);
|
||||
|
||||
@Override
|
||||
public void setOnClickListener(final OnClickListener l) {
|
||||
native_setOnClickListener(widget, l);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user