to much space between images in gallery android -


Hello, I have an activity that loads a lot of images from the Dobble folder, and puts them in the gallery view from the adapter. The problem is that there is too much space between this image

Here I use getView:

  see public getView (int position View Convertview ViewGroup Parent) {if (convertView == null) {ConvertView = New ImageView (mContext); ConvertViewset layoutPar (new gallery layoutpad (layout perm. WRAP_CONTENT, layout para. WRAP_CONTENT)); } ImageView iv = (ImageView) Convertview; Iv.setImageResource (mThumbIds [status]); Return Convertview; }   

My xml layout is here:

  & amp; Gallery Android: id = "@ + id / gallery" Android: background = "# 000000" Android: layout_width = "wrap_content" Android: layout_height = "100dp" Android: layout_aligenpathbotum = "true" />   

Do I in some way bring images to each other without creating a new view for each image?

Best Regards

Try using Android: between the images Vacancy in layout file to reduce space

Comments