简体   繁体   中英

What kind of images should i use for my android app

i am developing an android app and i want an image as a wallpaper and some other images. Should i create these images myself or there are some android libraries where i can download images for my app which i want to publish it in Google play.

I think it depends on what you're after. If you want a static background or other images, then use a .png with different densities (ie hdpi, mdpi, xhdpi, xxhdpi) more about densities: http://developer.android.com/guide/practices/screens_support.html

If you want to use images for buttons, or other widgets you should look into 9patches, using 9patches means you can completely resize the image in your app without any scaling problems, more about 9patches: http://developer.android.com/tools/help/draw9patch.html

But, if you have an image which is likely to change, ie a users profile picture you should probably look at loading it from a URL into an ImageView something like Picasso by square: http://square.github.io/picasso/

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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