How to set divider between columns in tablelayout?

后端 未结 7 1897
南旧
南旧 2020-12-10 06:07

I want to create a table with column dividers. I want to divide my columns with a vertical bar image. To achieve this I have used \"android:divider=\"@drawable/abc\"

7条回答
  •  情书的邮戳
    2020-12-10 06:50

    What i wanted is a table like this

    table image with vertical dividers

    I added this in my styles.xml

        
    
        
    
    Then in my table layout 
    
     
    
                
    
                    
    
                    
    
                        
                    
    
                    
    
                    
    
                        
                    
    
                    
    
                    
    
                        
                    
    
                    
                
    
                
    
                
    
                    
    
                    
    
                        
                    
    
    ..........
    .......
    ......
    

提交回复
热议问题