Skip to content

Commit 0da9f37

Browse files
author
Mohamed Elidrissi
committed
Remove Auto-correction in EditText
1 parent 3ddfd3f commit 0da9f37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

syntax-view/src/main/java/net/cryptobrewery/syntaxview/SyntaxView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ private void initialize(Context context, String BackgroundColor, final String ke
7777
inflate(context, R.layout.syntaxview, this);
7878
code = findViewById(R.id.code);
7979
rows = findViewById(R.id.rows);
80-
code.setBackgroundColor(Color.parseColor(BackgroundColor));
80+
code.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);
81+
code.setSingleLine(false);
82+
code.setImeOptions(EditorInfo.IME_FLAG_NO_ENTER_ACTION); code.setBackgroundColor(Color.parseColor(BackgroundColor));
8183
code.addTextChangedListener(new TextWatcher() {
8284

8385

0 commit comments

Comments
 (0)