设置分割线的例子如下:

android:layout_height="fill_parent" android:divider="#123"
android:layout_margin="10dip">

但运行后,发现样式没起作用。

解决办法:
给listview设置android:dividerHeight为非0即可。

如:
android:layout_height="fill_parent" android:divider="#000"
android:dividerHeight="1px"
android:layout_margin="10dip">

更多相关文章

  1. 2011.09.01(5)——— android checkbox自定义样式
  2. Android设置上下边框或者左右边框
  3. Android实现自定义的 时间日期 控件
  4. Android(安卓)关于WebView的相关属性
  5. android webview 使用
  6. ToolBar的使用
  7. android.inputmethodservice.KeyboardView 自定义键盘 字体大小
  8. Notes on the implementation of encryption in Android(安卓)3.
  9. widget(5、DatePicker)

随机推荐

  1. android HttpClient网络通信工具类基于XM
  2. Android(安卓)Studio 插件--postfix
  3. iOS/Android(安卓)DevCamp:我们只谈移动开
  4. Android屏幕自适应4种解决方案
  5. Android Studio在引用项目时使用JDK1.8的
  6. Android设置角标提示
  7. gradle android基本配置详解
  8. android点击系统通知Notification,进入指
  9. android基于Xmpp的即时通讯开发
  10. android XmlSerializer 组拼xml