Giter Club home page Giter Club logo

Comments (7)

yunuo-tech avatar yunuo-tech commented on June 15, 2024

对了,第二个问题,如果不设置inactiveIcon的话就正常了
4 -14-2018 14-17-20

from hybrid-navigation.

listenzz avatar listenzz commented on June 15, 2024

icon 表示选中效果,inactiveIcon 表示未选中效果。

通过 Garden.setStyle 设置以下选项来控制 文字 的颜色,当只设置 icon 时,也对 icon 生效
bottomBarButtonItemActiveColor: String // 底部 TabBarItem 选中效果
bottomBarButtonItemInactiveColor: String // 底部 TabBarItem 未选中效果

from hybrid-navigation.

yunuo-tech avatar yunuo-tech commented on June 15, 2024

bottomBarButtonItemActiveColor: String // 底部 TabBarItem 选中效果
bottomBarButtonItemInactiveColor: String // 底部 TabBarItem 未选中效果

这个有设置,但是并不起作用,只对文字有效果 对 icon 无效

from hybrid-navigation.

yunuo-tech avatar yunuo-tech commented on June 15, 2024

icon 表示选中效果,inactiveIcon 表示未选中效果。

这两个参数真的会让人误解造成使用方法错误,
建议更换为
icon 表示未选中效果,
inactiveIcon或selectedIcon 表示已选中效果。

from hybrid-navigation.

listenzz avatar listenzz commented on June 15, 2024

当同时设置了 icon 和 inactiveIcon, 颜色就不会对图标生效了

Android 原生代码是 icon 和 inactiveIcon 这两个名称, 这里遵循了 Android 的命名方式。

from hybrid-navigation.

listenzz avatar listenzz commented on June 15, 2024

inactive 表示不活跃,注意前面的 in

from hybrid-navigation.

yunuo-tech avatar yunuo-tech commented on June 15, 2024

inactive 表示不活跃,注意前面的 in
替我英语老师感谢你~ 哈哈,这个我还真不知道,我以为『在活跃』的意思。。。
建议后面增加同时用icon 和 inactiveIcon时能对图标颜色生效的参数,因为有时候会有这个需求。

from hybrid-navigation.

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.