“Separators” in ListView

后端 未结 4 1298
渐次进展
渐次进展 2020-12-14 05:19

I have an ArrayAdapter which is hooked up to my ListView. I really like the \"separators\" feature in the Evernote Android application, where they

相关标签:
4条回答
  • 2020-12-14 05:32

    A separator is simply a disabled list item, just have your Adapter return the separator where it should be. Seems like SectionIndexer could help.

    0 讨论(0)
  • 2020-12-14 05:37

    We're on our own on this one.

    I made my own ListView with headers for one of my apps: Dhammapada (look for HeadingAdapter and associated classes)

    0 讨论(0)
  • 2020-12-14 05:38

    And here is one which does exactly this : https://github.com/Polidea/android-section-list with transparent section header sticky at the top of the list (similar to iOS section list which comes out of the box there).

    0 讨论(0)
  • 2020-12-14 05:58

    set two layouts on a single screen one above other... then add scroll to layout which is below... then add list view in d second half layout ... fix it up and deploy ur sh$T and its done !! Note : dont add scroll in main layout .. just on layout which is underneath :p

    eg:-

    <LL1 
    bla bla
    >
    
    <LL2 bla bla>
    </LL2>
    
    <LL3 scroll bla bla>
    <ListView bla bla>
    </ListView> 
    
    </LL3>
    
    </LL1>
    
    0 讨论(0)
提交回复
热议问题