Description:
I am downloading font file and when file is downloaded i am using that file as a custom font. But when row 1 is updated it also update row 8 and vice-versa. I have try all the ways but i am unable to solve. Code of getView is below. Please help me to solve this issue.
Thanks in advance.
public View getView(int position, View convertView, ViewGroup parent) {
    View view = convertView;
    ViewHolder holder;
    if(convertView == null) {
        Log.d("inside value", position + "");
        holder = new ViewHolder();
        view = inflater.inflate(R.layout.sub_family_item, null);
        holder.subVariantText = (TextView) view.findViewById(R.id.sub_family_style_text);
        holder.subTextStyle = (TextView) view.findViewById(R.id.text_style);
        holder.progressBar = (ProgressBar) view.findViewById(R.id.progress_bar_id);
        view.setTag(holder);
    }
    else
    {
        holder = (ViewHolder) view.getTag();
    }
    SubFont fontStyle = getItem(position);
    if(fontStyle != null)
    {
        holder.subVariantText.setText(fontStyle.getSubList());
        holder.subTextStyle.setText(fontStyle.getFontStyleText());
    }
    File file = new File(FontConstant.folder+"/fontFile" + selectedPosition + position + ".ttf");
    if(file.exists() && file.length() == this.fileSize)
    {
        TextView textView = (TextView) view.findViewById(R.id.text_style);
        holder.progressBar.setVisibility(View.INVISIBLE);
        Typeface custom_font = Typeface.createFromFile(file);
        holder.subTextStyle.setTypeface(custom_font);
        holder.subTextStyle.setVisibility(View.VISIBLE);
    }
    return view;
}
static class ViewHolder
{
    TextView subVariantText;
    TextView subTextStyle;
    ProgressBar progressBar;
}
 
     
     
     
    