在android 布局文件中设置水平线:

<View android:layout_width="match_parent" android:layout_height="2dip"android:background="#FF909090" android:layout_marginLeft="40dip"android:layout_marginRight="40dip" android:layout_marginTop="10dip" />

浏览效果如图所示:


更多相关文章

  1. Android的Recyclerview的使用
  2. Android中xml文件中设置背景颜色、图片
  3. android 控件学习笔记 --------ViewPager
  4. Android实现透明的颜色效果(zz)
  5. Android隐藏状态栏和标题栏,相当于全屏效果
  6. AutoCompleteTextView
  7. Android重要控件概览(中)
  8. 一些常用到的android前端布局属性
  9. Android(安卓)RecyclerView 设置显示滚动条属性后,滚动条不显示踩

随机推荐

  1. android boot 代码流程 1
  2. [置顶] Android 《手机卫士》随听笔记
  3. Android系统驱动概述
  4. android常用软件下载资源链接
  5. 如何在Windows上安装Android SDK / ADB
  6. android的属性
  7. android:layout_gravity="bottom"不起作
  8. android 利用ksoap2方式连接webservice
  9. android drawable中的state属性说明
  10. Android消息推送时刻