如何让TextView显示在LinearLayout的中间,竖直方向上的中间,在线等

zgycsmb zgycsmb 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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
...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部
zgycsmb
Android 80,490 成员 91,375 内容