English 中文(简体)
是否更容易提供一台高分辨率的PNG资产和让安斯缩小这一规模?
原标题:Is it easier to supply one high resolution drawable PNG asset and let Android scale this down?

I m 想为安乐团树立背景形象,我不敢肯定与资产的最佳关系。

简单地向资产供应900x570或其中的 about光和代谢系统,或者自动将其安装在光店,或者在3个“条码”中提供这些图像?

空间的节省规模将非常小:大约10-20k,因此我更有理由简单地照亮图像本身。

定向标注器将升至2.0,并用支持斜体。

最佳回答

从开发商的角度来看,给你注入新形象显然比较容易,但大多数电话看不好。 照片店比我的经验更能扩大算法。

问题回答

如果你在任何可提取、可推土机、可提取-mdpi、可提取-hdpi和roid中仅具体说明一个拷贝图像,则按缺省比额表为您提供。

然而,由于业绩原因,这是一种好的做法,使不同的大小图像出现差异。

这种做法比较容易,但在业绩方面成本较高。

If the target density is known, it ll be better to script all the needed conversion for your icons / splashscreen / images and forget about that to the next time your masters change… at no cost…

这里的一个例子是,将图像Magick用于我方的漫画和从主编的目目目:

#!/bin/bash
convert -transparent white ic_padlock.pdf ic_padlock.png
convert -scale 36x36 ic_padlock.png ../../res/drawable-ldpi/ic_launcher_padlock.png
convert -scale 48x48 ic_padlock.png ../../res/drawable-mdpi/ic_launcher_padlock.png
convert -scale 72x72 ic_padlock.png ../../res/drawable-hdpi/ic_launcher_padlock.png
convert -scale 24x24 ic_padlock.png ../../res/drawable-ldpi/ic_listview_padlock.png
convert -scale 32x32 ic_padlock.png ../../res/drawable-mdpi/ic_listview_padlock.png
convert -scale 48x48 ic_padlock.png ../../res/drawable-hdpi/ic_listview_padlock.png
convert -transparent white ic_padlock_ok.pdf ic_padlock_ok.png
convert -scale 36x36 ic_padlock_ok.png ../../res/drawable-ldpi/ic_listview_padlock_ok.png
convert -scale 48x48 ic_padlock_ok.png ../../res/drawable-mdpi/ic_listview_padlock_ok.png
convert -scale 72x72 ic_padlock_ok.png ../../res/drawable-hdpi/ic_listview_padlock_ok.png

您可以使用密度参数转换,以优化:

convert -density targetdensityxtargetdensity  -transparent white splash.pdf ../../res/drawable/splash.png




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签