如果更高效简单的实现界面中的分隔线呢?
- <View
- android:layout_width="fill_parent"
- android:layout_height="1px"
- android:background="?android:attr/listDivider"
- />
<View android:layout_width="fill_parent" android:layout_height="1px" android:background="?android:attr/listDivider" />
这是从Google的某些应用的源代码中发现的。