# pill Icon

> The pill 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/pill.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-symbols/pill.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-symbols/pill.md?v=sharp), [Outlined Filled](https://composables.com/icons/icon-libraries/material-symbols/pill.md?v=outlined-filled), [Rounded Filled](https://composables.com/icons/icon-libraries/material-symbols/pill.md?v=rounded-filled), [Sharp Filled](https://composables.com/icons/icon-libraries/material-symbols/pill.md?v=sharp-filled)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-symbols/pill.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 MaterialSymbolsPill: ImageVector
    get() {
        if (_MaterialSymbolsPill != null) return _MaterialSymbolsPill!!
        
        _MaterialSymbolsPill = ImageVector.Builder(
            name = "pill",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 960f,
            viewportHeight = 960f
        ).apply {
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(345f, 840f)
                quadToRelative(-94f, 0f, -159.5f, -65.5f)
                reflectiveQuadTo(120f, 615f)
                quadToRelative(0f, -45f, 17f, -86f)
                reflectiveQuadToRelative(49f, -73f)
                lineToRelative(270f, -270f)
                quadToRelative(32f, -32f, 73f, -49f)
                reflectiveQuadToRelative(86f, -17f)
                quadToRelative(94f, 0f, 159.5f, 65.5f)
                reflectiveQuadTo(840f, 345f)
                quadToRelative(0f, 45f, -17f, 86f)
                reflectiveQuadToRelative(-49f, 73f)
                lineTo(504f, 774f)
                quadToRelative(-32f, 32f, -73f, 49f)
                reflectiveQuadToRelative(-86f, 17f)
                close()
                moveToRelative(266f, -286f)
                lineToRelative(107f, -106f)
                quadToRelative(20f, -20f, 31f, -47f)
                reflectiveQuadToRelative(11f, -56f)
                quadToRelative(0f, -60f, -42.5f, -102.5f)
                reflectiveQuadTo(615f, 200f)
                quadToRelative(-29f, 0f, -56f, 11f)
                reflectiveQuadToRelative(-47f, 31f)
                lineTo(406f, 349f)
                lineToRelative(205f, 205f)
                close()
                moveTo(345f, 760f)
                quadToRelative(29f, 0f, 56f, -11f)
                reflectiveQuadToRelative(47f, -31f)
                lineToRelative(106f, -107f)
                lineToRelative(-205f, -205f)
                lineToRelative(-107f, 106f)
                quadToRelative(-20f, 20f, -31f, 47f)
                reflectiveQuadToRelative(-11f, 56f)
                quadToRelative(0f, 60f, 42.5f, 102.5f)
                reflectiveQuadTo(345f, 760f)
                close()
            }
        }.build()
        
        return _MaterialSymbolsPill!!
    }

private var _MaterialSymbolsPill: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-symbols/pill.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="M345,840q-94,0 -159.5,-65.5T120,615q0,-45 17,-86t49,-73l270,-270q32,-32 73,-49t86,-17q94,0 159.5,65.5T840,345q0,45 -17,86t-49,73L504,774q-32,32 -73,49t-86,17Zm266,-286l107,-106q20,-20 31,-47t11,-56q0,-60 -42.5,-102.5T615,200q-29,0 -56,11t-47,31L406,349l205,205ZM345,760q29,0 56,-11t47,-31l106,-107l-205,-205l-107,106q-20,20 -31,47t-11,56q0,60 42.5,102.5T345,760Z" />
</vector>
```

## SVG

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

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="currentColor"><path d="M345-120q-94 0-159.5-65.5T120-345q0-45 17-86t49-73l270-270q32-32 73-49t86-17q94 0 159.5 65.5T840-615q0 45-17 86t-49 73L504-186q-32 32-73 49t-86 17Zm266-286 107-106q20-20 31-47t11-56q0-60-42.5-102.5T615-760q-29 0-56 11t-47 31L406-611l205 205ZM345-200q29 0 56-11t47-31l106-107-205-205-107 106q-20 20-31 47t-11 56q0 60 42.5 102.5T345-200Z"/></svg>
```
