I've just had a customer deliver me a test phone to deploy my app on. This is a ZTE R84 which runs Google Android v5.0.2. Only on this device and OS I am experiencing an issue with TextFields in Tableviews.
Basically when I have the Keyboard type set to DEFAULT and try to edit the text in the field on this device, the field loses focus immediately. If I set the keyboard type to Titanium.UI.KEYBOARD_TYPE_NUMBER_PAD, it works as expected.
If I take the field outside of the TableView, then I have no problem whatsoever.
Open to suggestions about how I fix this one, other than sending the phone back to my customer...
I believe you can get rid of this issue by setting windowSoftInputMode property of that window which contains the tableview to Ti.UI.Android.SOFT_INPUT_ADJUST_PAN
"Window" : {
windowSoftInputMode : Ti.UI.Android.SOFT_INPUT_ADJUST_PAN
}
Related
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
the Kendo grid does't accept cell value changes when using an android mobile phone with the Chrome browser.
You can test it on the Telerik demo https:demos.telerik.com/aspnet-mvc/grid/editing.
for example, change the value of the Unit Price and go to the other cell. you will see that the value will become the original value.
just by touching somewhere outside the border of the grid the value will change.
Telerik has answered this and it works fine.
Hello Amin,
Thank you for reporting this. This is a bug, and thus, I converted this ticket into a public bug report:
https://feedback.telerik.com/kendo-jquery-ui/1421654-kendo-grid-on-incell-editing-mode-doesn-t-accept-value-changes-while-using-mobile-phone
As a workaround, handle cellClose event and trigger the blur event of the child input.
function onCellClose(e) {
e.container.find("input").trigger("blur");
}
Just found myself trying to figure out this strange behavior in for EditText.
Information:
Bug seems to only happen in some devices! for now I've only seen it in Sony Xperia D2303.
App description:
I'm working on an app that has a main activity and navigation is done trough different fragments that are replaced as user moves from one section to another.
At one point I'm showing a DialogFragment with an edit text field, with background set to #null, with a hint text. (I have also tried with a normal edit text, taken from widget list and dragged to the layout and found the same behavior).
Problem:
When clicking on the EditText, software keyboard SHOWS UP but when typing there is no letter input in the EditText! I can long press, to visualize cursor position marker and also the magnifying glass shows up.
Things I've tried:
- I've tried requesting focus with xml, programmatically.
- Setting touchable(in touch mode also)
- Setting descendantFocusability attribute of parent to 'afterDescendants'
- Overriding onTouchListener and showing keyboard programmatically through the InputManager and using the edit text's token
… and maybe other things which I don't remember
There is but a workaround that I've found!!! sending the app to background, and bringing it to foreground again… so it seems something related to focus maybe?? but then why does keyboard show up, and cursor marker and magnifying glass work?
This solution does not work for me as it depends on the user taking action
Has anyone found this problem? any suggestions?
Thanks in advance!
I am having few text fields inside the table view, while clicking on the text fields it is not getting focused(in Android platform). I have seen some questions regarding the same issue, but those suggestions not worked for me. I am using Titanium 1.7.5, Android 2.2
I resolved this problem in Android to set the Edit Text Property:
android:imeOptions="actionSearch"
If it is not working on Mobile Device, I have another solution for it:
android:imeOptions="actionNext"
android:selectAllOnFocus="true"
I had the same issue, and some steps you should keep in mind:
Don't add a focus event to the field, this will overwrite the build-in one
Add the event singletap and fire the focus event on that field
mytextfield.addEventListener('singletap',function(){ mytextfield.focus(); });
This should do the trick, at least, it did for me.
textfields did not act identically on every device while gaining the focus. you should have a look at the softKeyboardOnFocus-property. it can have the following value:
Titanium.UI.Android.SOFT_KEYBOARD_DEFAULT_ON_FOCUS
Titanium.UI.Android.SOFT_KEYBOARD_HIDE_ON_FOCUS
Titanium.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS
maybe it helps to set the property to SOFT_KEYBOARD_SHOW_ON_FOCUS. this requests to show soft keyboard on focus. keep in mind that android can override this.
As a noob I wrote an app with lots of layout screens and it worked OK in emulation but when I ran it on my Droid Incredible the soft keyboard popping up changed the layout of a LinearLayout I was using - shoving some elements aside and changing the height of others! I fixed it by adding android:windowSoftInputMode="adjustPan” to the Activity element of the manifest but I really would have preferred to discover this problem in emulation and not on a real phone.
So, is there a popup soft keyboard in the Emulator and if so how do I invoke it?
yes there is, you only need to click on an EditText box with your mouse and it will open.
Yes, of course. You can go to the emulator's edit page, do not choose the "Use handware keyboard".