首页 > 移动平台 > 详细

Android中加入水平线和垂直线

时间:2017-06-29 13:59:42      阅读:273      评论:0      收藏:0      [点我收藏+]

1.加入水平线

<View 
android:layout_height="0.5dip"
android:background="#686868"
android:layout_width="match_parent"/>

2.加入垂直线

<View 
android:layout_height="match_parent"
android:background="#686868"
android:layout_width="0.5dip"/>

3.其它 当然,你要像以下这样写也是没有问题的

<TextView 
android:layout_width="fill_parent" 
android:layout_height="0.5dp"  
android:background="#686868"/>

这样的垂直的就不说了 。大家都懂的

Android中加入水平线和垂直线

原文:http://www.cnblogs.com/cxchanpin/p/7094065.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!