Radio Group not getting Focus in Android - android

So I have a form that contains two EditText components and a RadioGroup.
When I click on one of the EditText fields the keyboard pops-out and I can right and everything is great. UNTIL I click on one of the RadioButtons and it gets clicked with the keyboard still out!! And when I use the keyboard it writes in the last focused EditText( Android 4.0) while on my Galaxy S2 (Android 2.3.6) it crashes the app!!
I researched that issue and I found that it was a known issue in (Android 2.0-) so what is wrong with what I'm doing?
I want to be able to use onFocusChange listener to validate the RadioGroup selection? Any Ideas will be appreciated.

Related

How to disable Keyboard suggestions on EditText and tell the keyboard to show extra number row

I have an EditText in my layout file. When I click(focus) on EditText a soft keyboard appear contains predictive word in keyboard suggestion bar(see figure 1).
Figure 1
But I want that when I will click on my EditText keyboard will appear with no suggestion bar and with an extra number row(see Figure 2).
Figure 2
I already tried some answer saying that adding below attribute will do that but none of them seems worked for me.
inputType="text|textNoSuggestion",inputType="textFilter" not worked.The below code work but also open a secure keyboard.(oppo,vivo phone built in feature)
inputType="textNoSuggestion|textVisiblePassword"
Is there any solution to make it done without opening secure keyboard?
N.B. I don't wanna disable the secure keyboard.
I saw this feature on some code editing application available on playstore.

Android 10 EditText box not updating with keyboard inputs

I've been thrown into trying to fix bugs in an app I didn't write, and I'm not all that familiar with Android. I'm having problems with text boxes not updating with keyboard inputs. Here's whats happening:
In android 10 (only) when I click on a text box, type stuff with the soft keyboard, nothing shows up in the textbox until the soft key board is minimized. But it works 100% fine in Android 5.1, 6, 8.1. (Also, compiling app with SDK for Android 8.1 or 10 makes no difference). The text box is never covered or hidden by the keyboard, it just remains empty until the keyboard is minimized.
The only thing that works is if I make the keyboard floating type, or if I position the textbox way at the top of the layout such that Android does not need to pan or resize the view to accommodate both the box and the default keyboard. A floating keyboard works anywhere, even partially over top of this text box.
I have tried every possible parameter combination I can find in the manifest and layout xml files, including android:windowSoftInputMode , android:fitsSystemWindows , android:isScrollContainer , android:gravity , android:paddingBottomandroid:configChanges
The fact this is -only- an issue for Android 10 is suspicious.
For anyone that finds this in the future: the issue turned out to be that hardware acceleration needed to be turned on. See EditText in Android doesn't show text when typing while using the on-screen keyboard

Native base's Checkbox and radio button presentation not working

I am having problem with checkbox and radio button of native base. In checkbox, instead of check(tick) icon hyphen icon shows whereas for radio buttons shuffle icon shows up instead of cicle radio button. Has anybody faced similar issues?? It was all good until last week. I dont know what has happened now. I have tried reinstalling vector icons,native base.But nothing worked.[

EditText not deleting text on BACKSPACE in Android 4.1.2

I have a UI component that extends EditText. It watches for changes to text contents by the user with a TextWatcher.
I have a problem that only shows in Android 4.1.2:
My component (previously) selects a range of text selected programatically, using setSelection() to set start of selection and extendSelection() to extend it.
When the text is selected, the beforeTextChanged() and afterTextChanged(0 are NOT called when backspace is typed.
Entering a character at the keyboard causes the selected text range to be replaced with the type character correctly, so it appears the selection is working.
This works fine in Android 4.0.2 and other versions I have tried.
Any ideas for a workaround?
I have the same problem, the workaround I found is in the manifest, set targetSdk = 15 or lower.

Android 4.0 Next function from keyboard

On my edit text I put the keyboard to have the "Next" button. The problem is that when the Next button is pressed on Android 4.0 (I tested on Emulator and on a device with Android 4.0) the cursor places at the beginning of the word instead of at the end of the word. What should I do?
Thanks
NOTE: On my Motorola Defy (Android 2.2) it's working great.
You could override the onFocusChangeListener for the editText, and when the focus changes do something like this to set the cursor to the end of the text
editText.setSelection(editText.length - 1);

Categories

Resources