Giter Site home page Giter Site logo

您好,通过scale对文字做放大缩小操作,文字会变虚,请问一下有没有什么好的建议解决这个问题呢~ about jxcategoryview HOT 5 CLOSED

wxzwork avatar wxzwork commented on July 29, 2024
您好,通过scale对文字做放大缩小操作,文字会变虚,请问一下有没有什么好的建议解决这个问题呢~

from jxcategoryview.

Comments (5)

pujiaxin33 avatar pujiaxin33 commented on July 29, 2024 1

最新代码已经优化为对font进行缩放,不会有变模糊的现象了

from jxcategoryview.

pujiaxin33 avatar pujiaxin33 commented on July 29, 2024

可以考虑对Font进行操作

from jxcategoryview.

wxzwork avatar wxzwork commented on July 29, 2024

感谢回答。不知道你有没有在用虾米音乐,我看他们首页的切换效果,文字的渐变效果基线是保持一致的,也不会变虚,应该不是通过scale操作的,有没有什么思路分享一下😝~

from jxcategoryview.

pujiaxin33 avatar pujiaxin33 commented on July 29, 2024

缩放依然是控制font,至于基线对准,只需要自定义cell,控制titleLabel的布局即可(项目默认是居中的),参考自定义JXCategoryView

from jxcategoryview.

wxzwork avatar wxzwork commented on July 29, 2024

好的,谢谢~~

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.