Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

28
LINES

< > BotCompany Repo | #1005212 // Android: Test showing image and print log

JavaX source code (Android) [tags: use-pretranspiled] - run with: the app

Libraryless. Click here for Pure Java version (952L/7K/24K).

!752

import android.graphics.*;

p {
  S imageID = "#1001283"; // happy leo
  int borderColor = -1;
  
  final LinearLayout ll = new LinearLayout(androidContext());
  ll.setOrientation(ll.VERTICAL);
  
  ImageView iv = new ImageView(androidContext());
  iv.setBackgroundColor(borderColor);
  iv.setImageBitmap(BitmapFactory.decodeFile(loadLibrary(imageID).getPath()));
  ll.addView(iv);
  
  androidUI(r{
    ScrollView sv = androidPrintLogScrollView();
    ((ViewGroup) sv.getParent()).removeView(sv);
    ll.addView(sv);
    androidShow(ll);
  
    thread "later" {
      sleep(2000);
      print("\nHere we are! :-))");
    }
  });
}

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: 410 / 462
Referenced in: [show references]