Re: [android-developers] ImageView Problem

2010-12-26 Thread 陈彧堃
Did you forget to set the src of the imageview?

On Sat, Dec 25, 2010 at 9:23 PM, ricardocunha ricardocu...@gmail.comwrote:

 Hi Everybody,

 I have a simple doubt but, I don´t understand what is happening.

 I have a simple ImageView over a Linear Layout:
 ImageView android:layout_height=wrap_content android:id=@+id/
 LogImgTela android:layout_width=wrap_content/ImageView

 When I running this layout on a Activity the Emulator shows on the
 screen EditText Buttons and TextViews.

 But when I put an imagem on the src property of ImageView the emulator
 shows an Exception when executing the method:
 setContentView(R.layout.login);

 login.xml is my layout, and I set the src property using the Visual
 mode of eclipse ADT plugin, and the plugin shows the image, but when I
 running shows the exception:

 Binary XML file line #8: Error inflating class
 android.widget.ImageView

 Note: When I was using a Project with Android 1.6 sdk Level 4 works
 perfectly, but I need to change to 2.0 Version because bluetooth, and
 all the images on the project show the same exception.


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

[android-developers] ImageView Problem

2010-12-25 Thread ricardocunha
Hi Everybody,

I have a simple doubt but, I don´t understand what is happening.

I have a simple ImageView over a Linear Layout:
ImageView android:layout_height=wrap_content android:id=@+id/
LogImgTela android:layout_width=wrap_content/ImageView

When I running this layout on a Activity the Emulator shows on the
screen EditText Buttons and TextViews.

But when I put an imagem on the src property of ImageView the emulator
shows an Exception when executing the method:
setContentView(R.layout.login);

login.xml is my layout, and I set the src property using the Visual
mode of eclipse ADT plugin, and the plugin shows the image, but when I
running shows the exception:

Binary XML file line #8: Error inflating class
android.widget.ImageView

Note: When I was using a Project with Android 1.6 sdk Level 4 works
perfectly, but I need to change to 2.0 Version because bluetooth, and
all the images on the project show the same exception.


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


[android-developers] ImageView problem

2009-03-30 Thread Ramesh

Hi,

I am working on an android project where the local and remote image
files and their thumbnails are to be displayed. The imageview works
perfectly till the thumbnail part. After that it crashes depending
upon the size of the image file. For example, if the size was ~380kb,
it will open once and then crash the next time you click on its
thumbnail. An image of size around ~150 kb opens properly 3 times and
then crashes the 4th time.

It seems like a out of memory error but I have not been able to work
out a solution. I tried to force close the activity before launching a
new one but that didn't help either. Does anyone has any idea as to
how to work around this issue? I have seen similar problem being
posted on the google group (http://groups.google.com/group/android-
beginners/browse_thread/thread/06da00e2b221822f). Its not the same but
seems like its also the result of an out of memory state.

Any help or pointers will be greatly appreciated.

Thanks in advance.

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