I'm creating a Unity application with textfields in it.
In the beginning there were no problems with the textfield inputs. I could write and texts would show nicely on the keyboards line
Then I've added some assets which altered the manifest. I don't know which line but I have multiple (5 exactly) AndroidManifest files in my Unity project and I'm facing this problem
When I'm typing with keyboard, text does get typed but it has white color on white background. I can select the text, edit the text but its bad for user to use a keyboard like that
What should I do? Thanks a lot!
ps. This problem does not occur on iOS devices. Only on Android
We experienced the same problem but we were able to fix it by adding the following property:
android:theme="#style/UnityThemeSelector"
To the application tag in the file
Plugins\Android\AndroidManifest.xml
Eg:
<application android:theme="#style/UnityThemeSelector"...
I'm not sure how that applies to having multiple manifests but perhaps only one of them has the application tag.
Related
I have written my text in small letters but still text appears capitalized in android studio:
What if i wanted to write:"Continue"?
add the following attribute to your button
android:textAllCaps=false
button.setTransformationMethod(null);
Is it possible to remove a feature (autocorrect, in this case) across the entire app from every single edit text by running an extension? Our app has a lot of edit texts across several activities and I would like to avoid running over each file to hit every one just to avoid adding a line of code, if possible. I have a style set up for that each one is connected to and tried adding
<item name="android:inputType">textNoSuggestions</item>
But that didn't do anything. Some of these fields do have input type set to be just number, and others I set for things like textCapWords or `textPersonsName' and things like that. I believe I made sure to give each one some kind of input, so is it because of that that the style line wasn't working?
I'm aware that I can just make a custom edit text and apply that to each layout file, but that would defeat the purpose of not running through each file.
tl;dr - Is there a way to remove autocorrect across every single activity without editing each layout file?
I want to change the onscreen keyboard according to the font .ttf file in my assets folder. I searched a lot but it always change the text which we typed but thier is no way i found to change the display of the onScreen Keyboard.
Please any body knows how to do that?
Thanks in advance.
check my answer in this below link. This method will change the font style of your android application and as the keyboard is also in an android application of service so the font of the keyboard is also changed.
This answer is verified and i have used this trick even i was searching of the same from a long time
Let me specify the problem first.
My app is designed for text mainly in Hindi, and I want to target Android OS below 4.1, which doesn't support hindi characters(yes, I've tried various Hindi fonts, which don't work properly, or the desired outcome is not the expected one).
So, I've prepared icons with hindi text, and all works perfectly fine now.
The problem left with is, how can I specify hindi text for the launcher icon?
I've tried to specify hindi text by creating an image with hindi text, and left the application:label ="" and activity:label="" blank.
But the text doesn't appear in where the app name should have appeared, or apparently I didn't create the image correctly.
Any help in this regard would be appreciated :)
I hope you already have tried Krutidev (Hindi Font), if not you can try it.
Though it may late to answer now, but as i read this now, i would like to answer since I did the same in my application in the following way:
1. Just in application tag of your app's manifest, give app name as normal:
android:label="#string/app_name"
2. in resource file strings.xml, add a string 'app_name' with the name your want for your app. Be careful, what i did was: i typed the text using Google transliteration and i gave this in Hindi.
3. Then when you save your strings.xml, it will ask you to save this in proper encoding, then choose 'utf-8', and that's it.
I am working on an application that will work on Android WebView. I enabled the selection and copy for this view. In some devices that support Arabic, When I paste the copied text from WebView in any EditText view, It shows me the reserve text. but In some cases it shows me the correct form.
Could any one please help me to show in correct form in all devices ? :-/
I have red all threads that depend on supporting Arabic and Farsi Text, but I can not reach my purpose.
Thanks in advance :)
You can pass your copied text to FarsiLibrary. It will analyses your text letters and justify them according to their possible 4 states (Initial, Middle, End, Isolated) :
Initial like 'ن' in 'نازک'
Middle like 'ن' in 'هنر'
End like 'ن' in 'وطن'
Isolated like 'ن' in 'ایران'
Android has Added support for RTL in Native widgets(i.e TextView , EditText) . so if u run the app onward 4.2 u will get RTL feature automatically ,
http://android-developers.blogspot.com.es/2013/03/native-rtl-support-in-android-42.html
You can create different versions of the layouts for different API versions.
As you can read here: http://developer.android.com/guide/topics/resources/providing-resources.html you can have say the normal folder (/res/layout/) with the layout for old devices and then another one for the ones that support it: /res/layout-11/
The layout inside layout-v11 will only be applied on devices with android 3.0 and over.