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: My xml layout is here: 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
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; }
& amp; Gallery Android: id = "@ + id / gallery" Android: background = "# 000000" Android: layout_width = "wrap_content" Android: layout_height = "100dp" Android: layout_aligenpathbotum = "true" />
Comments
Post a Comment