I'm working on a mobile app and I'm using a scaffold to display some title but for some reason, I recently found that on some android devices, there is some text coming from an unknown source and it's displayed over my Appbar. I can't reproduce that same result on any other device or emulator.
This is how it should work
and for some reason this is what it does
I checked to see if I have that text somewhere in my code and it's not. Another weird thing is that... that text is added only when I click the home button from the bottom bar. Again, that text is not added there from code. Already checked multiple times.
Related
I am testing my app with TalkBack and have noticed that at some points in the app for e.g. if I click a dropdown spinner, and select an item, it will call out the item's name (which is expected), but right after that it will call out the app's name as well.
I know this is coming from the android:label for the application in the Manifest, and I have tried removing it, and setting it null; but in that case it just reads out 'Untitled'. I am sure it is coming from there because when I change the label to another string it starts saying that.
Not sure, how to fix this and have not found any solid solutions for this online. Any help would be appreciated!
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
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
}
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'm rendering a html page(html page is constructed using JQuery, text with html tags, used a canvas in it) to Activity with web-view & to default browser comes with device. When I long press on text in html page I'm getting dark grey colored boxes on it.This is unexpected & weird behavior of web-view.Please see attached images for my problem
I searched for such issue but not getting any solution for it.Same html page is tested on Mozilla app but not getting such square boxes, also on ACER tab running HoneyComb its working fine no such weird square boxes.How to get rid of such boxes?. I using Samsung Tab2 10.1 with android version 4.0.4. Please help me to solve this issue.
I don't know what you code for it?
But you can validate the page on http://validator.w3.org/
There may be problem with your html like any tag open but not closed, etc.
So once you validate it, then test it again.