2023-08-17 10:46:24 +02:00
|
|
|
package android.widget;
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
import android.util.AttributeSet;
|
|
|
|
|
|
|
|
|
|
public class ImageButton extends ImageView {
|
|
|
|
|
|
|
|
|
|
public ImageButton(Context context) {
|
|
|
|
|
super(context);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ImageButton(Context context, AttributeSet attributeSet) {
|
|
|
|
|
super(context, attributeSet);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ImageButton(Context context, AttributeSet attributeSet, int defStyleAttr) {
|
|
|
|
|
super(context, attributeSet, defStyleAttr);
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-22 13:53:52 +02:00
|
|
|
@Override
|
|
|
|
|
protected native long native_constructor(Context context, AttributeSet attrs);
|
|
|
|
|
@Override
|
|
|
|
|
protected native void native_setPixbuf(long pixbuf);
|
2024-03-24 16:55:04 +01:00
|
|
|
@Override
|
|
|
|
|
protected native void native_setDrawable(long widget, long paintable);
|
2023-08-22 13:53:52 +02:00
|
|
|
protected native void native_setOnClickListener(long widget, OnClickListener l);
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void setOnClickListener(final OnClickListener l) {
|
|
|
|
|
native_setOnClickListener(widget, l);
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-17 10:46:24 +02:00
|
|
|
}
|