blob: 20883a2e2ae6bfb51ab04cff3bbe2140cc7dbc66 [file] [log] [blame]
Tiem Song6fed3de2021-06-14 14:48:10 -07001<html devsite="true">
2 <head>
3 <title>GridCells.Fixed</title>
4{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %}
5{% include "_shared/_reference-head-tags.html" %}
6 </head>
7 <body>
Tiem Song6f896de2022-11-03 14:55:52 -07008 <div id="metadata-info-block"></div>
Tiem Song6fed3de2021-06-14 14:48:10 -07009 <h1>GridCells.Fixed</h1>
Tiem Song6fed3de2021-06-14 14:48:10 -070010 <p>
Owen Gray22f20572022-08-08 13:48:02 -040011 <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>
Tiem Song6fed3de2021-06-14 14:48:10 -070012 </p>
13 <div class="devsite-table-wrapper">
14 <table class="jd-inheritance-table">
15 <tbody>
16 <tr>
Owen Gray7fcd36c2022-07-12 17:25:02 -040017 <td colspan="3"><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">kotlin.Any</a></td>
Tiem Song6fed3de2021-06-14 14:48:10 -070018 </tr>
19 <tr>
20 <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
Owen Gray7fcd36c2022-07-12 17:25:02 -040021 <td colspan="2"><a href="/reference/kotlin/androidx/compose/foundation/lazy/GridCells.html">androidx.compose.foundation.lazy.GridCells</a></td>
Tiem Song6fed3de2021-06-14 14:48:10 -070022 </tr>
23 <tr>
24 <td>&nbsp;</td>
25 <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;↳</td>
Owen Gray7fcd36c2022-07-12 17:25:02 -040026 <td colspan="1"><a href="/reference/kotlin/androidx/compose/foundation/lazy/GridCells.Fixed.html">androidx.compose.foundation.lazy.GridCells.Fixed</a></td>
Tiem Song6fed3de2021-06-14 14:48:10 -070027 </tr>
28 </tbody>
29 </table>
30 </div>
31 <hr>
32 <p>Combines cells with fixed number rows or columns.</p>
Paweł Marks4724d6f2021-12-22 17:11:51 +010033 <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>
Tiem Song6fed3de2021-06-14 14:48:10 -070034 <h2>Summary</h2>
35 <div class="devsite-table-wrapper">
36 <table class="responsive">
37 <thead>
38 <tr>
Andrea Falcone80f1a8f2022-08-23 11:22:33 -040039 <th colspan="100%"><h3>Public constructors</h3></th>
Tiem Song6fed3de2021-06-14 14:48:10 -070040 </tr>
41 </thead>
Andrea Falcone80f1a8f2022-08-23 11:22:33 -040042 <tbody class="list">
Tiem Song6fed3de2021-06-14 14:48:10 -070043 <tr>
44 <td>
45 <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>
46 </td>
47 </tr>
48 </tbody>
49 </table>
50 </div>
51 <div class="devsite-table-wrapper">
52 <table class="responsive">
53 <thead>
54 <tr>
Andrea Falcone80f1a8f2022-08-23 11:22:33 -040055 <th colspan="100%"><h3>Public properties</h3></th>
Tiem Song6fed3de2021-06-14 14:48:10 -070056 </tr>
57 </thead>
Andrea Falcone80f1a8f2022-08-23 11:22:33 -040058 <tbody class="list">
Tiem Song6fed3de2021-06-14 14:48:10 -070059 <tr>
60 <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></code></td>
61 <td>
62 <div><code><a href="/reference/kotlin/androidx/compose/foundation/lazy/GridCells.Fixed.html#count()">count</a></code></div>
63 </td>
64 </tr>
65 </tbody>
66 </table>
67 </div>
68 <h2>Public constructors</h2>
69 <div><a name="Fixed-kotlin.Int-"></a><a name="fixed"></a>
70 <h3 class="api-name" id="Fixed(kotlin.Int)">Fixed</h3>
71 <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>
72 </div>
73 <h2>Public properties</h2>
74 <div><a name="getCount()"></a><a name="setCount()"></a><a name="getCount--"></a><a name="setCount--"></a>
75 <h3 class="api-name" id="count()">count</h3>
76 <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>
77 </div>
78 </body>
79</html>