1 | import android.graphics.*; |
2 | |
3 | static ImageView androidClickableImage(fS imageID, final int borderColor, fO onClick) { |
4 | ret androidEvalInUIThread(func -> ImageView { |
5 | ImageView iv = new ImageView(androidContext()); |
6 | iv.setBackgroundColor(borderColor); |
7 | aSetImageFromSnippet(iv, imageID); |
8 | if (onClick != null) |
9 | iv.setOnClickListener(new View.OnClickListener() { |
10 | public void onClick(View v) { |
11 | pcallF(onClick); |
12 | } |
13 | }); |
14 | ret iv; |
15 | }); |
16 | } |
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: | #1014877 |
Snippet name: | androidClickableImage |
Eternal ID of this version: | #1014877/5 |
Text MD5: | 85a766e276036f7ad2efe2dfcb3e35a4 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-06 10:09:42 |
Source code size: | 496 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 355 / 405 |
Version history: | 4 change(s) |
Referenced in: | [show references] |