Libraryless. Click here for Pure Java version (952L/7K/24K).
1 | !752 |
2 | |
3 | import android.graphics.*; |
4 | |
5 | p { |
6 | S imageID = "#1001283"; // happy leo |
7 | int borderColor = -1; |
8 | |
9 | final LinearLayout ll = new LinearLayout(androidContext()); |
10 | ll.setOrientation(ll.VERTICAL); |
11 | |
12 | ImageView iv = new ImageView(androidContext()); |
13 | iv.setBackgroundColor(borderColor); |
14 | iv.setImageBitmap(BitmapFactory.decodeFile(loadLibrary(imageID).getPath())); |
15 | ll.addView(iv); |
16 | |
17 | androidUI(r{ |
18 | ScrollView sv = androidPrintLogScrollView(); |
19 | ((ViewGroup) sv.getParent()).removeView(sv); |
20 | ll.addView(sv); |
21 | androidShow(ll); |
22 | |
23 | thread "later" { |
24 | sleep(2000); |
25 | print("\nHere we are! :-))"); |
26 | } |
27 | }); |
28 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pnmttuucjkfb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005212 |
Snippet name: | Android: Test showing image and print log |
Eternal ID of this version: | #1005212/1 |
Text MD5: | 45f7680fcc8e1add7b7d4dda516c510f |
Transpilation MD5: | 0f4e67f02fcc101f3e76e673a89f6e1e |
Author: | stefan |
Category: | javax / android |
Type: | JavaX source code (Android) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-10-22 18:05:42 |
Source code size: | 664 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 506 / 593 |
Referenced in: | [show references] |