科尔多瓦/普通:最简单的,制定不同的屏幕布局的方式? [英] Cordova/general: Easiest way to develop for different screen layouts?

查看:138
本文介绍了科尔多瓦/普通:最简单的,制定不同的屏幕布局的方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是真的不知道。什么是最简单的方法,结合的PhoneGap /科尔多瓦,让您的应用支持多种屏幕分辨率?主要是所有Android的,如480×800,1280×720 720x1280x,800x1200等?

I was really wondering.. What is the easiest way, in combination with Phonegap/Cordova, to make your app support multiple screen resolutions? Mainly all Android ones, such as 480x800, 720x1280x 1280x720, 800x1200, etc.?

我已经创建了唯一的百分比(点击)(它会显示在所有16个大:9的屏幕,但事实并非如此),但是这是不够的。只有在与720x1280屏幕它显示ok了。

I've already created an app with percentages only (Click) (Which would show great on all 16:9 screens, but it doesn't), but that isn't enough. Only on screens with 720x1280 it shows ok.

特别为手机部署既是平板电脑,由于整个不同的方向..和更大的屏幕,导致了一个全新的UI似乎是不可能的选项(最佳的用户性能)。

Especially the option to deploy both for phone as tablet seems impossible due to the whole different orientation.. and the bigger screen leading to a whole new UI (for best user performance).

我能想到的是为每一个分辨率,这可能占用大量的时间,不同的样式表的唯一方法;我猜?

The only way I could think of is creating a different stylesheet for EVERY resolution, which could take up a huge amount of time; i guess?

期待的反馈,谢谢!

推荐答案

就个人而言,我用的引导和网格系统。它需要一分钟要弄清楚它是如何工作,以及如何得到它适合与你正在尝试做的,但一旦你做,这是惊人的。文档这里

Personally, I use Bootstrap and their Grid system. It takes a minute to figure out how it works and how to get it to fit with what you are trying to do but once you do, it is amazing. Documentation is here.

这篇关于科尔多瓦/普通:最简单的,制定不同的屏幕布局的方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆