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()) }); }
Began life as a copy of #1008231
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008233 |
Snippet name: | aButton - make Android Button |
Eternal ID of this version: | #1008233/6 |
Text MD5: | 7ffb0d6d21edf2d6b0ab2ffc99847750 |
Author: | stefan |
Category: | javax / android |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-06-06 14:08:43 |
Source code size: | 663 bytes / 30 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 596 / 637 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014894 - aImageButton - make Android image button |