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

11
LINES

< > BotCompany Repo | #1023296 // aSetGravity

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (1715L/11K).

1  
import android.widget.*;
2  
3  
static <A extends TextView> A aSetGravity(final int gravity, final A a) {
4  
  if (a != null) androidUI { a.setGravity(gravity) }
5  
  ret a;
6  
}
7  
8  
static <A extends LinearLayout> A aSetGravity(final int gravity, final A a) {
9  
  if (a != null) androidUI { a.setGravity(gravity) }
10  
  ret a;
11  
}

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: #1023296
Snippet name: aSetGravity
Eternal ID of this version: #1023296/8
Text MD5: 461196d7fbc4bfa103107bc75f774d48
Transpilation MD5: da88d6ca0d615cb511b766c04e48a910
Author: stefan
Category: javax / android
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-24 18:17:48
Source code size: 316 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 266 / 375
Version history: 7 change(s)
Referenced in: [show references]