blob: 20883a2e2ae6bfb51ab04cff3bbe2140cc7dbc66 [file] [log] [blame]
<html devsite="true">
<head>
<title>GridCells.Fixed</title>
{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<div id="metadata-info-block"></div>
<h1>GridCells.Fixed</h1>
<p>
<pre>@<a href="/reference/kotlin/androidx/compose/foundation/ExperimentalFoundationApi.html">ExperimentalFoundationApi</a><br>class <a href="/reference/kotlin/androidx/compose/foundation/lazy/GridCells.Fixed.html">GridCells.Fixed</a> : <a href="/reference/kotlin/androidx/compose/foundation/lazy/GridCells.html">GridCells</a></pre>
</p>
<div class="devsite-table-wrapper">
<table class="jd-inheritance-table">
<tbody>
<tr>
<td colspan="3"><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">kotlin.Any</a></td>
</tr>
<tr>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
<td colspan="2"><a href="/reference/kotlin/androidx/compose/foundation/lazy/GridCells.html">androidx.compose.foundation.lazy.GridCells</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
<td colspan="1"><a href="/reference/kotlin/androidx/compose/foundation/lazy/GridCells.Fixed.html">androidx.compose.foundation.lazy.GridCells.Fixed</a></td>
</tr>
</tbody>
</table>
</div>
<hr>
<p>Combines cells with fixed number rows or columns.</p>
<p>For example, for the vertical <code><a href="/reference/kotlin/androidx/compose/foundation/lazy/package-summary.html#LazyVerticalGrid(androidx.compose.foundation.lazy.GridCells,androidx.compose.ui.Modifier,androidx.compose.foundation.lazy.LazyListState,androidx.compose.foundation.layout.PaddingValues,kotlin.Function1)">LazyVerticalGrid</a></code> Fixed(3) would mean that there are 3 columns 1/3 of the parent wide.</p>
<h2>Summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="100%"><h3>Public constructors</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td>
<div><code><a href="/reference/kotlin/androidx/compose/foundation/lazy/GridCells.Fixed.html#Fixed(kotlin.Int)">Fixed</a>(count:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="100%"><h3>Public properties</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></code></td>
<td>
<div><code><a href="/reference/kotlin/androidx/compose/foundation/lazy/GridCells.Fixed.html#count()">count</a></code></div>
</td>
</tr>
</tbody>
</table>
</div>
<h2>Public constructors</h2>
<div><a name="Fixed-kotlin.Int-"></a><a name="fixed"></a>
<h3 class="api-name" id="Fixed(kotlin.Int)">Fixed</h3>
<pre class="api-signature no-pretty-print"><a href="/reference/kotlin/androidx/compose/foundation/lazy/GridCells.Fixed.html#Fixed(kotlin.Int)">Fixed</a>(count:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>)</pre>
</div>
<h2>Public properties</h2>
<div><a name="getCount()"></a><a name="setCount()"></a><a name="getCount--"></a><a name="setCount--"></a>
<h3 class="api-name" id="count()">count</h3>
<pre class="api-signature no-pretty-print">val&nbsp;<a href="/reference/kotlin/androidx/compose/foundation/lazy/GridCells.Fixed.html#count()">count</a>:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></pre>
</div>
</body>
</html>