Skip to content Skip to sidebar Skip to footer

How To Give Border For Tablerow In Tablelayout In Android?

I need to show border around TableRow in TableLayout. How would i do that???

Solution 1:

I give one idea -> Create one xml file using shape tag

like this

<?xml version="1.0" encoding="UTF-8"?><shapexmlns:android="http://schemas.android.com/apk/res/android"><solidandroid:color="#FFFFFF"/><strokeandroid:width="2dp"android:color="#515151"/><cornersandroid:radius="3dp" /><paddingandroid:left="10dp"android:top="5dp"android:right="10dp"android:bottom="5dp" /></shape>

set this xml file in android:background="@drawable/xmlFilename" of your table layout

it gives the border around your tablelayout

Post a Comment for "How To Give Border For Tablerow In Tablelayout In Android?"