Simple image gallery with HorizontalScrollView
问题 I'm writing an image gallery with horizontal scrolling. Images must be added programatically. I use a custom horizontal scroll view to process and add images as in the following code: public void setViewList(Integer linearLayoutId, Integer[] imageIdList, Activity activity) { displayMetrics = ImageUtils.getDisplayMetric(activity); LinearLayout ll = (LinearLayout) findViewById(linearLayoutId); for (Integer imgId : imageIdList) { ImageView imageView = new ImageView(getContext()); imageView