How to set divider between columns in tablelayout?

后端 未结 7 1875
南旧
南旧 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:26

    It's quite late to answer this question but here is the correct way to it.

    For dividers between rows :

    
    

    and for dividers between columns:

    
    

    Explaination:

    The divider tag in is used to place divider between it's direct childrens i.e Rows.

    While the divider tag in is used to place divider between it's direct childrens i.e Columns

提交回复
热议问题