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

20
LINES

< > BotCompany Repo | #1001281 // androidShowFullScreenImage

JavaX fragment (include)

import android.app.Activity;
import android.widget.*;
import android.graphics.*;

  static void androidShowFullScreenImage(final S imageID) {
    thread "showimg" {
      ImageView iv = new ImageView(androidContext());
      iv.setImageBitmap(BitmapFactory.decodeFile(loadLibrary(imageID).getPath()));
      androidShow(iv);
    }
  }
  
  static void androidShowFullScreenImage(final S imageID, final int borderColor) {
    thread "showimg" {
      ImageView iv = new ImageView(androidContext());
      iv.setBackgroundColor(borderColor);
      iv.setImageBitmap(BitmapFactory.decodeFile(loadLibrary(imageID).getPath()));
      androidShow(iv);
    }
  }

Author comment

Began life as a copy of #1000419

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: #1001281
Snippet name: androidShowFullScreenImage
Eternal ID of this version: #1001281/1
Text MD5: e407af16b56624fc7074ffa1ccfc1533
Author: stefan
Category: javax android
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-16 16:38:37
Source code size: 676 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 588 / 849
Referenced in: #1001291 - androidShowFullScreenColor
#1002427 - Accellerating 629 (SPIKE)
#1004467 - androidShowText
#1005198 - androidShowClickableImage - show clickable full-screen image
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)