安卓的屏幕分辨率 [英] Screen Resolution of android
本文介绍了安卓的屏幕分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开发一个Android应用程序的分辨率为320x240。 我想用更高的分辨率同样的应用程序是有可能 或者我要设计的用户界面为每个分辨率
I am developing an android application for resolution 320x240. i want to use this same application for higher resolution is it possible or i have to design UI for every resolution
推荐答案
扩展您的应用程序在不同屏幕分辨率遵循的指导方针,在这个环节的支持。
Scale your application to be supported in different screen resolutions by following the guidelines at this link.
的http://developer.android.com/guide/practices/screens_support.html#screen-independence
主要是你必须使用密度指数像素(DP)作为单位只要您需要,而不是硬编码定义尺寸的 PX
Mainly you have to use density index pixels(dp) as the unit to define size wherever you need rather than hardcoding with px
这篇关于安卓的屏幕分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文