У меня есть TextView, который все еще занимает место, когда нет текста для отображения. Это происходит только в ОС 1.6. Когда мое приложение работает на версии 2.2, высота TextView уменьшается, так что он не занимает места. Есть ли какое-то свойство, которое я могу установить в TextView, чтобы заставить его сворачиваться или исчезать, когда текст не установлен? Вот мой xml-код.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:layout_marginTop="3dp"
android:layout_marginRight="3dp"
android:background="#ff737373"
android:padding="3dp"
android:minWidth="64dp" >
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:tag="tabImage"></ImageView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:tag="tabCaption"
android:textColor="#ffd9d9d9" />
</LinearLayout>