Libraryless. Click here for Pure Java version (1715L/11K).
import android.widget.*; static <A extends TextView> A aSetGravity(final int gravity, final A a) { if (a != null) androidUI { a.setGravity(gravity) } ret a; } static <A extends LinearLayout> A aSetGravity(final int gravity, final A a) { if (a != null) androidUI { a.setGravity(gravity) } ret a; }
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: | 452 / 604 | 
| Version history: | 7 change(s) | 
| Referenced in: | [show references] |