码迷,mamicode.com
首页 > 移动开发 > 详细

Android中添加水平线和垂直线

时间:2015-07-22 00:06:09      阅读:465      评论:0      收藏:0      [点我收藏+]

标签:android   添加水平线   添加垂直线   多种方式   

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中添加水平线和垂直线

标签:android   添加水平线   添加垂直线   多种方式   

原文地址:http://blog.csdn.net/pcaxb/article/details/46993143

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!