[英]Unity Android keyboard text shows white text on white background
I'm creating a Unity application with textfields in it. 我正在创建一个包含文本字段的Unity应用程序。
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
我不知道哪一行,但我的Unity项目中有多个(5个确切的)AndroidManifest文件,我正面临这个问题
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. PS。 This problem does not occur on iOS devices.
iOS设备上不会发生此问题。 Only on Android
仅适用于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. 我不确定如何应用多个清单,但也许只有其中一个有应用程序标记。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.