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

  • Home
  • SEARCH
  • 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 9162855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:18:45+00:00 2026-06-17T14:18:45+00:00

I want to create an Android app with ImageButton s that look good, and

  • 0

I want to create an Android app with ImageButtons that look good, and appropriately-sized, on a wide variety of devices. I’m aware that multiple levels of conditionality can be built into Android drawables, the simplest being to create folders like

drawable-ldpi
drawable-mdpi
drawable-hdpi
drawable-xhdpi

for different densities of bitmap. However, buttons that look good on an mdpi phone look poky on an mdpi tablet, and I’d rather use the hdpi bitmaps for that application. There is a way to do this using folders named like

drawable-small-ldpi
drawable-normal-ldpi
drawable-large-ldpi
drawable-xlarge-ldpi
drawable-small-mdpi
drawable-normal-mdpi ...

etc. As you can see there are sixteen different folders to cover conditional screen sizes for each density. I can probably reduce this somewhat by using defaults like

drawable-ldpi
drawable-large-ldpi
drawable-xlarge-ldpi ...

but my intention is to use the SAME drawables for large and x-large screens on one density as for the small and normal screens on the density above. I feel that this method is a waste of resource space in the APK. Is there a way to create SINGLE drawable folders that contain images targeted for:

  • Small low-density devices
  • Large low-density AND small medium-density devices
  • Large medium-density AND small high-density devices
  • Large high-density AND small extra-high-density devices
  • Large extra-high-density devices?

Alternatively, is there another way to assert conditionality based on device size AND device density?

  • 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-17T14:18:46+00:00Added an answer on June 17, 2026 at 2:18 pm

    Taken from http://developer.android.com/guide/topics/resources/providing-resources.html#AliasResources:

    “When you have a resource that you’d like to use for more than one device configuration (but do not want to provide as a default resource), you do not need to put the same resource in more than one alternative resource directory. Instead, you can (in some cases) create an alternative resource that acts as an alias for a resource saved in your default resource directory.”

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

Sidebar

Related Questions

I want to create an Android app that can be used on 2.3.3 all
I want to create a layout for an Android app that has a numeric
I am trying to create an android app ..for that i want to know
I want to create an android app that has a fix frame and a
In my Android app I want to create a dialog window that contains an
WHAT I WANT TO ACHIEVE => Create an ANDROID app that shows the list
I want to create android app that while i am in my wifi area
i want to create a chat app using flex 4.5 mobile project for android
I want to create an Android application that show the sales report from SQL
I want to create a android search application that can be used to search

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.