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?


Asked by: Blake243 | Posted: 24-01-2022






Answer 1

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.

Answered by: Julia199 | Posted: 25-02-2022



Answer 2

Oh, It happens to me, But I solve it

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

Answered by: Victoria746 | Posted: 25-02-2022



Similar questions

css - Android Webapp hide scrollbar?

is there a way (through javascript/jquery/css) to hide the scrollbar in android's web browser? Can't seem to find any valid info online and things that work for Google Chrome (webkit engine, as well) don't seem to work for the Android's browser. Thanks bunches


listview - Change scrollbar color in Android

Is it possible to change the color or appearance of the scrollbar in a ScrollView or ListView?


Android: ScrollBar bug in 2.2 for ListView

The problem appears in Android 2.2. It seems cool because it can auto-hide.But I don't like it quite much because the bar is an indicator for "Whether there is more content not present on the widget". Hiding it maybe neat, but may get the users wrong sometimes. In ListView, I find it a fatal bug at all. When there is more content to show, no scrollbar present, AND when wipe the screen down-wards, no scroolbar appears. Only...


android - Prevent scrollbar from hiding on froyo

Starting with 2.2, scrollbars would disappear once the scrolling has stopped. Is there a way to make them always visible like before?


Android WebView leaves space for scrollbar

In my WebView, I have some block elements that have a background color (different than white). However, the background color does not go all the way across the sky.. um, screen. Instead, it leaves a small white strip to the right, for where the scrollbar would go. Now, I want the scrollbars to appear only when scrolling (and fade away once the user has finished scrolling). I tried: and...


android - Listview hide scrollbar when not scrolling

As the title says I want to hide a listview's scrollbar when the listview isn't scrolling and show it when scrolling. I know this can be done very easy by setting "android:fadeScrollbars" as an application style if the API is 5 or newer. But I want the feature to be available on all android devices. So I've implemented the "setOnScrollListener" method, and switched the scrollbar visibility using the setVerticalScrollBarEna...


android - Show scrollbar after given delay

is it possible to set a delay at which the scroll bar at the right side appears? The idea is that when the user begins to scroll, the scroll bar does not show up immediately, but if the user scrolls long enough. I was looking for some time now and found just a getter method getScrollDefaultDelay (), which gets the time in ms when the scroll bar dissapears. How could I control the delay in my case? best reg...


Enabling scrollbar in EditText Android

I have an EditText on my layout. Below are the attributes I currently have: &lt;EditText android:id="@+id/entryIdea" android:layout_width="fill_parent" android:layout_height="225sp" android:gravity="top" android:background="@android:drawable/editbox_background" android:scrollbars="vertical"/&gt; However, I can see the scrollbar but can't scroll it with mouse/touch. I thou...


android scrollbar thumb length

I am using a drawable for scrollbar track and thumb, in the case of thumb, I need to see the thumb in the original dimensions of the image, currently the thumb is stretched.


android - Put Layout at bottom and add scrollbar

I have three Relative layouts in may app, on above another. &lt;RelativeLayout_1&gt;&lt;CheckBox&gt;&lt;/CheckBox&gt;&lt;/RelativeLayout&gt; &lt;RelativeLayout_2&gt;&lt;/RelativeLayout&gt; &lt;RelativeLayout_3&gt;&lt;/RelativeLayout&gt; First is at top, and third is at bottom. When I click on check box in my first layout, second layout is visible/unvisible. How to achive that I always see ...






Still can't find your answer? Check out these communities...



Android Google Support | Android Community | Android Community (Facebook) | Dev.io Android



top