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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:15:51+00:00 2026-05-27T02:15:51+00:00

I have a Gallery widget that allows a user to select from a variety

  • 0

I have a Gallery widget that allows a user to select from a variety of images which I supply with the app. Because of different screen resolutions, I have different size images in different drawable folders. Eg drawable-large has 1280×800 versions of the images, drawable normal has 480×320. This is so the image looks good once selected on all resolutions.

The problem I am having is that the Gallery widget, on large resolutions, ends up using the 1280×800 versions of the images to populate the widget. With around 6 of these images, the VM heap memory becomes too large and the app stops working.

Is there any way to force loading images from a specific drawable folder?

I know I could easily solve the problem by adding extra images to my folders but I don’t want to increase the size of my app too much.

  • 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-05-27T02:15:51+00:00Added an answer on May 27, 2026 at 2:15 am

    You can create aliases to your resources, see http://developer.android.com/guide/topics/resources/providing-resources.html#AliasResources

    You can then put all your gallery image that are used by multiple resolution in one place, so as to not have resource duplicate in your folders.

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

Sidebar

Related Questions

I have gallery.php that loads images with src path from a database. I also
I have an Android Gallery widget that displays several ImageViews with pictures from the
I have a photo gallery I would like that every time a user does
friends, i have a page on which i am displaying image from gallery then
I've developed a module which allows the user to upload images to a little
I have a gallery of images that i have set up and when a
I have used gallery widget to display downloaded images.But unfortunately I am running into
I am downloading images from web and i use Gallery widget to display the
I have a Gallery-style app that has been already deployed. My local version has
I have an android.widget.Gallery with ImageView and a Checkbox on each Item. The user

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.