26 lines
606 B
Markdown
26 lines
606 B
Markdown
<!---
|
|
This is the API of version 1.2.0
|
|
-->
|
|
# Divider
|
|
|
|
A divider is a thin line that groups content in lists and layouts.
|
|
|
|
<p align="center">
|
|
<img src ="{{ site.images }}/material/divider/divider.png" />
|
|
</p>
|
|
|
|
``` kotlin
|
|
@Composable
|
|
fun DividerExample(){
|
|
Column {
|
|
Text("Foo")
|
|
Divider(startIndent = 8.dp, thickness = 1.dp, color = Color.Black)
|
|
Text("Bar")
|
|
}
|
|
}
|
|
```
|
|
|
|
## See also:
|
|
* [Official Docs](https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#divider)
|
|
* [Full Example Code]({{ site.samplefolder }}/material/divider/DividerDemo.kt)
|