[英]Ionic 2: Why does alert box look like old Android?
Why does the alert in my Ionic 2 app look like an old Android version and how can I change this? 为什么我的Ionic 2应用程序中的警报看起来像旧的Android版本,我该如何更改?
Note: this is just calling JavaScript 注意:这只是调用JavaScript
alert()
function, NOT the Alert component! 功能,而不是警报组件! I am doing this on purpose.
我故意这样做。
For comparison, this is an alert from a website in the browser: 为了比较,这是来自浏览器中网站的警报:
I'm concerned that the browser version/sdk it's building to is out of date. 我担心它正在构建的浏览器版本/ sdk已经过时了。
Why are these looking different? 为什么这些看起来不一样?
Set 组
theme="@android:style/Theme.DeviceDefault.Light.NoActionBar"
In platforms/android/AndroidManifest.xml 在platforms / android / AndroidManifest.xml中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.