# subway Icon

> The subway 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/subway.md?v=filled), [Outlined](https://composables.com/icons/icon-libraries/material-icons/subway.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-icons/subway.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-icons/subway.md?v=sharp), [Two-Tone](https://composables.com/icons/icon-libraries/material-icons/subway.md?v=twotone)
- Categories: [Maps](https://composables.com/icons/categories/maps.md)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-icons/subway.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 MaterialIconsSubway: ImageVector
    get() {
        if (_MaterialIconsSubway != null) return _MaterialIconsSubway!!
        
        _MaterialIconsSubway = ImageVector.Builder(
            name = "subway",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent)
            ) {
                moveTo(0f, 0f)
                horizontalLineToRelative(24f)
                verticalLineToRelative(24f)
                horizontalLineTo(0f)
                verticalLineTo(0f)
                close()
            }
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(17.8f, 2.8f)
                curveTo(16f, 2.09f, 13.86f, 2f, 12f, 2f)
                reflectiveCurveToRelative(-4f, 0.09f, -5.8f, 0.8f)
                curveTo(3.53f, 3.84f, 2f, 6.05f, 2f, 8.86f)
                verticalLineTo(22f)
                horizontalLineToRelative(20f)
                verticalLineTo(8.86f)
                curveToRelative(0f, -2.81f, -1.53f, -5.02f, -4.2f, -6.06f)
                close()
                moveTo(9.17f, 20f)
                lineToRelative(1.5f, -1.5f)
                horizontalLineToRelative(2.66f)
                lineToRelative(1.5f, 1.5f)
                horizontalLineTo(9.17f)
                close()
                moveToRelative(-2.16f, -6f)
                verticalLineTo(9f)
                horizontalLineToRelative(10f)
                verticalLineToRelative(5f)
                horizontalLineToRelative(-10f)
                close()
                moveToRelative(9.49f, 2f)
                curveToRelative(0f, 0.55f, -0.45f, 1f, -1f, 1f)
                reflectiveCurveToRelative(-1f, -0.45f, -1f, -1f)
                reflectiveCurveToRelative(0.45f, -1f, 1f, -1f)
                reflectiveCurveToRelative(1f, 0.45f, 1f, 1f)
                close()
                moveToRelative(-8f, -1f)
                curveToRelative(0.55f, 0f, 1f, 0.45f, 1f, 1f)
                reflectiveCurveToRelative(-0.45f, 1f, -1f, 1f)
                reflectiveCurveToRelative(-1f, -0.45f, -1f, -1f)
                reflectiveCurveToRelative(0.45f, -1f, 1f, -1f)
                close()
                moveTo(20f, 20f)
                horizontalLineToRelative(-3.5f)
                verticalLineToRelative(-0.38f)
                lineToRelative(-1.15f, -1.16f)
                curveToRelative(1.49f, -0.17f, 2.65f, -1.42f, 2.65f, -2.96f)
                verticalLineTo(9f)
                curveToRelative(0f, -2.63f, -3f, -3f, -6f, -3f)
                reflectiveCurveToRelative(-6f, 0.37f, -6f, 3f)
                verticalLineToRelative(6.5f)
                curveToRelative(0f, 1.54f, 1.16f, 2.79f, 2.65f, 2.96f)
                lineTo(7.5f, 19.62f)
                verticalLineTo(20f)
                horizontalLineTo(4f)
                verticalLineTo(8.86f)
                curveToRelative(0f, -2f, 1.01f, -3.45f, 2.93f, -4.2f)
                curveTo(8.41f, 4.08f, 10.32f, 4f, 12f, 4f)
                reflectiveCurveToRelative(3.59f, 0.08f, 5.07f, 0.66f)
                curveToRelative(1.92f, 0.75f, 2.93f, 2.2f, 2.93f, 4.2f)
                verticalLineTo(20f)
                close()
            }
        }.build()
        
        return _MaterialIconsSubway!!
    }

private var _MaterialIconsSubway: ImageVector? = null
```

## Android Vector Drawable (XML)

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

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:pathData="M0,0h24v24H0V0Z" />
    <path
        android:fillColor="@android:color/black"
        android:pathData="M17.8,2.8C16,2.09 13.86,2 12,2s-4,0.09 -5.8,0.8C3.53,3.84 2,6.05 2,8.86V22h20V8.86c0,-2.81 -1.53,-5.02 -4.2,-6.06ZM9.17,20l1.5,-1.5h2.66l1.5,1.5H9.17Zm-2.16,-6V9h10v5h-10Zm9.49,2c0,0.55 -0.45,1 -1,1s-1,-0.45 -1,-1s0.45,-1 1,-1s1,0.45 1,1Zm-8,-1c0.55,0 1,0.45 1,1s-0.45,1 -1,1s-1,-0.45 -1,-1s0.45,-1 1,-1ZM20,20h-3.5v-0.38l-1.15,-1.16c1.49,-0.17 2.65,-1.42 2.65,-2.96V9c0,-2.63 -3,-3 -6,-3s-6,0.37 -6,3v6.5c0,1.54 1.16,2.79 2.65,2.96L7.5,19.62V20H4V8.86c0,-2 1.01,-3.45 2.93,-4.2C8.41,4.08 10.32,4 12,4s3.59,0.08 5.07,0.66c1.92,0.75 2.93,2.2 2.93,4.2V20Z" />
</vector>
```

## SVG

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

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M17.8 2.8C16 2.09 13.86 2 12 2s-4 .09-5.8.8C3.53 3.84 2 6.05 2 8.86V22h20V8.86c0-2.81-1.53-5.02-4.2-6.06zM9.17 20l1.5-1.5h2.66l1.5 1.5H9.17zm-2.16-6V9h10v5h-10zm9.49 2c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1zm-8-1c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM20 20h-3.5v-.38l-1.15-1.16c1.49-.17 2.65-1.42 2.65-2.96V9c0-2.63-3-3-6-3s-6 .37-6 3v6.5c0 1.54 1.16 2.79 2.65 2.96L7.5 19.62V20H4V8.86c0-2 1.01-3.45 2.93-4.2C8.41 4.08 10.32 4 12 4s3.59.08 5.07.66c1.92.75 2.93 2.2 2.93 4.2V20z"/></svg>
```
