---
# System prepended metadata

title: Dialog 分割線
tags: [Dialog]

---

Dialog 分割線
===

```java=
AlertDialog alertDialogObject = dialogBuilder.create();
ListView listView=alertDialogObject.getListView();  
listView.setDivider(new ColorDrawable(Color.BLUE)); // set color
listView.setDividerHeight(2); // set height 
alertDialogObject.show();
```

## Ref.
[AlertDialog does not show dividers on a list](https://stackoverflow.com/questions/33500765/alertdialog-does-not-show-dividers-on-a-list)

###### tags: `Dialog`