本文实例讲述了Android实现给TableLayou绘制边框的方法。分享给大家供大家参考,具体如下:
效果如下:
思路:使用share作为背景显示边框
步骤:
1.在res/drawable文件夹下建立table_frame_gray.xml文件:
<?xml version=1.0 encoding=utf-8?>
<shape xmlns:android=http://schemas.android.com/apk/res/android
android:shape=rectangle>
<solid android:color=#ffffff>