Skip to content

Instantly share code, notes, and snippets.

@malikkurosaki
Created October 23, 2019 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malikkurosaki/1dded437bb4a529cddbfbdb1d35c96db to your computer and use it in GitHub Desktop.
Save malikkurosaki/1dded437bb4a529cddbfbdb1d35c96db to your computer and use it in GitHub Desktop.
cara menangani enter pada edit text

menangani enter pada edit text

 kolomCari.setOnEditorActionListener((textView, i, keyEvent) -> {
            boolean handle = false;
            if (i == EditorInfo.IME_ACTION_DONE){
                Toast.makeText(getContext(),kolomCari.getText().toString().trim(),Toast.LENGTH_LONG).show();
                handle = true;
            }
            return handle;
        });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment