You need to set the LayoutParams of the returned view from your adapter's getView() method as follow: Override public View getView(int position, View convertView, ViewGroup viewGroup) { // current code here .. v. SetLayoutParams(new Gallery. LayoutParams(LayoutParams.
MATCH_PARENT, LayoutParams. MATCH_PARENT)); return v; } As for the ScaleType on the ImageView use centerInside if you want the whole image to fit the space, or use centerCrop if it's fine to crop it.
You need to set the LayoutParams of the returned view from your adapter's getView() method as follow: @Override public View getView(int position, View convertView, ViewGroup viewGroup) { // current code here .. v. SetLayoutParams(new Gallery. LayoutParams(LayoutParams.
MATCH_PARENT, LayoutParams. MATCH_PARENT)); return v; } As for the ScaleType on the ImageView, use centerInside if you want the whole image to fit the space, or use centerCrop if it's fine to crop it.
Thanks. All the images seem so blurry, even though they are high res. – Adam yesterday.
You can set height and width to fill_parent and then use setScaleType. Maybe use ScaleType CENTER_INSIDE.
This doesn't do anything. I must mention that the default state of the images are that the thumbs are small and centered, not filling the width of the screen. The thumbs appear to overlapping the next one as well.
– Adam Nov 7 at 23:29 Can you post the contents of gallery_layout? – kabuko Nov 7 at 23:32.
I'm using a Gallery widget adapter class to lazy load images in. The images I'm getting from the web service are 640x431. I want the images to fill the screen by width, while keeping the same aspect ratio no matter what what the height is.
I'm not sure how to handle this type of scaling.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.