Skip to content

Gradienttabstrip适配器调用notifyDataSetChanged()后选中的位置错误 #8

@LwkCoder

Description

@LwkCoder

Gradienttabstrip默认选中的tab下标为0(即ViewPager中第一页),然后调用对应的Adapter.notifyDataSetChanged()后,Gradienttabstrip选中的tab变为第二个了,但是ViewPager里没有变为第二页。
复现方式:
在Demo里添加adapter.notifyDataSetChanged()即可。
tvTitle.postDelayed(new Runnable() { @Override public void run() { adapter.notifyDataSetChanged(); } },2000);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions