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

18
LINES

< > BotCompany Repo | #1008231 // aTextView - make Android TextView

JavaX fragment (include)

import android.app.*;
import android.widget.*;
import android.view.*;
import android.view.KeyEvent;
import android.view.inputmethod.*;
import android.text.*;

static TextView aTextView(S text) {
  TextView tv = aTextView();
  tv.setText(text);
  ret tv;
}

static TextView aTextView() {
  ret androidUI(func -> TextView {
    new TextView(androidActivity())
  });
}

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: #1008231
Snippet name: aTextView - make Android TextView
Eternal ID of this version: #1008231/3
Text MD5: 25b3718fe3ad4e7fe11048505791d267
Author: stefan
Category: javax / android
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-05 23:05:17
Source code size: 382 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 580 / 577
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008232 - aSetText - set text on TextView (Android), can be called in any thread
#1008233 - aButton - make Android Button
#1014883 - aCenteredTextView
#1014898 - aEditText - make Android EditText
#1023259 - aTextViewWithWindowFocusChangeNotify
#1023328 - aSpace - make Android Space