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

8
LINES

< > BotCompany Repo | #1023268 // aSetBackground

JavaX fragment (include)

static <A extends View> A aSetBackground(final int color, final A a) {
  if (a != null) androidUI(r { a.setBackgroundColor(color) });
  ret a;
}

static <A extends View> A aSetBackground(A a, int color) {
  ret aSetBackground(color, a);
}

Author comment

Began life as a copy of #1014884

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023268
Snippet name: aSetBackground
Eternal ID of this version: #1023268/2
Text MD5: 6266a0a13f387e5cfc5af3cc17d296e5
Author: stefan
Category: javax / android
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-21 14:07:02
Source code size: 241 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 194 / 227
Version history: 1 change(s)
Referenced in: [show references]