# TickVisibilityMode

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/slider/TickVisibilityMode.java)

*** ** * ** ***


```
@Retention(value = RetentionPolicy.SOURCE)
public annotation TickVisibilityMode
```

<br />

*** ** * ** ***

Mode to specify the visibility of tick marks.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/com/google/android/material/slider/TickVisibilityMode#TICK_VISIBILITY_AUTO_HIDE() = 1` All tick marks will be drawn if they are not spaced too densely. |
| `static final int` | `https://developer.android.com/reference/com/google/android/material/slider/TickVisibilityMode#TICK_VISIBILITY_AUTO_LIMIT() = 0` All tick marks will be drawn if they are not spaced too densely. |
| `static final int` | `https://developer.android.com/reference/com/google/android/material/slider/TickVisibilityMode#TICK_VISIBILITY_HIDDEN() = 2` Tick marks will not be drawn. |

## Constants

### TICK_VISIBILITY_AUTO_HIDE

```
public static final int TICK_VISIBILITY_AUTO_HIDE = 1
```

All tick marks will be drawn if they are not spaced too densely. Otherwise, the tick marks will not be drawn.

### TICK_VISIBILITY_AUTO_LIMIT

```
public static final int TICK_VISIBILITY_AUTO_LIMIT = 0
```

All tick marks will be drawn if they are not spaced too densely. Otherwise, the maximum allowed number of tick marks will be drawn. Note that in this case the drawn ticks may not match the actual snap values.

### TICK_VISIBILITY_HIDDEN

```
public static final int TICK_VISIBILITY_HIDDEN = 2
```

Tick marks will not be drawn.