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

9
LINES

< > BotCompany Repo | #1014857 // Try getting current content view [Android]

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

Libraryless. Click here for Pure Java version (1056L/7K/26K).

!7

p {
  TextView tv = aTextView("Hello world");
  androidShow(tv);
  View view = androidActivity().findViewById(android.R.id.content);
  if (view == tv) aSetText(tv, "OK!");
  else aSetText(tv, "Huh? " + view);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, nbgitpuheiab, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

1 comment(s) hidden. show

Snippet ID: #1014857
Snippet name: Try getting current content view [Android]
Eternal ID of this version: #1014857/5
Text MD5: 313584867630c94f286b29c85a5ea90c
Transpilation MD5: 4895dc1b29fafbbe640db5e7c3108bd3
Author: stefan
Category: javax / android
Type: JavaX source code (Android)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-05 15:50:41
Source code size: 222 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 642 / 759
Version history: 4 change(s)
Referenced in: [show references]