Android Question EditText - set to unedited

jimich

Member
Licensed User
Longtime User
Hi,

How can I make EditText to not edited?

It can only be edited later when for example at the press of a button.

thanks for kind reply,
 

jimich

Member
Licensed User
Longtime User
You can disable/enable it like this:
B4X:
EditText1.Enabled = False


Hi NJDude,

Thanks for your fast reply!

But when I set to that, I can't make a SCROLL to that long text, and I need it to scroll.

I have all like these:

edtText.Text=txt
edtText.SingleLine=False
edtText.Wrap=True
edtText.ForceDoneButton=True

And I even try your suggestion also.

And I don't want to change to Label.
 
Last edited:
Upvote 0

jimich

Member
Licensed User
Longtime User
You cannot disable the scroll only, you disable the view.

Hi NJDude,

It's ok for me to have scroll my EditText, and that's what I need.

But when I set EditText (ie. EditText1.Enabled = False), it doesn't scroll.

Maybe, what I need is the virtual keyboard not to appear...

Thanks again,
 
Upvote 0
Top