Java 将具有响应式设计的网站转换为 Android 应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18048130/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Convert a Website with a responsive design to the Android app
提问by good_evening
I want to make an Android App without much effort. I already have a website with a responsive design. Is there an easy way to convert it or maybe display a website as an Android app?
我想毫不费力地制作一个Android应用程序。我已经有一个响应式设计的网站。有没有一种简单的方法可以转换它或者将网站显示为 Android 应用程序?
回答by michaelcarrano
If you really want to go the minimal effort route, why not just create an application with a single Activityusing a WebView.
如果您真的想走最少的工作路线,为什么不使用WebView创建一个具有单个Activity的应用程序。
Here is a guide from Google on developing Web Apps in WebView.
这是 Google 提供的关于在 WebView 中开发 Web 应用程序的指南。
回答by mohamed khalloufi
By making your web site responsive, i don't think that you need to convert or display your website as a native App. I think that you need a real mobile or android user experience to get the satisfactions of users.
通过使您的网站具有响应性,我认为您不需要将您的网站转换或显示为本机应用程序。我认为您需要真正的移动或安卓用户体验才能获得用户的满意。
A lot of technical solution exists already like using a webviewin your first activity.
许多技术解决方案已经存在,例如在您的第一个活动中使用webview。
But, my advice, is to make a dedicated design for your app and to apply a full android user experience for it.
但是,我的建议是为您的应用程序进行专门的设计,并为其应用完整的 Android 用户体验。
Good luck
祝你好运