Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

android action key

TextView.OnEditorActionListener editListener = 
	(TextView view, int actionId, KeyEvent event) -> {
        if (actionId == EditorInfo.IME_ACTION_NEXT) {
          Toast.makeText(this, "next", Toast.LENGTH_SHORT).show();
        }
        if (actionId == EditorInfo.IME_ACTION_DONE) {
          Toast.makeText(this, "done", Toast.LENGTH_SHORT).show();
        }
        return false;
	};

editView.setOnEditorActionListener(editListener);
Comment

android action key


editText.setOnEditorActionListener(new OnEditorActionListener() {        
    @Override
    public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
        if(actionId==EditorInfo.IME_ACTION_DONE){
            //do something
        }
    return false;
    }
});

Comment

PREVIOUS NEXT
Code Example
Java :: afficher texte java 
Java :: How to efficiently invert a binary tree, in Java? 
Java :: Get the first Monday of a month in Java 
Java :: sleep() java 
Java :: print 2d array in java 
Java :: leetcode 416 
Java :: change material fab color android 
Java :: decimals java 
Java :: how to collect objective in java 
Java :: java initialize float to zero 
Java :: how to delete character certain index in java 
Java :: why java is secure 
Java :: how to shuffle string java 
Java :: java add listent to button 
Java :: isprime java 
Java :: glide dependency android java 
Java :: topological sort java 
Java :: minecraft java arguments 
Java :: how to import jframe in java 
Java :: print map in java 
Java :: how to add to a date in android 
Java :: selet all elemnts 
Java :: how to get index of second occurrence java 
Java :: java date time 
Java :: sprint jpa properties for application.yml 
Java :: java thread lambda 
Java :: fibonacci in java 
Java :: print two dimensional array java 
Java :: How to add music to andoid project 
Java :: java generate secure random password 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =