Giter Site home page Giter Site logo

指示器渐变色 about jxcategoryview HOT 10 CLOSED

pujiaxin33 avatar pujiaxin33 commented on July 29, 2024
指示器渐变色

from jxcategoryview.

Comments (10)

pujiaxin33 avatar pujiaxin33 commented on July 29, 2024

我刚下载了app看了下效果,
如果只是讨论颜色的话,它就是在页面加载的时候有一种颜色,加载完成之后,又变成白色。
那你就在页面加载的时候,修改JXCategoryIndicatorLineView实例的indicatorLineViewColor和backgroundColor为指定下标的特殊颜色。加载完成,同样修改JXCategoryIndicatorLineView实例的indicatorLineViewColor和backgroundColor为白色

from jxcategoryview.

haoXu1990 avatar haoXu1990 commented on July 29, 2024

@pujiaxin33 感谢您的回复,当所有页面加载成功,您把所有页面向上滑动到导航栏背景为白色的时候,在左右滑动切换页面的时候会看到下面的指示器线条是会有颜色渐变的, 只修改背景颜色达不到这种效果

from jxcategoryview.

pujiaxin33 avatar pujiaxin33 commented on July 29, 2024

纳尼,这是什么产品经理想出来的效果,你从男生滚动到二次元,是颜色渐变过滤,一但选中二次元,又变成了白色。
一会儿渐变,一会儿跳变,我也是服了

from jxcategoryview.

pujiaxin33 avatar pujiaxin33 commented on July 29, 2024

我感觉是不是程序bug啊,如果全是渐变的话,还是很简单的

from jxcategoryview.

haoXu1990 avatar haoXu1990 commented on July 29, 2024

@pujiaxin33 最神奇的是被我们的产品看到了,还非要一模一样的,商量了半天我说最多实现一个指示器线条渐变色

from jxcategoryview.

pujiaxin33 avatar pujiaxin33 commented on July 29, 2024

如果只是渐变色,就是放一个渐变色layer,然后把lineView当做它的mask控制显示范围。你参考下qq红点效果,JXCategoryIndicatorBallView被添加到UICollectionView上面,它的frame是(0,0,0,0)。只是控制两个红点视图的frame,即使它们超出了JXCategoryIndicatorBallView也可以被显示出来。你再尝试一下呢,不行明天再call我。

from jxcategoryview.

haoXu1990 avatar haoXu1990 commented on July 29, 2024

@pujiaxin33 好的感谢您的指点,我去试试

from jxcategoryview.

pujiaxin33 avatar pujiaxin33 commented on July 29, 2024

稍等,我有个想法,就是把渐变色layer放到JXCategoryIndicatorLineView上面,根据手势进度渐变layer的frame。你先试试吧,我明天抽空弄一下

from jxcategoryview.

pujiaxin33 avatar pujiaxin33 commented on July 29, 2024

老哥,加入QQ群: 112440151 渐变色基本搞定了,我把文件发给你

from jxcategoryview.

haoXu1990 avatar haoXu1990 commented on July 29, 2024

@pujiaxin33 非常感谢您花费时间处理我的问题。

from jxcategoryview.

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.