设计android应用时,设置分隔线的方法

在设计android应用时,设置分隔线的方法一:

需要设置分隔线的布局文件中加入如下代码

 

<View      
android:layout_width="fill_parent"       
android:layout_height="1px"    
 android:background="?android:attr/listDivider"   
/>  

 

 

运行实际结果如下:

 

原文地址:https://www.cnblogs.com/childhooding/p/4387122.html