import android.app.*; import android.widget.*; import android.view.*; import android.graphics.*; static ImageButton aImageButton(fS imageID, fO action) { ret androidUI(func -> ImageButton { ImageButton b = new(androidActivity()); b.setImageBitmap(BitmapFactory.decodeFile(f2s(loadLibrary(imageID)))); if (action != null) b.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { pcallF(action); } }); ret b; }); } static Button aImageButton(S imageID) { ret aImageButton(imageID, null); }