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

10
LINES

< > BotCompany Repo | #1014893 // aRemoveFromParent

JavaX fragment (include)

1  
import android.view.*;
2  
3  
static <A extends View> A aRemoveFromParent(final A view) {
4  
  androidUI(r {
5  
    ViewParent group = view.getParent();
6  
    if (group instanceof ViewGroup)
7  
      ((ViewGroup) group).removeView(view);
8  
  });
9  
  ret view;
10  
}

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: 408 / 445
Version history: 5 change(s)
Referenced in: [show references]