相关疑难解决方法(0)

什么布局适合720x1280 Android设备?

我开发了一个时钟小部件.我只有1个res/layout和1 res/drawable.一切都很完美.

它适用于像三星Galaxy Ace这样的mdpi.它适用于像三星Galaxy S2这样的hdpi.它适用于三星Galaxy Note等xhdpi.

然而,我在三星Galaxy Nexus或Sony Xperia S等720x1280设备上看起来很难看.很快就会推出三星Galaxy S3.

当我提供专门为720x1280设备构建的res/layout/xhdpi,然后Galaxy Note也将使用这种布局,它在Galaxy Note上看起来很难看.

如何解决这个问题?

这就像720x1280(Galaxy Nexus,Sony Xperia S,Galaxy S3)和800x1280(Galaxy Note)之间的一些交叉.

android screen

3
推荐指数
1
解决办法
1万
查看次数

为多种屏幕尺寸设计Android应用程序

我正在设计一个最低SDK版本为8的Android应用程序.我目前在运行大约4英寸手机的模拟器上测试它...

我最近买了一台Nexus 7,然后运行它.我认为它只会放大屏幕(按钮和文字包括),所以它基本上放大了...它不是

我彻底搜索了它,并提出使用不同的布局大小(我顺便使用Eclipse)所以我做了一个'layout-large'文件夹,但是我得到了以下错误,并且没有设计视图的屏幕布局会显示

'It looks like you are using a render target where the layout library does not support the tvdpi density.

Please try either updating to the latest available version (using the SDK manager), or if no updated version is available for this specific version of Android, try using a more recent render target version.

Exception raised during rendering: Index: 2, Size: 2
Exception details are logged in Window > Show View > Error Log'
Run Code Online (Sandbox Code Playgroud)

我怎么解决这个问题?我不想从8更改最小SDK

size layout android screen

1
推荐指数
1
解决办法
5869
查看次数

标签 统计

android ×2

screen ×2

layout ×1

size ×1