XML
===
<HorizontalScrollView android:id="@+id/horizontalScrollView2" android:layout_width="fill_parent" android:layout_height="@dimen/val_70" android:focusable="false">
<LinearLayout android:id="@+id/llGallery" android:layout_width="fill_parent" android:layout_height="@dimen/val_70" android:gravity="center" android:orientation="horizontal" android:scrollbars="none" />
</HorizontalScrollView>
for (int i = 0; i < alstPath.size(); i++) {
final View addMediaView = getLayoutInflater().inflate(R.layout.edit_post_image_layout, null);
ImageView imgMedia = (ImageView) addMediaView.findViewById(R.id.imgMedia);
imgMedia.setAdjustViewBounds(true);
Log.e("", "Image Path::::::"+alstPath.get(i).getImageThumb().toString());
//mImageLoader.DisplayImage(alstPath.get(i).getImageThumb(), imgMedia, false, R.drawable.ic_launcher); imageLoaderSquare.DisplayThumbImage(alstPath.get(i).getImageThumb(), imgMedia, 1);
imgMedia.setTag(alstPath.get(i));
ImageView imgPlay = (ImageView) addMediaView.findViewById(R.id.imgPlay);
imgPlay.setTag(alstPath.get(i));
imgPlay.setVisibility(View.GONE);
// ImageView imgDelete = (ImageView) addMediaView.findViewById(R.id.imgDelete);// imgDelete.setTag(alstPath.get(i)); llGallery.addView(addMediaView);
}