# RowScope

# RowScope

Artifact:[androidx.glance:glance](https://developer.android.com/jetpack/androidx/releases/glance)  
[View Source](https://cs.android.com/search?q=file:androidx/glance/layout/Row.kt+class:androidx.glance.layout.RowScope)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)

<br />

```
interface RowScope
```

<br />

*** ** * ** ***

Scope defining modifiers only available on rows.

## Summary

|                                      ### Public functions                                       |
|-------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [GlanceModifier](https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier) | [GlanceModifier](https://developer.android.com/reference/kotlin/androidx/glance/GlanceModifier)`.`[defaultWeight](https://developer.android.com/reference/kotlin/androidx/glance/layout/RowScope#(androidx.glance.GlanceModifier).defaultWeight())`()` Size the element's width to split the available space with other weighted sibling elements in the[Row](https://developer.android.com/reference/kotlin/androidx/glance/layout/package-summary#Row(androidx.glance.GlanceModifier,androidx.glance.layout.Alignment.Horizontal,androidx.glance.layout.Alignment.Vertical,kotlin.Function1)). |

## Public functions

### defaultWeight

Artifact:[androidx.glance:glance](https://developer.android.com/jetpack/androidx/releases/glance)  
[View Source](https://cs.android.com/search?q=file:androidx/glance/layout/Row.kt+function:defaultWeight)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/glance#1.0.0)  

```
fun GlanceModifier.defaultWeight(): GlanceModifier
```

Size the element's width to split the available space with other weighted sibling elements in the[Row](https://developer.android.com/reference/kotlin/androidx/glance/layout/package-summary#Row(androidx.glance.GlanceModifier,androidx.glance.layout.Alignment.Horizontal,androidx.glance.layout.Alignment.Vertical,kotlin.Function1)). The parent will divide the horizontal space remaining after measuring unweighted child elements and distribute it according to the weights, the default weight being 1.