Sou*_*abh 6 android android-layout android-tablelayout
我需要显示边框TableRow在TableLayout.
我该怎么办?
Ayu*_*udh 32
我给出了一个想法 - >使用shape标签创建一个xml文件
像这样
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FFFFFF"/>
<stroke android:width="2dp" android:color="#515151"/>
<corners android:radius="3dp" />
<padding android:left="10dp" android:top="5dp"
android:right="10dp" android:bottom="5dp" />
</shape>
Run Code Online (Sandbox Code Playgroud)
在你的表格布局的android:background ="@ drawable/xmlFilename"中设置这个xml文件
它给出了tablelayout周围的边框