liya7907
V2EX  ›  问与答

求助: Android 中通过 FastScroller 中的 sectionIndexer 实现字母索引,在滑动的时候字母的宽高不一致,怎么解决?

  •  
  •   liya7907 · Jan 14, 2016 · 1230 views
    This topic created in 3801 days ago, the information mentioned may be changed or developed.

    ramework 层刚入门,在改这个 bug ,横屏下 fastscroll 滚动式的字母索引,宽高不一致,比如 W , M 这种字母比 HLI 这类宽下,所以在同一个 padding 值下就有一个宽高不一,现在就是要求必须一样。我在系统的 fastScroll 的 style 中发现,定义的 padding 是 16dp.我将其改成 14,12,10 等等,就 ok 了,没有这个问题,我就是想知道,为啥 padding 都是一样的情况下还是会有这种区别?到底是什么因素决定了字母在 TextView 中的显示?求解,万分感谢

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2653 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 15:50 · PVG 23:50 · LAX 08:50 · JFK 11:50
    ♥ Do have faith in what you're doing.