1 | static void aPutViewBehindOtherView(final View a, final View b) { |
2 | androidUI(r { |
3 | ViewGroup group = (ViewGroup) a.getParent(); |
4 | ViewGroup group2 = (ViewGroup) a.getParent(); |
5 | if (group2 != group) ret; |
6 | int i1 = group.indexOfChild(a); |
7 | int i2 = group.indexOfChild(b); |
8 | if (i1 > i2) ret; // order ok |
9 | group.removeView(a); |
10 | group.removeView(b); |
11 | group.addView(b, i1); |
12 | group.addView(a, i2); |
13 | }); |
14 | } |
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: | 334 / 385 |
Referenced in: | [show references] |