diff options
| author | Gilles Debunne <debunne@google.com> | 2011-01-25 20:11:45 -0800 |
|---|---|---|
| committer | Gilles Debunne <debunne@google.com> | 2011-01-26 16:01:20 -0800 |
| commit | 6741c941a76d17c257c396d86c7561aa43005b1a (patch) | |
| tree | b09770565acea04341b57bb113666b3bb3a50288 /core/java/android/widget/TableLayout.java | |
| parent | aaa55d3f45744814907d0809befb49281ced462e (diff) | |
Tabs are resized to make sure they fit in their parent.
Bug 3365301
This is a first implementation. The text inside the tabs is clipped
and can be hardly readable.
A nicer complimentary solution is to reduce the 40dip padding in portrait mode.
Change-Id: I19439ee6a63c3f9dcdcc944ddbbc18a81949db79
Diffstat (limited to 'core/java/android/widget/TableLayout.java')
| -rw-r--r-- | core/java/android/widget/TableLayout.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/TableLayout.java b/core/java/android/widget/TableLayout.java index 7f26e28b0770..842b0870eeb2 100644 --- a/core/java/android/widget/TableLayout.java +++ b/core/java/android/widget/TableLayout.java @@ -560,7 +560,7 @@ public class TableLayout extends LinearLayout { if ((totalWidth > size) && (mShrinkAllColumns || mShrinkableColumns.size() > 0)) { // oops, the largest columns are wider than the row itself - // fairly redistribute the row's widh among the columns + // fairly redistribute the row's width among the columns mutateColumnsWidth(mShrinkableColumns, mShrinkAllColumns, size, totalWidth); } else if ((totalWidth < size) && (mStretchAllColumns || mStretchableColumns.size() > 0)) { // if we have some space left, we distribute it among the |
