当前位置: 首页 > 新闻动态 > 软件编程

Android 中添加水平线和垂直线方法总结

作者:用户投稿 浏览: 发布日期:2026-01-10
[导读]:这篇文章主要介绍了Android 中添加水平线和垂直线方法总结的相关资料,需要的朋友可以参考下

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"/> 

这种垂直的就不说了 ,大家都懂的

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

免责声明:转载请注明出处:http://sczxchw.cn/news/85557.html

扫一扫高效沟通

多一份参考总有益处

免费领取网站策划SEO优化策划方案

请填写下方表单,我们会尽快与您联系
感谢您的咨询,我们会尽快给您回复!