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

5
LINES

< > BotCompany Repo | #1023330 // aCenterTextView

JavaX fragment (include)

static <A extends TextView> A aCenterTextView(final A tv) {
  if (tv != null)
    androidUI { tv.setGravity(Gravity.CENTER_HORIZONTAL); }
  ret tv;
}

Author comment

Began life as a copy of #1014883

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: #1023330
Snippet name: aCenterTextView
Eternal ID of this version: #1023330/3
Text MD5: 32a5f288f4085925e41baec588384870
Author: stefan
Category: javax / android
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-06 12:36:47
Source code size: 153 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 206 / 252
Version history: 2 change(s)
Referenced in: [show references]