绘制-540x960目录名称无效 [英] drawable-540x960 directory name invalid

查看:153
本文介绍了绘制-540x960目录名称无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序必须支持540x960的屏幕。 我已经创建了一个名为:绘制-540x960 包含的所有图形项目此屏幕。 但我得到这个错误:无效的资源目录名称绘制-540x960 这是怎么回事错这个名字呢? 谢谢, 的Eyal。

In my application i have to support 540x960 screens. I have created a directory named: drawable-540x960 for containing all graphics items for this screen. But i get this error: invalid resource directory name drawable-540x960 What is going wrong with this name? Thanks, Eyal.

推荐答案

其实你是为你的屏幕给错误的目录名。您可以参考本该开发者的网站去这里的https://developer.android.com/guide/practices/screens_support.html#NewQualifiers

Actually you are giving wrong directory name for your screen .you can refer this from developer site go here https://developer.android.com/guide/practices/screens_support.html#NewQualifiers

在该网站上看到表号:2 qualifers的屏幕尺寸

in that site See Table No :2 for qualifers for screen size

也是一条线,你可以在那找到的是:

also one line you can find in that is :

If the available height is a concern for you, then you can do the same using the h<N>dp qualifier. Or, even combine the w<N>dp and h<N>dp qualifiers if you need to be really specific.

有关指定使用的屏幕尺寸540x960,你需要添加布局如下图所示,这是定义的宽度和高度用于该XML布局的有效途径。

For Specify use of Screen Size 540x960 ,you need to add layout like below and it is valid way to define width and height used for that xml layout.

res/layout-w540dp-h960dp/any layout which you need put in side this folder

这篇关于绘制-540x960目录名称无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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