Arutha
Arutha

Reputation: 26478

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?

Upvotes: 6

Views: 9069

Answers (2)

CommonsWare
CommonsWare

Reputation: 1006604

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.

Upvotes: 11

Tai Tran
Tai Tran

Reputation: 1406

Oh, It happens to me, But I solve it

    <activity
        ...............
        android:windowSoftInputMode="stateVisible|adjustPan">
    </activity>

Upvotes: 2

Related Questions