Top-most and Bottom-most Horizontal Divider does not show up in ListView

前端 未结 5 656
情话喂你
情话喂你 2021-02-08 21:49

I am using a ListView. But the top-most and bottom-most horizontal bar does not show up. Why? I am using this:

android:divider=\"@android:drawable/divider_horiz         


        
5条回答
  •  -上瘾入骨i
    2021-02-08 22:20

    I had the same problem with LibSlideMenu.

    As android:headerDividersEnabled set to true did not show the header divider in the Sliding Menu, I solved it by changing slidemenu.xml (not slidemenu_listitem.xml) to

    
    
        
          (this is the header image on top of the menu)
    
        
    
         (this is the ListView for the MenuItems)
        
    
    
        
        
    
    

    This will add the divider manually.

提交回复
热议问题