import android.graphics.*; static ImageView androidClickableImage(fS imageID, final int borderColor, fO onClick) { ret androidEvalInUIThread(func -> ImageView { ImageView iv = new ImageView(androidContext()); iv.setBackgroundColor(borderColor); aSetImageFromSnippet(iv, imageID); if (onClick != null) iv.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { pcallF(onClick); } }); ret iv; }); }