Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android keyboard obscures EditText

In my application, when I click on an EditText view, the virtual keyboard obscures the view, so I can't see my edits. How can I resolve this programatically?

like image 900
Arutha Avatar asked Dec 22 '09 08:12

Arutha


2 Answers

I recommend this article that covers the various modes for how the IME and the underlying activity interact from a UI layering perspective. Without knowing more about your application, it is impossible to state whether you want resizing or "pan and scan" modes.

like image 79
CommonsWare Avatar answered Sep 21 '22 01:09

CommonsWare


Oh, It happens to me, But I solve it

    <activity
        ...............
        android:windowSoftInputMode="stateVisible|adjustPan">
    </activity>
like image 38
Tai Tran Avatar answered Sep 19 '22 01:09

Tai Tran