Hi guys,

has anyone experienced the oddness of imageview?

I have an imageview and other textviews in one layout,
when i tried to set the imageview, below is the code

String baseurl = "http://www.test.com";;
String urlOfImage = baseurl + "1.jpeg";
Drawable image = ImageOperations(getApplicationContext(),urlOfImage);
dealsImage.setImageDrawable(image);


and


private Drawable ImageOperations(Context ctx, String url) {
try {
InputStream is = (InputStream) this.fetch(url);
Drawable d = Drawable.createFromStream(is, "src");
return d;
} catch (MalformedURLException e) {
e.printStackTrace();
return null;
} catch (IOException e) {
e.printStackTrace();
return null;
}
}


the result will be, image is displayed correctly from the server, however,
all textviews, buttons etc are gone!

Has anyone experienced this? And how to resolve this odd issue?

-- 
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

Reply via email to