File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed
examples/android-example/app/src/main/java/com/example/myapplication Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -114,21 +114,24 @@ fun DataFrameTable(df: DataFrame<*>) {
114114 val columnNames = remember(df) { df.columnNames() }
115115 val rows = remember(df) { df.rows().toList() }
116116
117- // Header
118- Row {
119- for (name in columnNames) {
120- Text (
121- text = name,
122- modifier = Modifier
123- .weight(1f )
124- .padding(4 .dp),
125- style = MaterialTheme .typography.labelLarge
126- )
127- }
128- }
117+ LazyColumn {
118+ item {
119+ // Header
120+ Row {
121+ for (name in columnNames) {
122+ Text (
123+ text = name,
124+ modifier = Modifier
125+ .weight(1f )
126+ .padding(4 .dp),
127+ style = MaterialTheme .typography.labelLarge
128+ )
129+ }
130+ }
129131
130132 Spacer (Modifier .height(4 .dp))
131133 }
134+ // Rows
132135 items(rows) { row ->
133136 Row {
134137 for (cell in row.values()) {
You can’t perform that action at this time.
0 commit comments