# SpannedSubject.RelativeSized

Artifact: [androidx.media3:media3-test-utils](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/test/utils/truth/SpannedSubject.java+class:androidx.media3.test.utils.truth.SpannedSubject.RelativeSized)

*** ** * ** ***


```
public interface SpannedSubject.RelativeSized
```

<br />

*** ** * ** ***

Allows assertions about the relative size of a span.

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.AndSpanFlags` | `https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.RelativeSized#withSizeChange(float)(float sizeChange)` Checks that at least one of the matched spans has the expected `sizeChange`. |

## Public methods

### withSizeChange

```
abstract SpannedSubject.AndSpanFlags withSizeChange(float sizeChange)
```

Checks that at least one of the matched spans has the expected `sizeChange`.

| Parameters |
|---|---|
| `float sizeChange` | The expected size change. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.AndSpanFlags` | A `https://developer.android.com/reference/androidx/media3/test/utils/truth/SpannedSubject.WithSpanFlags` object for optional additional assertions on the flags. |