Libraryless. Click here for Pure Java version (1799L/12K/44K).
!7 import android.widget.*; import android.view.*; set flag AndroidOnly. sS androidVisibilityToString(int v) { ret v == View.GONE ? "gone" : v == View.INVISIBLE ? "invisible" : v == View.VISIBLE ? "visible" : "unknown (" + v + ")"; } p { androidUI(r { TextView view = new TextView(androidActivity()) { protected void onWindowVisibilityChanged(int visibility) { super.onWindowVisibilityChanged(visibility); setText(getText() + "\n" + localTimeWithSeconds() + ": " + androidVisibilityToString(visibility)); } }; view.setText("Testi testi"); aSetView(view); }); }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, odkhaoglnmdk, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023256 |
Snippet name: | Test onWindowVisibilityChanged (Android) |
Eternal ID of this version: | #1023256/10 |
Text MD5: | f680bb327f72194f85706188ef5e3151 |
Transpilation MD5: | 7e7c6858f8961fcc7c218a3e10ac78b9 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Android) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-05-20 15:17:16 |
Source code size: | 651 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 292 / 437 |
Version history: | 9 change(s) |
Referenced in: | [show references] |