Code Monkey home page Code Monkey logo

Comments (6)

H07000223 avatar H07000223 commented on August 18, 2024

点击tab和滑动viewpager的数据不同是神马意思
你可以使用CommonTabLayout那个是分离的

from flycotablayout.

yyf1994 avatar yyf1994 commented on August 18, 2024

我现在有个需求,是点击底部菜单的时候显示所有的,然后滑动的时候显示查询出来的数据,不知道能不能实现

from flycotablayout.

H07000223 avatar H07000223 commented on August 18, 2024

这么变态的需求。。。
你可以尝试下在tab点击监听事件记录点击状态,false的话就认为滑动,设置不同的数据源

from flycotablayout.

yyf1994 avatar yyf1994 commented on August 18, 2024

好的,谢谢

from flycotablayout.

yyf1994 avatar yyf1994 commented on August 18, 2024

tab点击的时候设置为true,那什么情况下在设置为false呢?点击之后默认也滑动了viewpager

from flycotablayout.

yyf1994 avatar yyf1994 commented on August 18, 2024

不好意思,解决了,根据手势判断的

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.