---
title: "TableLayout布局中容易混淆的属性"
author: "roiz"
date: "2011-11-10T14:42:40Z"
tags: []
categories: ["移动开发"]
slug: "tablelayout"
draft: false
lastmod: "2011-11-10T14:42:40Z"
id: 1250274
url: "https://roiz.iteye.com/blog/1250274"
---

TableLayout经常用的属性是：

android:collapseColumns：以第0行为序，隐藏指定的列

android:shrinkColumns：以第0行为序，自动延伸指定的列填充可用部分
当LayoutRow里面的控件还没有布满布局时，shrinkColumns不起作用

android:stretchColumns：以第0行为序，尽量把指定的列填充空白部分