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.

1  
static TextView aTextViewWithWindowFocusChangeNotify(final VF1<Bool> daListener) {
2  
  ret androidUI(func -> TextView {
3  
    ret new TextView(androidActivity()) {
4  
      public void onWindowFocusChanged(bool b) {
5  
        super.onWindowFocusChanged(b);
6  
        pcallF(daListener, (Bool) b);
7  
      }
8  
    };
9  
  });
10  
}

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: 209 / 286
Version history: 6 change(s)
Referenced in: [show references]