Android Question EditText - set to unedited

Discussion in 'Android Questions' started by jimich, Jan 28, 2015.

  1. jimich

    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,
     
  2. NJDude

    NJDude Expert Licensed User

    You can disable/enable it like this:
    Code:
    EditText1.Enabled = False
     
    thedesolatesoul likes this.
  3. jimich

    jimich Member Licensed User


    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: Jan 28, 2015
  4. NJDude

    NJDude Expert Licensed User

    You cannot disable the scroll only, you disable the view.
     
    thedesolatesoul likes this.
  5. jimich

    jimich Member Licensed User

    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,
     
  6. NJDude

    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.
     
    thedesolatesoul likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice