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

10
LINES

< > BotCompany Repo | #1023259 // aTextViewWithWindowFocusChangeNotify

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (1975L) is out of date.

static TextView aTextViewWithWindowFocusChangeNotify(final VF1<Bool> daListener) {
  ret androidUI(func -> TextView {
    ret new TextView(androidActivity()) {
      public void onWindowFocusChanged(bool b) {
        super.onWindowFocusChanged(b);
        pcallF(daListener, (Bool) b);
      }
    };
  });
}

Author comment

Began life as a copy of #1008231

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023259
Snippet name: aTextViewWithWindowFocusChangeNotify
Eternal ID of this version: #1023259/7
Text MD5: 8f7f5db429c491a30b044762ae6bad7c
Author: stefan
Category: javax / android
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-20 19:00:39
Source code size: 317 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 270 / 367
Version history: 6 change(s)
Referenced in: [show references]