Code Monkey home page Code Monkey logo

Comments (7)

H07000223 avatar H07000223 commented on August 18, 2024

more details

from flycotablayout.

zjc avatar zjc commented on August 18, 2024

you can send event to update the tablayout in the MainActivity

from flycotablayout.

foreverxiongtao avatar foreverxiongtao commented on August 18, 2024

比如说viewpager的adapter的数量发生了变化,sldingtablayout的数量没有更新

from flycotablayout.

H07000223 avatar H07000223 commented on August 18, 2024

的确有这个问题等我更新下个版本顺利的话,可能在这周周末最近比较忙😂

from flycotablayout.

foreverxiongtao avatar foreverxiongtao commented on August 18, 2024

辛苦了,调用slidingtablayout.setViewpager(viewpager)时,好像貌似里面的textview 选中的状态还是上一次的,并没有刷新,你可以留意一下

from flycotablayout.

H07000223 avatar H07000223 commented on August 18, 2024

slidingtablayout.setViewpager(viewpager)只在初始的时候用~关于更新的方法我下个版本进行修正

from flycotablayout.

H07000223 avatar H07000223 commented on August 18, 2024

更新到2.0.6了,你试一下,大致使用方式:

mFragments.add(SimpleCardFragment.getInstance("title"));
mAdapter.notifyDataSetChanged();
tabLayout.addNewTab("后title");

from flycotablayout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.