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

28
LINES

< > BotCompany Repo | #1005318 // Android: Test aNorthAndCenter

JavaX source code (Android) [tags: use-pretranspiled] - run with: the app

Libraryless. Click here for Pure Java version (1350L/9K/32K).

!752

import android.app.*;
import android.widget.*;
import android.view.*;
import android.view.KeyEvent;
import android.view.inputmethod.*;
import android.text.*;
  
  p {
    androidUI(r {
      
      final EditText et = new EditText(androidActivity ());
      et.setInputType(InputType.TYPE_CLASS_TEXT); // Hopefully turns off multiline
      
      et.setOnEditorActionListener(new TextView.OnEditorActionListener() {
        public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
            if ((event != null && (event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) || (actionId == EditorInfo.IME_ACTION_DONE)) {
                
            }
            return false;
        }
      });
      androidShow (aNorthAndCenter (et,
        new AndroidList (ll("a", "b")).view()));
    
    });
  }

Author comment

Began life as a copy of #1001080

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, nbgitpuheiab, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1005318
Snippet name: Android: Test aNorthAndCenter
Eternal ID of this version: #1005318/1
Text MD5: fd56a4af7039d929056698ab5b109ba3
Transpilation MD5: facfc4ab360386d41ca073816fd8c36c
Author: stefan
Category: javax
Type: JavaX source code (Android)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-05 07:15:14
Source code size: 845 bytes / 28 lines
Pitched / IR pitched: No / No
Views / Downloads: 546 / 624
Referenced in: