すべてのリストアイテムは、ポートレートモードとランドスケープモードで正常に機能したように作成する必要があるように、ビュー部分でアダプターにいくつかの変更を加えてみてください
public View getView(int position, View convertView, ViewGroup parent) {
if (convertView == null) {
convertView = ((LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.gallery_main_page_grid_item, parent, false);
}
Holder holder = new Holder();
AQuery aq = listAQ.recycle(convertView);
holder.imgView_Grid_Thumbnail_Gallery = (ImageView) convertView.findViewById(R.id.imgView_Grid_Thumbnail_Gallery);
if (holder.imgView_Grid_Thumbnail_Gallery != null) {
aq.id(holder.imgView_Grid_Thumbnail_Gallery.getId()).image(dataArray.get(position).get("thumbUrl") + "/11");
}
holder.txtView_Grid_Name_Gallery = (TextView) convertView.findViewById(R.id.txtView_Grid_Name_Gallery);
if (holder.txtView_Grid_Name_Gallery != null) {
aq.id(holder.txtView_Grid_Name_Gallery.getId()).text(dataArray.get(position).get("user_name"));
Typeface txtViewForName = Typeface.createFromAsset(convertView.getContext().getAssets(), "fonts/arial_bold.ttf");
holder.txtView_Grid_Name_Gallery.setTypeface(txtViewForName);
}
このようにリストアイテムを追加してみてください。お役に立てば幸いです。
if(convertView == null)if(holder.txtView_Grid_Name_Gallery!= null)
if (holder.imgView_GridItem_Gallery != null) {
Bitmap cachedImage = aq.getCachedImage(R.drawable.loading);
String publicUrl = dataArray.get(position).get("publicUrl") + "/13";
if (aq.shouldDelay(convertView, parent, publicUrl, 0)) {
aq.id(holder.imgView_GridItem_Gallery.getId()).image(cachedImage, 0.75f);
} else {
aq.id(holder.imgView_GridItem_Gallery.getId()).image(publicUrl, true, true, 0, 0, cachedImage, 0, 0.75f);
}