简体   繁体   English

Android:SectionIndex 对话框的自定义布局

[英]Android: Custom layout for the SectionIndex dialog

I have a Custom ListView containing events.我有一个包含事件的自定义 ListView。 The Adapters SectionIndexer indexes the day of the week and time of the events upon fastscrolling (eg Monday 10:00) but with the default styling of the fastscrolling text, the text is to big and gets cut at the edges. Adapters SectionIndexer 索引快速滚动时事件的星期几和时间(例如星期一 10:00),但使用快速滚动文本的默认样式,文本会变大并在边缘被剪切。

Is there any way to change the layout of the SextionIndexer dialog?有没有办法改变 SextionIndexer 对话框的布局? I specifically want to remove the box in the background (or enlarge it to match the day and time displayed) and change the textSize.我特别想删除背景中的框(或将其放大以匹配显示的日期和时间)并更改 textSize。

There must be a way:) I can't be the only one wanting to index something else than the first letters!一定有办法:) 我不可能是唯一一个想要索引第一个字母以外的东西的人!

Maybe you already got your answer but anyway for you and others I found a post about this problem Take a look at this post Fast Scroll display problem with ListAdapter and SectionIndexer也许您已经得到了答案,但无论如何,对于您和其他人来说,我找到了一篇关于这个问题的帖子 看看这个帖子Fast Scroll display problem with ListAdapter and SectionIndexer

Hope it helps!希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM