Android Question EditText - set to unedited

jimich

Member
Licensed 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
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:

jimich

Member
Licensed 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,
 

NJDude

Expert
Licensed User
I think you are not understanding, when a view is disabled means it cannot be used until you enable it again; to make the keyboard not to appear then try the IME library.
 
Top