EditText background control in dedicated editing mode - android

I have EditText with white text and black background.
When i turn the device in landscape orientation EditText is almost hidden by another controls and special dedicated window is opened for editing. The problem is that it uses white background and white text is invisible on it. How can it be fixed?

You could add android:imeOptions="flagNoExtractUi" to your EditText XML-tag. This will prevent the EditText to expand in landscape-mode and should preserve the background color.
See the documentation for imeOptions

Related

Preventing full screen keyboard: pull up EditText so it is visible

I have a horizontal only, full screen activity in my android app. In this activity, I need to disable full screen keyboard in some EditText elements so that the user can see the EditText while typing.
I disabled the full screen keyboard by adding following to EditText xml.
android:imeOptions="flagNoExtractUi"
When I touch the EditText for the fist time to enter text into it, the screen gets pulled up (keyboard comes up from bottom) so that EditText is visible while typing. After entering text and closing the keyboard, while the EditText is still having focus, if I touched it again to do some correction to the text entered, it doesn't get pulled up as it did before (Edit text is covered by keyboard). So I cannot see what is in the text box while typing. I'm not sure whether this is the default behavior since user has no idea what he is typing in this situation.
Is there a some way to get the screen to always pull up so it is visible?
use edittext in ScrollView and android:fillViewport="true" on the ScrollView. That's the better solution.

softkeyboard predictive text overlap text area

i am playing with android soft keyboard example.but the problem i m getting predictive text area overlap the edit text box. I tried both
android:windowSoftInputMode="stateVisible|adjustResize"
and
android:windowSoftInputMode="stateVisible|adjustpan" but nothing
That's a problem with the keyboard. The keyboard implements a function onComputeInsets, which provides a visible inset and a content inset. If they make the visible inset bigger than the content inset, the difference will always overlap the app. There's no way for the app to fix this. You can see that if you switch to a different keyboard that likely won't happen.

adjustPan: set the view to pan to

I have a popup that has a multi-line edit text and can appear at arbitrary position atop my application. Currently I have implemented it as a transparent activity. When the keyboard is shown over the popup, it jumps up and the current line is shown above the keyboard (I have the adjustPan flag set).
Now, I want the whole popup to go up and show above the keyboard, not only one line of text box. I was able to achieve this by moving focus to the whole layout when the EditText is focused, but then, well, the EditText loses focus, and I cannot type. Is there any other way way to do this? Or is there a way to focus a view without losing focus on another?

What sets the appearance of the "done" button for fullscreen IME soft keyboard?

Recently I was surprised to see a "Done" button appear next to a multiline EditText when I tapped it in Landscape mode. Several helpful S.O. posters explained that this is default behaviour when the soft keyboard obscures so much of the UI that there's hardly room for anything but the EditText itself.
So my question is this: the default "Done" button is a generic button with a generic font on a gray background. It doesn't resemble or coordinate with the soft keyboard or with my app. How can I style the button, its color and font, so I can make its appearance fit in with everything else?
Thanks in advance.

Add Elements to Textbox View when in landscape mode

When you activate an editText and your application is in landscape mode your view will change and all you see is a white screen and your textbox.
I have lots of text boxes the user has to fill with information.
Since the white area is stretched to the full width and height of your screen this can be very confusing. You don't know which textbox is now activated.
Thats why I want to add a textlabel to each portrait view of the editText box.
How could this be done?
Edit:
android:imeOptions="flagNoExtractUi"
is not a solution because the softkeyboard hides some editText boxes.

Categories

Resources