Comments (10)
我刚下载了app看了下效果,
如果只是讨论颜色的话,它就是在页面加载的时候有一种颜色,加载完成之后,又变成白色。
那你就在页面加载的时候,修改JXCategoryIndicatorLineView实例的indicatorLineViewColor和backgroundColor为指定下标的特殊颜色。加载完成,同样修改JXCategoryIndicatorLineView实例的indicatorLineViewColor和backgroundColor为白色
from jxcategoryview.
@pujiaxin33 感谢您的回复,当所有页面加载成功,您把所有页面向上滑动到导航栏背景为白色的时候,在左右滑动切换页面的时候会看到下面的指示器线条是会有颜色渐变的, 只修改背景颜色达不到这种效果
from jxcategoryview.
纳尼,这是什么产品经理想出来的效果,你从男生滚动到二次元,是颜色渐变过滤,一但选中二次元,又变成了白色。
一会儿渐变,一会儿跳变,我也是服了
from jxcategoryview.
我感觉是不是程序bug啊,如果全是渐变的话,还是很简单的
from jxcategoryview.
@pujiaxin33 最神奇的是被我们的产品看到了,还非要一模一样的,商量了半天我说最多实现一个指示器线条渐变色
from jxcategoryview.
如果只是渐变色,就是放一个渐变色layer,然后把lineView当做它的mask控制显示范围。你参考下qq红点效果,JXCategoryIndicatorBallView被添加到UICollectionView上面,它的frame是(0,0,0,0)。只是控制两个红点视图的frame,即使它们超出了JXCategoryIndicatorBallView也可以被显示出来。你再尝试一下呢,不行明天再call我。
from jxcategoryview.
@pujiaxin33 好的感谢您的指点,我去试试
from jxcategoryview.
稍等,我有个想法,就是把渐变色layer放到JXCategoryIndicatorLineView上面,根据手势进度渐变layer的frame。你先试试吧,我明天抽空弄一下
from jxcategoryview.
老哥,加入QQ群: 112440151 渐变色基本搞定了,我把文件发给你
from jxcategoryview.
@pujiaxin33 非常感谢您花费时间处理我的问题。
from jxcategoryview.
Related Issues (20)
- 1.6.1的Demo运行报错 HOT 2
- 希望增加一个可以刷新角标的方法 HOT 1
- rtl 模式下选择JXCategoryListContainerType_CollectionView 会导致listView整个反转, HOT 3
- 二级页面使用的时候ListContainerType_ScrollView类型子页面使用Masnory控制台会出现布局警告 HOT 1
- 请问怎么实现学习强国那样的滑动效果? HOT 1
- 如何只支持点击切换栏目,禁止左右滑动来切换 HOT 3
- 有1.5.0之后的版本更新说明么? HOT 1
- JXCategoryTitleImageView样式下设置cellBackgroundSelectedColor无效
- 列表左右滑动存在Bug!会导致UIViewController生命周期错误!!! HOT 1
- 列表滑动后截屏,app推至后台,再次打开app后,页面变白,pagerview上的子controller不显示。
- About PrivacyInfo.xcprivacy HOT 1
- categoryView 是否可以隐藏 HOT 1
- 当设置未选中和选中字体不一致且选中标签title过长显示有问题 HOT 2
- didSelectedItemAtIndex代理方法不触发 HOT 2
- 项目字体为Telugu(泰卢固语),项目和你的demo中字体显示不全,如:సిఫార్స్ చేయుము HOT 4
- Bugly 报错问题 HOT 1
- 滑动闪屏 HOT 2
- 选中回调中,直接调用[categoryView selectItemAtIndex:3]导致下滑线对应不上 HOT 1
- 按照示例代码发现新的问题,就是在文字比较长的的时候,cell整体宽度会比label的实际宽度多出很多,具体可以看下截图(复现的🌹只需要将标题文字改长一点即可)
- 垂直切换的怎么做?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jxcategoryview.