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 7828659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:25:49+00:00 2026-06-02T10:25:49+00:00

My app consists of a round ball whose radius I have specified as 35

  • 0

My app consists of a round ball whose radius I have specified as 35 pixels in the code. The user muse prevent the ball from colliding with other balls.

I have drawn an 800 px by 800 px vector graphic with 72 ppi resolution that I want to use as the bitmap for this image.

What sizes do I scale the image to for the drawable-ldpi, -mdpi and -hdpi folders so that the bitmap is the same size on all devices and also so that the collision detection works fine ? i.e. The app calculates the ball to be 35 pixels but the screen shows a smaller or larger image so the collisions will be all wrong and the user won’t know what’s going on.

I really don’t know much about this so any help will be hugely 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-02T10:25:50+00:00Added an answer on June 2, 2026 at 10:25 am

    From the android developer guide:

    To create alternative bitmap drawables for different densities, you
    should follow the 3:4:6:8 scaling ratio between the four generalized
    densities. For example, if you have a bitmap drawable that’s 48×48
    pixels for medium-density screen (the size for a launcher icon), all
    the different sizes should be:

    36x36 for low-density
    48x48 for medium-density
    72x72 for high-density
    96x96 for extra high-density
    

    Also, one of the best practices for supporting multiple screen resolutions is: “Do not use hard-coded pixel values in your application code”.

    Since your applications deals with pixel values at runtime, you might want to read the section Additional Density Considerations and below that section.

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

Sidebar

Related Questions

Right so I have a simple app that consists of a calendar a Set
I have an app that so far consists of two Activities: The Main Menu
I have a small multiview app. It consists of a UITabBarController with a nav
Despite similar question was asked , I have differnet situation: My app consists mostly
I have an Android App which consists on different modules. The Main module is
My app consists of a TabBar and several TableViews. I want to have the
My Android app consists of a simple tablayout (3 tabs). Let's say the user
i have to modify an asp.net application. The app consists of an huge gridview
I have an app that consists mostly of one instance that is a tree
As the title suggests, I have built an utility based app. The app consists

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.