Mykola Korostelov
Mykola Korostelov

Reputation: 1

How to enable scrolling if text is disable for android

How to enable scrolling if text is editable={false} (disable) for Android, but for iOS have property multiline={true} and the scroll works for iOS, but I need to do it for Android, maybe you know?

Upvotes: 0

Views: 46

Answers (1)

gpuser
gpuser

Reputation: 1183

Please try this line of code

EditText editText = findViewById(R.id.etext);
 editText.setKeyListener( null );
 //editText.setFocusable( false );
 editText.setCursorVisible(false);

Upvotes: 0

Related Questions