static void aPutViewBehindOtherView(final View a, final View b) { androidUI(r { ViewGroup group = (ViewGroup) a.getParent(); ViewGroup group2 = (ViewGroup) a.getParent(); if (group2 != group) ret; int i1 = group.indexOfChild(a); int i2 = group.indexOfChild(b); if (i1 > i2) ret; // order ok group.removeView(a); group.removeView(b); group.addView(b, i1); group.addView(a, i2); }); }
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: | #1014930 |
Snippet name: | aPutViewBehindOtherView |
Eternal ID of this version: | #1014930/1 |
Text MD5: | 0da67bb84056aea5623823e061eeabe7 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-06 15:10:10 |
Source code size: | 439 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 333 / 383 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |