import android.app.*; import android.widget.Button; import android.view.*; import android.view.KeyEvent; import android.view.inputmethod.*; import android.text.*; static Button aButton(S text, final Runnable action) { final Button b = aButton(text); if (action != null) b.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { temp holdInstance(b); pcallF(action); } }); ret b; } static Button aButton(S text) { Button b = aButton(); b.setText(text); ret b; } static Button aButton() { ret androidUI(func -> Button { new Button(androidActivity()) }); }