简体   繁体   English

生成没有图标大小的Android图像

[英]Generate Android images that are not icon sized

I have a set of 4 images I plan to display at the first launch of my app inside of a ViewPager. 我打算在ViewPager中首次启动应用程序时显示一组4张图像。 Each of them is 1MB, so that's 4MB total 它们每个都是1MB,所以总共是4MB

I want these images to be shown for any density screen. 我希望这些图像可以在任何密度屏幕上显示。

  • Where should I place these images? 这些图像应该放在哪里?
  • In which size? 什么尺寸
  • Will duplication increase the size of my app? 复制会增加我的应用程序的大小吗?
  • Maybe a more efficient way to do it? 也许这样做更有效? (one location for these drawables) (这些可绘制对象的一个​​位置)

The closest I've found is http://romannurik.github.io/AndroidAssetStudio/ but it's only for icons 我找到的最接近的是http://romannurik.github.io/AndroidAssetStudio/,但这仅用于图标

Thanks! 谢谢!

Q1.2. Q1.2。 Location: /res/drawable . 位置: / res / drawable You can have many version of those images and place them in different folder: drawable-hdpi , drawable-ldpi ... For better result, please read http://developer.android.com/guide/practices/screens_support.html 您可以使用这些图像的许多版本,并将它们放置在不同的文件夹中: drawable-hdpidrawable-ldpi ...为了获得更好的结果,请阅读http://developer.android.com/guide/practices/screens_support.html

Q3. Q3。 Duplication will definitely increase the size of your app. 复制肯定会增加您的应用程序的大小。 But common users will possibly ignore its size is not ridiculously big. 但是普通用户可能会忽略它的大小并不是可笑的大。

Q4. Q4。 You can store only one image for every screen size, but you need more coding work to scale the drawable to fit the screen of different device. 每个屏幕尺寸只能存储一个图像,但是需要更多的编码工作来缩放可绘制对象以适合不同设备的屏幕。 For better result please read: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html 为了获得更好的结果,请阅读: http : //developer.android.com/training/displaying-bitmaps/load-bitmap.html

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM