想法来自于 http://stackoverflow.com/questions/5049852/android-drawing-separator-divider-line-in-layout
以下是布局中的代码,使用View
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"/>
当然,1dp这个数值最好还是放到dimens.xml里面。
欢迎各位拍砖,相关实现肯定有很多,我觉得这个是比较直观和简单的~