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