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).

1  
!752
2  
3  
import android.app.*;
4  
import android.widget.*;
5  
import android.view.*;
6  
import android.view.KeyEvent;
7  
import android.view.inputmethod.*;
8  
import android.text.*;
9  
  
10  
  p {
11  
    androidUI(r {
12  
      
13  
      final EditText et = new EditText(androidActivity ());
14  
      et.setInputType(InputType.TYPE_CLASS_TEXT); // Hopefully turns off multiline
15  
      
16  
      et.setOnEditorActionListener(new TextView.OnEditorActionListener() {
17  
        public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
18  
            if ((event != null && (event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) || (actionId == EditorInfo.IME_ACTION_DONE)) {
19  
                
20  
            }
21  
            return false;
22  
        }
23  
      });
24  
      androidShow (aNorthAndCenter (et,
25  
        new AndroidList (ll("a", "b")).view()));
26  
    
27  
    });
28  
  }

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: 476 / 533
Referenced in: [show references]