如何让TextView显示在LinearLayout的中间,竖直方向上的中间,在线等
LinearLayout中有 TextView,如下
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="34dip"
android:background="@drawable/tab_indicator">
<TextView
android:id="@+id/title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:textColor="#767674"
android:textSize="14px"
/>
</LinearLayout>
目前此TextView中的内容有点靠着LinearLayout的顶部,
现需:如何让TextView显示在LinearLayout的中间,竖直方向上的中间,thanks