You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.
I have some basic getView() code that is as follows:
public View getView(int position, View convertView, ViewGroup viewGroup) {
View v = inflater.inflate(R.layout.gallery_image_layout, null);
ImageView i = (ImageView) v.findViewById(R.id.houseImage);
i.setLayoutParams(new FrameLayout.LayoutParams(pictureWidth,
FrameLayout.LayoutParams.MATCH_PARENT));
FrameLayout layout = (FrameLayout) v
.findViewById(R.id.rootFrameLayout);
layout.setLayoutParams(new EcoGallery.LayoutParams(pictureWidth,
EcoGallery.LayoutParams.MATCH_PARENT));
House h = getItem(position);
AQuery aq = new AQuery(mContext);
aq.id(i).image(h.thumbnailURL, true, true, pictureWidth, 0);
return v;
}
When using AQuery it seems to never stop calling getView() and the gallery is blank with nothing there. Changing the two lines out to a simple ImageView.setImageResource() fixes it.
Any idea what's going on?
The text was updated successfully, but these errors were encountered:
I have some basic getView() code that is as follows:
public View getView(int position, View convertView, ViewGroup viewGroup) {
View v = inflater.inflate(R.layout.gallery_image_layout, null);
ImageView i = (ImageView) v.findViewById(R.id.houseImage);
i.setLayoutParams(new FrameLayout.LayoutParams(pictureWidth,
FrameLayout.LayoutParams.MATCH_PARENT));
FrameLayout layout = (FrameLayout) v
.findViewById(R.id.rootFrameLayout);
layout.setLayoutParams(new EcoGallery.LayoutParams(pictureWidth,
EcoGallery.LayoutParams.MATCH_PARENT));
House h = getItem(position);
AQuery aq = new AQuery(mContext);
aq.id(i).image(h.thumbnailURL, true, true, pictureWidth, 0);
return v;
}
When using AQuery it seems to never stop calling getView() and the gallery is blank with nothing there. Changing the two lines out to a simple ImageView.setImageResource() fixes it.
Any idea what's going on?
The text was updated successfully, but these errors were encountered: