# legend_toggle Icon

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

- Library: [Material Icons](https://composables.com/icons/icon-libraries/material-icons.md)
- License: Apache 2.0 (full text in the [Material Icons library page](https://composables.com/icons/icon-libraries/material-icons.md))
- Styles: [Filled](https://composables.com/icons/icon-libraries/material-icons/legend_toggle.md?v=filled), [Outlined](https://composables.com/icons/icon-libraries/material-icons/legend_toggle.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-icons/legend_toggle.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-icons/legend_toggle.md?v=sharp), [Two-Tone](https://composables.com/icons/icon-libraries/material-icons/legend_toggle.md?v=twotone)
- Categories: [Navigation](https://composables.com/icons/categories/navigation.md)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-icons/legend_toggle.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.group
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val MaterialIconsLegendToggle: ImageVector
    get() {
        if (_MaterialIconsLegendToggle != null) return _MaterialIconsLegendToggle!!
        
        _MaterialIconsLegendToggle = ImageVector.Builder(
            name = "legend_toggle",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            group {
                path(
                    fill = SolidColor(Color.Transparent)
                ) {
                    moveTo(0f, 0f)
                    horizontalLineTo(24f)
                    verticalLineTo(24f)
                    horizontalLineTo(0f)
                    verticalLineTo(0f)
                    close()
                }
                path(
                    fill = SolidColor(Color.Black)
                ) {
                    moveTo(20f, 15f)
                    horizontalLineTo(4f)
                    verticalLineToRelative(-2f)
                    horizontalLineToRelative(16f)
                    verticalLineTo(15f)
                    close()
                    moveTo(20f, 17f)
                    horizontalLineTo(4f)
                    verticalLineToRelative(2f)
                    horizontalLineToRelative(16f)
                    verticalLineTo(17f)
                    close()
                    moveTo(15f, 11f)
                    lineToRelative(5f, -3.55f)
                    lineTo(20f, 5f)
                    lineToRelative(-5f, 3.55f)
                    lineTo(10f, 5f)
                    lineTo(4f, 8.66f)
                    lineTo(4f, 11f)
                    lineToRelative(5.92f, -3.61f)
                    lineTo(15f, 11f)
                    close()
                }
            }
        }.build()
        
        return _MaterialIconsLegendToggle!!
    }

private var _MaterialIconsLegendToggle: ImageVector? = null
```

## Android Vector Drawable (XML)

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

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:pathData="M0,0H24V24H0V0Z" />
    <path
        android:fillColor="@android:color/black"
        android:pathData="M20,15H4v-2h16V15ZM20,17H4v2h16V17ZM15,11l5,-3.55L20,5l-5,3.55L10,5L4,8.66L4,11l5.92,-3.61L15,11Z" />
</vector>
```

## SVG

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

```svg
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" fill="currentColor"><g><rect fill="none" height="24" width="24"/><path d="M20,15H4v-2h16V15z M20,17H4v2h16V17z M15,11l5-3.55L20,5l-5,3.55L10,5L4,8.66L4,11l5.92-3.61L15,11z"/></g></svg>
```
