lucasr / twoway-view

[DEPRECATED] RecyclerView made simple
5.23k stars 1.02k forks source link

Scrolling is interrupted when a child view is changed asynch (for example when loading an Image) #238

Open Alex100 opened 9 years ago

Alex100 commented 9 years ago

To simply reproduce the behaviour open the LayoutAdapter.java of the sample Project and add the following lines. This will simulate a view change like it happens when a image is requested asynchronous.

    @Override
    public void onBindViewHolder(final SimpleViewHolder holder, int position) {
        holder.title.postDelayed(new Runnable()
        {
            @Override
            public void run()
            {
                holder.title.setTextSize((float) (Math.random() * 100));
            }
        }, 500);
       holder.title.setText(mItems.get(position).toString());
    ...}
leohgz commented 8 years ago

I ´ve algo having this issue. Any help?