blob: 7bacdad1527ccdaf3c5a0e1d6d0affac53dd9395 [file] [log] [blame]
<html devsite="true">
<head>
<title>Arrangement.HorizontalOrVertical</title>
{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<h1>Arrangement.HorizontalOrVertical</h1>
<p>
<pre>interface Arrangement.HorizontalOrVertical : <a href="/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal.html">Arrangement.Horizontal</a>, <a href="/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Vertical.html">Arrangement.Vertical</a></pre>
</p>
<hr>
<p>Used to specify the horizontal arrangement of the layout's children in horizontal layouts like <code><a href="/reference/kotlin/androidx/compose/foundation/layout/package-summary.html#Row(Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,AlignmentVertical,kotlin.Function1)">Row</a></code>, or the vertical arrangement of the layout's children in vertical layouts like <code><a href="/reference/kotlin/androidx/compose/foundation/layout/package-summary.html#Column(Modifier,androidx.compose.foundation.layout.Arrangement.Vertical,AlignmentHorizontal,kotlin.Function1)">Column</a></code>.</p>
<h2>Summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2"><h3>Public properties</h3></th>
</tr>
</thead>
<tbody>
<tr>
<td width="40%"><code>open <a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a></code></td>
<td>
<div><code><a href="/reference/kotlin/androidx/compose/foundation/layout/Arrangement.HorizontalOrVertical.html#spacing()">spacing</a></code></div>
<p>Spacing that should be added between any two adjacent layout children.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive" id="inhmethods">
<thead>
<tr>
<th colspan="2"><h3>Inherited functions</h3></th>
</tr>
</thead>
<tbody>
<tr>
<td><devsite-expandable><span class="expand-control">From class <a href="/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal.html">Arrangement.Horizontal</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></code></td>
<td>
<div><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>.<a href="/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal.html#(Density).arrange(kotlin.Int,kotlin.IntArray,LayoutDirection,kotlin.IntArray)">arrange</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;totalSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;sizes:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html">IntArray</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;layoutDirection:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;outPositions:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html">IntArray</a><br>)</code></div>
<p>Horizontally places the layout children.</p>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
<tr>
<td><devsite-expandable><span class="expand-control">From class <a href="/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Vertical.html">Arrangement.Vertical</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></code></td>
<td>
<div><code><a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>.<a href="/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Vertical.html#(Density).arrange(kotlin.Int,kotlin.IntArray,kotlin.IntArray)">arrange</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;totalSize:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;sizes:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html">IntArray</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;outPositions:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html">IntArray</a><br>)</code></div>
<p>Vertically places the layout children.</p>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
</tbody>
</table>
</div>
<h2>Public properties</h2>
<div><a name="getSpacing()"></a><a name="setSpacing()"></a><a name="getSpacing--"></a><a name="setSpacing--"></a>
<h3 class="api-name" id="spacing()">spacing</h3>
<pre class="api-signature no-pretty-print">open&nbsp;val&nbsp;<a href="/reference/kotlin/androidx/compose/foundation/layout/Arrangement.HorizontalOrVertical.html#spacing()">spacing</a>:&nbsp;<a href="/reference/kotlin/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a></pre>
<p>Spacing that should be added between any two adjacent layout children.</p>
</div>
</body>
</html>