# Paint.Style

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Style

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/graphics/Paint.Style "View this page in Java")  

```
class Style
```

|---|---|--------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                  |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[android.graphics.Paint.Style](https://developer.android.com/reference/kotlin/android/graphics/Paint.Style#)\> ||
|   | ↳ | [android.graphics.Paint.Style](https://developer.android.com/reference/kotlin/android/graphics/Paint.Style#) |

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [Paint.Style.FILL](https://developer.android.com/reference/kotlin/android/graphics/Paint.Style#ENUM_VALUE:FILL),[Paint.Style.FILL_AND_STROKE](https://developer.android.com/reference/kotlin/android/graphics/Paint.Style#ENUM_VALUE:FILL_AND_STROKE),[Paint.Style.STROKE](https://developer.android.com/reference/kotlin/android/graphics/Paint.Style#ENUM_VALUE:STROKE) |---------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------| | [Paint.Style.FILL](https://developer.android.com/reference/kotlin/android/graphics/Paint.Style#ENUM_VALUE:FILL)                       | Geometry and text drawn with this style will be filled, ignoring all stroke-related settings in the paint.                                   | | [Paint.Style.FILL_AND_STROKE](https://developer.android.com/reference/kotlin/android/graphics/Paint.Style#ENUM_VALUE:FILL_AND_STROKE) | Geometry and text drawn with this style will be both filled and stroked at the same time, respecting the stroke-related fields on the paint. | | [Paint.Style.STROKE](https://developer.android.com/reference/kotlin/android/graphics/Paint.Style#ENUM_VALUE:STROKE)                   | Geometry and text drawn with this style will be stroked, respecting the stroke-related fields on the paint.                                  | |

The Style specifies if the primitive being drawn is filled, stroked, or both (in the same color). The default is FILL.

## Summary

|                                                                                                                                Enum values                                                                                                                                ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [FILL](https://developer.android.com/reference/kotlin/android/graphics/Paint.Style#ENUM_VALUE:FILL) Geometry and text drawn with this style will be filled, ignoring all stroke-related settings in the paint.                                                         |
| [FILL_AND_STROKE](https://developer.android.com/reference/kotlin/android/graphics/Paint.Style#ENUM_VALUE:FILL_AND_STROKE) Geometry and text drawn with this style will be both filled and stroked at the same time, respecting the stroke-related fields on the paint. |
| [STROKE](https://developer.android.com/reference/kotlin/android/graphics/Paint.Style#ENUM_VALUE:STROKE) Geometry and text drawn with this style will be stroked, respecting the stroke-related fields on the paint.                                                    |

## Enum values

### FILL

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val FILL : Paint.Style
```

Geometry and text drawn with this style will be filled, ignoring all stroke-related settings in the paint.  

### FILL_AND_STROKE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val FILL_AND_STROKE : Paint.Style
```

Geometry and text drawn with this style will be both filled and stroked at the same time, respecting the stroke-related fields on the paint. This mode can give unexpected results if the geometry is oriented counter-clockwise. This restriction does not apply to either FILL or STROKE.  

### STROKE

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val STROKE : Paint.Style
```

Geometry and text drawn with this style will be stroked, respecting the stroke-related fields on the paint.