if you listview holder layout contains button or imagebutton .You are set this attribute in getview method of adapter class
if(convertView == null){
convertView = view;
Holder holder = new Holder();
holder.iv_download = (Button)convertView.findViewById(R.id.iv_download);
holder.btn_read = (Button)convertView.findViewById(R.id.btn_read);
holder.iv_download.setFocusable(false);
holder.btn_read.setFocusable(false);
convertView.setTag(holder);
}
if(convertView == null){
convertView = view;
Holder holder = new Holder();
holder.iv_download = (Button)convertView.findViewById(R.id.iv_download);
holder.btn_read = (Button)convertView.findViewById(R.id.btn_read);
holder.iv_download.setFocusable(false);
holder.btn_read.setFocusable(false);
convertView.setTag(holder);
}
No comments:
Post a Comment