简体   繁体   English

使用大型和超大型可绘制对象的平板电脑

[英]Tablets using large and xlarge drawables

I need different sized images for both the 7" and 10" tablets. 7“和10”平板电脑都需要不同尺寸的图像。 The 7" images are in drawable-large-mdpi and work fine. The 10" images are in drawable-xlarge-mdpi and work fine. 7英寸的图像采用可绘制的大mdpi,并且工作正常。10英寸的图像采用可绘制的xlarge-mdpi,并且工作良好。 But it now looks like they would probably benefit being all in one folder. 但是现在看来,将它们全部放在一个文件夹中可能会受益。 I assumed that just by using drawable-large-mdpi the 10" tablets would automatically go to this but it doesnt seem the case? Is there anyway to get both tablets to use one (large) drawable folder? 我以为只是使用drawable-large-mdpi,10英寸的数位板将自动转到此位置,但事实并非如此吗?是否可以使这两种数位板都使用一个(大)可绘制文件夹?

if you have the following set up: drawable-mdpi >> 10" and phones will pick up images from here drawable-large-mdpi >> 7" will pick up from here 如果您进行了以下设置:drawable-mdpi >> 10“,并且电话将从此处拾取图像drawable-large-mdpi >> 7”将从此处拾取图像

Instead you can have(from 3.2 and above) drawable-mdpi >> phones drawable-sw600dp-mdpi >> All devices with smallest width greater than 600dp(7" and 10" tabs) 相反,您可以拥有(从3.2及更高版本开始)drawable-mdpi >>电话drawable-sw600dp-mdpi >>所有最小宽度大于600dp的设备(7“和10”选项卡)

没关系,我只是使用drawable-sw600dp-mdpi而工作正常!

Use sw600dp for 7 inch tablet and sw720dp for 10 inch tablet 将sw600dp用于7英寸平板电脑,将sw720dp用于10英寸平板电脑

Refer http://developer.android.com/guide/practices/screens_support.html 请参阅http://developer.android.com/guide/practices/screens_support.html

drawable-large-mdpi and drawable-large-land-mdpi for 7" tablet portrait and landscape. drawable-large-land-mdpi于7英寸平板电脑纵向和横向的drawable-large-mdpidrawable-large-land-mdpi

Then for 10" tablet portrait and lanscape drawable-xlarge-mdpi and drawable-xlarge-land-mdpi respectively. 然后分别使用10“平板电脑纵向和横向drawable-xlarge-mdpidrawable-xlarge-land-mdpi

Working fine. 工作正常。 It supports from API level 8 从API级别8开始支持

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何处理大量动画矢量绘图? - How to handle large amount of animated vector drawables? 使用矢量drawable时,通知会引发错误 - Notification throws error when using vector drawables API> = 13的值-小,值-正常,值-大,值-x大的等效文件夹是什么? - what are the equivalent folders for values-small, values-normal, values-large, values-xlarge for API>=13? 位图大小超过VM预算与使用drawables android - bitmap size exceeds VM budget vs using drawables android 使用自定义背景可绘制对象时,EditText背景已损坏 - Corrupted EditText backgrounds when using custom background drawables 7165X786的大图像尺寸无法在实际设备中显示(平板电脑) - 7165X786 size of large image could't be display in real device(Tablets) 使用加速度计为Android平板电脑构建车速表的代码中的问题 - problem in code to build speedometer using accelerometer for android tablets 在 android 设备(手机、平板电脑等)上使用 Kiosk 模式 - Using Kiosk mode on android device(mobile,tablets etc) 您真的可以从使用您的应用程序中过滤掉平板电脑吗? - Can you really filter in/out tablets from using your app? 资产中的抽屉 - Drawables in Assets
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM