# battery_1_bar Icon

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

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-icons/battery_1_bar.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 MaterialIconsBattery1Bar: ImageVector
    get() {
        if (_MaterialIconsBattery1Bar != null) return _MaterialIconsBattery1Bar!!
        
        _MaterialIconsBattery1Bar = ImageVector.Builder(
            name = "battery_1_bar",
            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()
                }
            }
            group {
                path(
                    fill = SolidColor(Color.Black)
                ) {
                    moveTo(17f, 5f)
                    verticalLineToRelative(16f)
                    curveToRelative(0f, 0.55f, -0.45f, 1f, -1f, 1f)
                    horizontalLineTo(8f)
                    curveToRelative(-0.55f, 0f, -1f, -0.45f, -1f, -1f)
                    verticalLineTo(5f)
                    curveToRelative(0f, -0.55f, 0.45f, -1f, 1f, -1f)
                    horizontalLineToRelative(2f)
                    verticalLineTo(2f)
                    horizontalLineToRelative(4f)
                    verticalLineToRelative(2f)
                    horizontalLineToRelative(2f)
                    curveTo(16.55f, 4f, 17f, 4.45f, 17f, 5f)
                    close()
                    moveTo(15f, 6f)
                    horizontalLineTo(9f)
                    verticalLineToRelative(12f)
                    horizontalLineToRelative(6f)
                    verticalLineTo(6f)
                    close()
                }
            }
        }.build()
        
        return _MaterialIconsBattery1Bar!!
    }

private var _MaterialIconsBattery1Bar: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-icons/battery_1_bar.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="M17,5v16c0,0.55 -0.45,1 -1,1H8c-0.55,0 -1,-0.45 -1,-1V5c0,-0.55 0.45,-1 1,-1h2V2h4v2h2C16.55,4 17,4.45 17,5ZM15,6H9v12h6V6Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/material-icons/battery_1_bar.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"/></g><g><path d="M17,5v16c0,0.55-0.45,1-1,1H8c-0.55,0-1-0.45-1-1V5c0-0.55,0.45-1,1-1h2V2h4v2h2C16.55,4,17,4.45,17,5z M15,6H9v12h6V6z"/></g></svg>
```
