1. Are you ready for the Galaxy S20? Here is everything we know so far!

Prevent EditText collapse on keyboard popup?

Discussion in 'Android Development' started by tr00don, Jul 8, 2020.

  1. tr00don

    tr00don Lurker
    Thread Starter

    In an Android app, in a vertical linear layout I placed, from the top to the bottom: a multiline EditText in a ScroolView; a TextView in a ScrollView; and a Button. When the app starts the EditText gets the focus and the soft keyboard pops up. The app layout is collapsed (windowSoftInputMode = adjustResize) except for the Button (which is what I expect as user must have access to it).

    I need the EditText to not collapse at any time, just like the Button.

    How do I also prevent the EditText from collapsing when the soft keyboard pops up?
     


    #1 tr00don, Jul 8, 2020
    Last edited: Jul 8, 2020

    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Prevent EditText collapse
  1. puppykickr
    Replies:
    4
    Views:
    712
  2. marioprata
    Replies:
    5
    Views:
    2,745
  3. jewu
    Replies:
    2
    Views:
    694
  4. Techie_Ind
    Replies:
    2
    Views:
    1,144
  5. pranaman
    Replies:
    1
    Views:
    486
  6. Mahmoud MABROUK
    Replies:
    0
    Views:
    1,177
  7. zepking
    Replies:
    5
    Views:
    961
  8. gimommy
    Replies:
    0
    Views:
    480
  9. pstein
    Replies:
    2
    Views:
    477
  10. RegiOween
    Replies:
    8
    Views:
    814

Share This Page

Loading...