简体   繁体   English

团结Android键盘文本显示在白色背景的白色文本

[英]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.

相关问题 Android:微调器,带有白色背景上的白色文本 - Android: spinner with white text on white background Webview中的Android选择下拉组合框在API 17和更高版本的白色背景上显示为白色文本 - Android select dropdown combobox in webview shows as white text on white background for API 17 and above 微调框上的文字是白色背景上的白色 - Text on spinner is white on a white background Android 键盘关闭时 1 秒内显示白色背景 - White background shows during 1 sec when keyboard closes on Android 带白色文本和白色弹出背景的微调框的Android工具栏? - Android Toolbar with Spinner with white text and white popup background? Android Snackbar在文本后面显示白色背景 - Android Snackbar showing white background behind text WebView黑色背景和白色文本 - WebView black background and white text 键盘消失时的 Android 白色背景 - Android White Background when keyboard fades away objectAnimator在Android中显示片段的白色背景 - objectAnimator shows white background for fragments in Android Android文本选择手柄具有白色背景(而不是透明) - Android text selection handles have white background (instead of transparent)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM