Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>try to do some changes in your adapter in view portion like your all list item should be written like i did its working fine for me with portrait and landscape mode</p> <pre><code> 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); } </code></pre> <p>try to add your list item like this way.hope it will helpful. </p> <p>if (convertView == null) if (holder.txtView_Grid_Name_Gallery != null) </p> <pre><code>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); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload