Advertisement
Sketchware

Desativa edittext

Mar 7th, 2023
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. EditText editText1 = findViewById(R.id.editText1);
  2. editText1.setFocusable(false);
  3. editText1.setOnClickListener(new View.OnClickListener() {
  4.     @Override
  5.     public void onClick(View v) {
  6.         // Não fazer nada
  7.     }
  8. });
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement