如何让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
<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
...全文
相关推荐
Android自定义textview实现竖直滚动跑马灯效果
主要为大家详细介绍了Android自定义textview实现竖直滚动跑马灯效果,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
linearlayout+imageview+textview实现底部导航栏.zip
LinearLayout+RelativeLayout+Imageview+Textview实现底部导航栏效果
Android自定义LinearLayout布局显示不完整的解决方法
主要给大家介绍了关于Android自定义LinearLayout但布局显示不完整的解决方法,文中通过示例代码介绍的非常详细,对大家具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧。
Android LinearLayout.LayoutParams 使用方法
1.LinearLayout.LayoutParams使用说明 2.在Java代码中利用LinearLayout.LayoutParams构建布局
Android 跑马灯,用LinearLayout加动画实现。
Android 跑马灯,用LinearLayout加动画实现。参见博客文章http://blog.csdn.net/u012587637/article/details/41694765


