blob: ac9e14916b6164a7f635f293271ecee98f1122cb [file] [log] [blame]
<html devsite="true">
<head>
<title>Arrangement.HorizontalOrVertical</title>
{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<h1>Arrangement.HorizontalOrVertical</h1>
<p>
<pre>interface Arrangement.HorizontalOrVertical implements <a href="/reference/androidx/compose/foundation/layout/Arrangement.Horizontal.html">Arrangement.Horizontal</a>, <a href="/reference/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/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/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 fields</h3></th>
</tr>
</thead>
<tbody>
<tr>
<td width="40%"><code>default @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a></code></td>
<td>
<div><code><a href="/reference/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 methods</h3></th>
</tr>
</thead>
<tbody>
<tr>
<td><devsite-expandable><span class="expand-control">From class <a href="/reference/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>abstract void</code></td>
<td>
<div><code><a href="/reference/androidx/compose/foundation/layout/orgKt.html">orgKt</a>.<a href="/reference/androidx/compose/foundation/layout/Arrangement.Horizontal.html#(Density).arrange(kotlin.Int,kotlin.IntArray,LayoutDirection,kotlin.IntArray)">arrange</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;receiver,<br>&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;totalSize,<br>&nbsp;&nbsp;&nbsp;&nbsp;int[]&nbsp;sizes,<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;layoutDirection,<br>&nbsp;&nbsp;&nbsp;&nbsp;int[]&nbsp;outPositions<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/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>abstract void</code></td>
<td>
<div><code><a href="/reference/androidx/compose/foundation/layout/orgKt.html">orgKt</a>.<a href="/reference/androidx/compose/foundation/layout/Arrangement.Vertical.html#(Density).arrange(kotlin.Int,kotlin.IntArray,kotlin.IntArray)">arrange</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;receiver,<br>&nbsp;&nbsp;&nbsp;&nbsp;int&nbsp;totalSize,<br>&nbsp;&nbsp;&nbsp;&nbsp;int[]&nbsp;sizes,<br>&nbsp;&nbsp;&nbsp;&nbsp;int[]&nbsp;outPositions<br>)</code></div>
<p>Vertically places the layout children.</p>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
</tbody>
</table>
</div>
<h2>Public fields</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">default&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/[JVM root]/&lt;ERROR CLASS&gt;.html">&lt;ERROR CLASS&gt;</a>&nbsp;<a href="/reference/androidx/compose/foundation/layout/Arrangement.HorizontalOrVertical.html#spacing()">spacing</a></pre>
<p>Spacing that should be added between any two adjacent layout children.</p>
</div>
</body>
</html>