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

10
LINES

< > BotCompany Repo | #1014893 // aRemoveFromParent

JavaX fragment (include)

import android.view.*;

static <A extends View> A aRemoveFromParent(final A view) {
  androidUI(r {
    ViewParent group = view.getParent();
    if (group instanceof ViewGroup)
      ((ViewGroup) group).removeView(view);
  });
  ret view;
}

Author comment

Began life as a copy of #1014878

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: #1014893
Snippet name: aRemoveFromParent
Eternal ID of this version: #1014893/6
Text MD5: f9b31649e7ccdc442dfc6660a70f4915
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-10 15:23:46
Source code size: 251 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 335 / 369
Version history: 5 change(s)
Referenced in: [show references]