使用它为水平分频器
android:layout_width="1dp"
android:layout_height="match_parent"
android:background="@color/honeycombish_blue" />
这是垂直分频器
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/honeycombish_blue" />
或者如果可以使用LinearLayout分频器,对于水平分频器
和LinearLayout中
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@drawable/divider"
android:orientation="vertical"
android:showDividers="middle" >
如果你想要用户垂直分隔符然后代替android:height =“1dp”在形状使用android:width =“1dp”
提示:不要忘记android:showDividers项目。