Hi Jakob,

That image size would decompress to about 174MB (7445x11998x2), which could
be more than the total amount of RAM available on some devices.  It's pretty
unlikely to work.

-joe



On Thu, Mar 27, 2008 at 2:52 PM, Jakob Bjerre Jensen <
[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> I have a large ImageView:
>
> <ImageView android:id="@..."
>    android:layout_width="7445px"
>    android:layout_height="11998px"
>    android:src="@drawable/img">
> </ImageView>
>
> the source img.gif file is 1167KB large. When I run my app, it
> throws an exception when invoking setContentView(). The error is:
>
> ComponentInfo{...}: android.view.ViewInflate$Inflate Exception: Binary
> XML file line #8: Error inflating class java.lang.reflect.Constructor.
>
> Can this have anything to do with the size of the ImageView? Is there an
> upper
> limit for the size?
>
> Best regards,
> Jakob Bjerre Jensen
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to