2
I was having a problem with uploading images into one Textview, when I came across a very stupid question, rs, someone would know to answer?
Next, I was trying to upload a large (high resolution) image like background of a Textview, then I discovered that I would have to resize the image to not give problem.
So far so good, but I wondered, after all on android every image is a bitmap???
Because it was loading the image . jpg from the drawable folder, direct as resource (txt.setBackgroundResource()
) I wasn’t even wearing the class Bitmap, however at logcat in error said "problems loading bitmap" (something like that).
So the question is: it doesn’t matter if I’m working with a drawable (R.drawable.img), an image from a url, or a bitmap, android, internally will work/transform, all in bitmap?
I know it’s a stupid question, but if anyone can enlighten me, I’d appreciate it. And also, no matter where the image comes from, I should always resize it like a bitmap?
See how the question became much easier to read after my editing. As it was, my first reaction was not even to read it. See here the resources you can use to format questions and answers.
– ramaral