Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9191617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:43:39+00:00 2026-06-17T20:43:39+00:00

I have been designing/creating buttons for my apps, but when I compare to them

  • 0

I have been designing/creating buttons for my apps, but when I compare to them to highly successful commercial apps like Google+ or Facebook, the image quality just does not look the same. I have viewed the buttons on the emulator and on devices.

I use Photoshop CS5 and always make sure I am designing the .png in RGB and 300 DPI.
enter image description here

I then create the button in XML specifying the pressed and focused states:

about_btn.xml

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/about_down"
          android:state_pressed="true" />
    <item android:drawable="@drawable/about_down"
          android:state_focused="true" />
    <item android:drawable="@drawable/about_up" />
</selector>

I then use the button in my layout like so:

main.xml

        <Button
            android:id="@+id/about_button_xml"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/about_btn"
            android:paddingTop="5dp" />

Is there some type of flaw in the way the buttons are being scaled in the layout or am i saving/designing the buttons a bad format, am I using the wrong software….i am just not sure.

What do design specifications and software do you recommend? Any suggestions or tutorials would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:43:41+00:00Added an answer on June 17, 2026 at 8:43 pm

    To add a little specificity to m0skit0’s answer: You should probably be designing at 320dpi. Take the 320dpi version and put it in drawable-xhdpi, and put 240 and 160 dpi scaled versions in drawable-hdpi and drawable-mdpi. If you don’t provide a resource at the density of the device’s screen, the system will attempt to scale up a lower-density image (or scale down a higher-density one if one is provided, but it rarely does it as well as Photoshop and can’t use judgment about how to scale odd-sized parts of the image crisply when necessary).

    If you only provide an image in the drawable folder, the system will assume it’s 160dpi for historical reasons – and that’s almost certainly not what you want; you’ll end up with a fuzzy, overly large, and upscaled version of your original image.

    Concretely: a 100px image in drawable-mdpi or just plain drawable will be rendered as a 200px image on an xhdpi screen using scaling. If you really designed that image at ~320dpi to be 100px, the right thing is to put the 100px version in drawable-xhdpi, a 50px version in drawable-mdpi, and a 75px version in drawable-hdpi.

    Google writes a lot about this on their site; see their designer info and dev info. Visually:

    Scaled icons
    (CC Attribution 2.5 licensed image from the above Android Designer site).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been designing a site locally in PHP 5, but have come across
I am new comer to android but not to java. I have been designing
I have been designing websites for a while now, but there is one thing
I have been designing with jquery and using the jquery UI widgets .. but
Can anyone help? I have been designing a site using Javascript but the rest
I have been designing controls in Visual Studio 2008 and as you may have
I have been working on designing a file server that could take the load
I have been tasked with designing my web services client code to use the
I have been tasked with designing an ecommerce solution. The aspect that is causing
Assuming that best practices have been followed when designing a new database, how does

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.