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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:13:15+00:00 2026-05-30T21:13:15+00:00

I am using an Image view with these XML attributes <ImageView android:id=@+id/widget_list_bitmap android:layout_width=wrap_content android:layout_height=wrap_content

  • 0

I am using an Image view with these XML attributes

<ImageView
    android:id="@+id/widget_list_bitmap"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="#00000000"
    android:scaleType="center"
    android:src="@drawable/place_holder" >
</ImageView>

and at runtime I create a let’s say 400×400 bitmap, save it to a file and set the ImageView src using a file URI

remoteViews.setUri(R.id.widget_list_bitmap, “setImageURI”, myFileUri);

(this is to avoid RemoteViews issues with large bitmaps).

Everything works fine except that the displayed image is scaled down and is smaller than 400×400, more like 250 x 250 (possibly 400/density, density = 1.5).

Is there a way to force an ImageView to really not scaling images it fetches from URI?

  • 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-30T21:13:17+00:00Added an answer on May 30, 2026 at 9:13 pm

    You could manually download it and when you load it with BitmapFactory set inScaled to false. Then you would use setImageViewBitmap instead of setUri or setImageViewUri.

    Update:

    Unfortunately I don’t really see a way around this using setUri. An alternative to using setUri to get around the 1MB limit is to use setImageViewBitmap but slice up the bitmap and display it on multiple views, maybe a 2×2 or 3×3 grid of ImageViews or something like that. You’d have to split it into multiple updates using partiallyUpdateAppWidget, but I think it should work. The hitch is that this requires API 11.

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

Sidebar

Related Questions

I am using a webview and on that web view i have a image.
i can't display the image on my aspx view.. i'm using mysql as database
How to upload image URL in SQL server and retrieve in grid view using
I am designing an app in xml android. I have been using lots of
I am using an SVG image on a page (via the CSS background-image property)
Is this the most efficient way to retrieve these xml elements using php? It
I am assigning to an ImageView contacts images using this code: mPhotoView = (ImageView)
Apart from using image on the button, how can I write X Y on
Any idea how I can draw Bullet Points using Flex? instead of using image
I'm using an image component that has a FromBinary method. Wondering how do I

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.