The best guide I have found to provide the correct pixel-sized images for every density in an Android project is by Anup Cowkur.

In a post in the StackOverflow forum, he notes that you have to create multiple resources for your app. Android has 4 resolutions (ldpi,mdpi,hdpi and xhdpi) and 4 generalized screen sizes (small, medium, large and extra large). So you have to make 4 layouts (or 3 if you don’t plan on supporting tablets, since tablets come under the extra large category) to support the screen sizes.

For pixel-sized resolution, here is a calculation he provided which can greatly help into providing high quality drawables according to density.

  • ldpi is 0.75x dimensions of mdpi
  • hdpi is 1.5x dimensions of mdpi
  • xhdpi is 2x dimensinons of mdpi

Android will automatically select the best combination of layout and image depending on the device. So it does not mean that you have to create a drawable for each density folder including those for tablets.

This guide was really helpful in enabling me to provide the correct image sized drawables.

This is a Sponsored post written by me on behalf of Social Power for SocialSpark. All opinions are 100% mine.

You might wonder what oil change loyalty discounts can possible be related to in a tech portal such as this. Actually, the reason why this is in a technology blog is the means with which an oil change loyalty discount can be possible through the power of social media.

I am a firm believer that for a business to succeed, loyal customers are what makes a company stable. Thus, even miniature things like oil change loyalty discounts should be made possible to encourage customers to stick to that service provider.

For customers who want this possible, it can be made possible through Social Power. This platform takes advantage of the power of social networking and harnesses the untapped power of social media to resolve everyday issues, both big and small.

So, how to make this a possible reality?

Visit Social Power Oil Changes, join the early movement and support this. Share it socially and when there is enough support, they coordinate with the people who can help hammer out a resolution. Think about this as a collaboration in a 21st century style.

If you want to join in on the bandwagon, visit the Social Power portal and watch the intro video. Please support and share this to your friends to raise more awareness!

Visit Sponsor's Site

Related Posts Plugin for WordPress, Blogger...