List items with alternating colors

后端 未结 2 613
渐次进展
渐次进展 2020-12-17 00:32

I have a list view and an adapter that sets alternating background colors to the list items (\"zebra\" list style):

public View getView(final int position, V         


        
2条回答
  •  太阳男子
    2020-12-17 01:00

    You need to change your list highlight color if you do it via styles

     
    

    or you can set same attribute in code my_selector is a state drawable - look for examples in the SDK directory :

    
    
    
    
    
        
    
        
        
        
    
        
        
    
        
    
    
    

提交回复
热议问题