android–Gujarati网页在Webview中没有完美呈现

android–Gujarati网页在Webview中没有完美呈现,第1张

概述我正在打开包含古吉拉特语的WebPage,但它在AndroidWebView中只显示英文单词.那我怎么能支持古吉拉特语.您可以在以下图片中看到差异:Stringurl="http://www.police.gujarat.gov.in/dgp/CMS.aspx?Search=PS";webView=(WebView)findViewById(R.id.webView1);webView.get

我正在打开包含古吉拉特语的WebPage,但它在Android WebVIEw中只显示英文单词.

那我怎么能支持古吉拉特语.

您可以在以下图片中看到差异:

String url = "http://www.police.gujarat.gov.in/dgp/CMS.aspx?Search=PS";webVIEw =  (WebVIEw) findVIEwByID(R.ID.webVIEw1);webVIEw.getSettings().setJavaScriptEnabled(true);webVIEw.getSettings().setBuiltInZoomControls(true);webVIEw.loadUrl(url);

网页显示如下:

AndroID WebVIEw显示如下:

编辑:

As i give answer of this question i am succeed but i want to finally
display Gujarati links in unsupported Devices, How can i? Help me
for that please.

解决方法:

终于得到了解决方案:

我已经在模拟器中运行这个应用程序,这就是为什么它不显示古吉拉特语字体(可能是gujarati lang.在模拟器中不支持)但现在它完全在设备上运行.

Sometimes it happens with emulator that our application is running correctly on device but not in emulator.

总结

以上是内存溢出为你收集整理的android – Gujarati网页在Webview中没有完美呈现全部内容,希望文章能够帮你解决android – Gujarati网页在Webview中没有完美呈现所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1117940.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存