Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在开发一个带有 phonegap 的 android 应用程序,我目前正在尝试调整不同移动/平板电脑设备的视图大小。对于一种分辨率,而不是将视图拉伸到屏幕的每个角落,我希望将视图放在屏幕的中心,以便在视图和屏幕边缘之间有均匀数量的额外黑色空间。我已经阅读了有关 layoutparam 和 linearlayout 的内容,但我不太确定如何处理这些内容。
你听说过响应式网页设计吗?你也可以使用像 jQuery mobile 这样的框架
http://en.wikipedia.org/wiki/Responsive_web_design