Uhh great!
I just added a comment + starred.

I hope more devs will star it too so it gets some attention..


Cheers,
Yuvi

On Thu, Mar 1, 2012 at 11:56 AM, Efi Merdler-Kravitz
<[email protected]>wrote:

> I can see there is already an open bug -
> http://code.google.com/p/android/issues/detail?id=22590 you are more than
> welcomed to star it.
>
>
> On Thursday, March 1, 2012 12:27:56 PM UTC+2, Efi Merdler-Kravitz wrote:
>>
>> YuviDroid, confirmed your bug, happens on the BitmapDrawable
>> constructor, the DENSITY_DEFAULT is being used which is medium
>> density.
>>
>> On Feb 29, 11:48 am, Efi Merdler-Kravitz <[email protected]>
>> wrote:
>> > I think that medium density is being used by default. The only way I
>> > found to "bypass" it is by using explicit width and height in the xml
>> > layout, e.g.
>> > <ImageView
>> >         android:id="@+id/imageView1"
>> >         android:layout_width="480px"
>> >         android:layout_height="200px" />
>> >
>> > other, better ideas are welcomed.
>> >
>> > On Feb 23, 7:28 pm, YuviDroid <[email protected]> wrote:
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > > I think I found the problem...and it looks like it's an Android bug.
>> > > Drawable.createFromStream() doesn't take as parameter a Resources
>> object,
>> > > and later it calls Drawable.**createFromResourceStream() passing
>> 'null' as
>> > > the Resources parameter.
>> > > From my understanding the resources are then used to ensure that the
>> > > drawable will set its target density correctly, but by being 'null'
>> some
>> > > default density is used.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
YuviDroid
Check out Launch-X <http://android.yuvalsharon.net/launchx.php> (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to