# rule Icon

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

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-symbols/rule.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 MaterialSymbolsRule: ImageVector
    get() {
        if (_MaterialSymbolsRule != null) return _MaterialSymbolsRule!!
        
        _MaterialSymbolsRule = ImageVector.Builder(
            name = "rule",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 960f,
            viewportHeight = 960f
        ).apply {
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(576f, 800f)
                lineToRelative(-56f, -56f)
                lineToRelative(104f, -104f)
                lineToRelative(-104f, -104f)
                lineToRelative(56f, -56f)
                lineToRelative(104f, 104f)
                lineToRelative(104f, -104f)
                lineToRelative(56f, 56f)
                lineToRelative(-104f, 104f)
                lineToRelative(104f, 104f)
                lineToRelative(-56f, 56f)
                lineToRelative(-104f, -104f)
                lineToRelative(-104f, 104f)
                close()
                moveToRelative(79f, -360f)
                lineTo(513f, 298f)
                lineToRelative(56f, -56f)
                lineToRelative(85f, 85f)
                lineToRelative(170f, -170f)
                lineToRelative(56f, 57f)
                lineToRelative(-225f, 226f)
                close()
                moveTo(80f, 680f)
                verticalLineToRelative(-80f)
                horizontalLineToRelative(360f)
                verticalLineToRelative(80f)
                horizontalLineTo(80f)
                close()
                moveToRelative(0f, -320f)
                verticalLineToRelative(-80f)
                horizontalLineToRelative(360f)
                verticalLineToRelative(80f)
                horizontalLineTo(80f)
                close()
            }
        }.build()
        
        return _MaterialSymbolsRule!!
    }

private var _MaterialSymbolsRule: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-symbols/rule.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="m576,-160l-56,-56l104,-104l-104,-104l56,-56l104,104l104,-104l56,56l-104,104l104,104l-56,56l-104,-104l-104,104Zm79,-360L513,298l56,-56l85,85l170,-170l56,57l-225,226ZM80,680v-80h360v80H80Zm0,-320v-80h360v80H80Z" />
</vector>
```

## SVG

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

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="currentColor"><path d="m576-160-56-56 104-104-104-104 56-56 104 104 104-104 56 56-104 104 104 104-56 56-104-104-104 104Zm79-360L513-662l56-56 85 85 170-170 56 57-225 226ZM80-280v-80h360v80H80Zm0-320v-80h360v80H80Z"/></svg>
```
