使用情景:TableLayout、TableRow及其内的button控件width都设为android:layout_width="match_parent"
,但button不填充满宽度,实际显示如下:
代码如下:
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TableRow