Я создал виджет, который использует LinearLayout, и поместил два TextView в макет. Плотность макета - «верх».
Проблема в том, что у меня есть пробел между двумя TextView, и я не могу от него избавиться.
<TextView
android:id="@+id/Text01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="bottom|center_horizontal"
android:text="blah blah"
android:background="@android:color/transparent"
android:textColor="#3e6eb4"
android:textSize="11sp"
/>
<TextView
android:id="@+id/text02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="top|center_horizontal"
android:text=""
android:background="@android:color/transparent"
android:textColor="#3e6eb4"
android:textSize="14sp"
android:padding="0sp"
android:verticalSpacing="0sp"
/>
Как вы можете видеть, я попытался поставить padding 0 и verticalSpacing 0 но между ними все еще остается пробел.
Как это исправить?
Спасибо.