Android Question EditTextUtils - EditText not scroll after setTextIsSelectable(edtTest, False)

js486dog

Active Member
Licensed User
Longtime User
Please my problem is:
I need edittext with two states:
1) Only read (input type = NONE) and sroll.
2) Only select with copy, cut, share - not EDIT (no popup keyboard).

I have used EditTextUtils.
One edittext and two buttons to change the state.

- When I start APP I can scroll edittext.
- When I tap "sel_text" button - setTextIsSelectable(edtTest, True) - I can scroll edittext.
- I need to go back to "Only read state-input NONE,selNONE" - I tap "nosel_text" button - setTextIsSelectable(edtTest, False).
But I can not scroll edittext.
Please how can I sroll edittext ?
 

Attachments

  • EditTextUtils.zip
    8.9 KB · Views: 159

js486dog

Active Member
Licensed User
Longtime User
Please my problem is:
I need edittext with two states:
1) Only read (input type = NONE) and sroll.
2) Only select with copy, cut, share - not EDIT (no popup keyboard).

I have used EditTextUtils.
One edittext and two buttons to change the state.

- When I start APP I can scroll edittext.
- When I tap "sel_text" button - setTextIsSelectable(edtTest, True) - I can scroll edittext.
- I need to go back to "Only read state-input NONE,selNONE" - I tap "nosel_text" button - setTextIsSelectable(edtTest, False).
But I can not scroll edittext.
Please how can I sroll edittext ?
I think setTextIsSelectable is possible to use only in "Activity_Create".
I have done another solution with the second EditText.
One EditText is : Only read (input type = NONE).
Second EditText is : setTextIsSelectable True declared in "Activity_Create".
Both have same text content.
I switch between them.
 
Upvote 0
Top