# segment Icon

> The segment icon from Material Symbols as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Material Symbols](https://composables.com/icons/icon-libraries/material-symbols.md)
- License: Apache 2.0 (full text in the [Material Symbols library page](https://composables.com/icons/icon-libraries/material-symbols.md))
- Styles: [Outlined](https://composables.com/icons/icon-libraries/material-symbols/segment.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-symbols/segment.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-symbols/segment.md?v=sharp), [Outlined Filled](https://composables.com/icons/icon-libraries/material-symbols/segment.md?v=outlined-filled), [Rounded Filled](https://composables.com/icons/icon-libraries/material-symbols/segment.md?v=rounded-filled), [Sharp Filled](https://composables.com/icons/icon-libraries/material-symbols/segment.md?v=sharp-filled)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-symbols/segment.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val MaterialSymbolsSegment: ImageVector
    get() {
        if (_MaterialSymbolsSegment != null) return _MaterialSymbolsSegment!!
        
        _MaterialSymbolsSegment = ImageVector.Builder(
            name = "segment",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 960f,
            viewportHeight = 960f
        ).apply {
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(360f, 720f)
                verticalLineToRelative(-80f)
                horizontalLineToRelative(480f)
                verticalLineToRelative(80f)
                horizontalLineTo(360f)
                close()
                moveToRelative(0f, -200f)
                verticalLineToRelative(-80f)
                horizontalLineToRelative(480f)
                verticalLineToRelative(80f)
                horizontalLineTo(360f)
                close()
                moveTo(120f, 320f)
                verticalLineToRelative(-80f)
                horizontalLineToRelative(720f)
                verticalLineToRelative(80f)
                horizontalLineTo(120f)
                close()
            }
        }.build()
        
        return _MaterialSymbolsSegment!!
    }

private var _MaterialSymbolsSegment: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-symbols/segment.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="960"
    android:viewportHeight="960">
    <path
        android:fillColor="@android:color/black"
        android:pathData="M360,720v-80h480v80H360Zm0,-200v-80h480v80H360ZM120,320v-80h720v80H120Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/material-symbols/segment.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="currentColor"><path d="M360-240v-80h480v80H360Zm0-200v-80h480v80H360ZM120-640v-80h720v80H120Z"/></svg>
```
