Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [android-jetpack-compose-row]

The tag has no usage guidance.

android-jetpack-compose-row
0 votes
1 answer
33 views

How to make the height of Row with painter Modifier depend on the content inside Compose kotlin

i have a code: Row( modifier = Modifier .fillMaxWidth() .background(Color.Black) .paint( painter = painterResource(resource = Res.drawable.toolbar_background), ...
onesector's user avatar
  • 412
2 votes
0 answers
819 views

How to Implement Swipe-to-Delete with Edit Button in Jetpack Compose?

I have a Row and the content inside it. What I want to do here is, when I slide the Row to the left, the delete and edit button will appear. I could not apply this to my code. I looked at some third ...
NewPartizal's user avatar
2 votes
2 answers
765 views

Jetpack Compose: how to place text on the right side of the row?

I'm trying to place two texts inside a Row, one nailed to the left edge, the other to the right. Moreover, if the left text is too long, it should not overlap the right text, but should be wrapped on ...
testivanivan's user avatar
  • 1,328
0 votes
2 answers
301 views

Bottom view text is half cut in jetpack compose

I have a Column something like this @Composable fun ScreenView(verticalScroll: ScrollState = rememberScrollState()){ Column( modifier = Modifier .padding(16.dp) ....
Vivek Modi's user avatar
  • 6,129
0 votes
1 answer
44 views

Android. How to correctly position elements in row?

I'm trying to position elements in my Row like this: text first, immediately followed by an icon, and a second icon that should be nailed to the end (right edge). Here is a visual example of what it ...
testivanivan's user avatar
  • 1,328
2 votes
2 answers
797 views

Align row item in jetpack compose

I want to make row like this Expected Output AND I tried this piece of code DividerWithItem @Composable fun DividerWithItem( modifier: Modifier = Modifier, index: () -> Int, itemName: ...
Vivek Modi's user avatar
  • 6,129
2 votes
1 answer
240 views

How to add stickyness to fullscreen ScrollableRow elements with Jetpack Compose?

I have a ScrollableRow with lets say 5 fullscreen composables. ScrollableRow( modifier = Modifier.fillMaxSize(), scrollState = scrollState) { myData.items.forEachIndexed{ index, ...
Edna Krabappel's user avatar
0 votes
2 answers
793 views

Row composable not taking up the full width of parent

I have a shopping list item composable that is not taking up the entire width of the parent, as you can see below with the red border. I want it to be flush against the parent's edge. And why is there ...
Raj Narayanan's user avatar
2 votes
0 answers
4k views

Text composable using Annotated String unexpectedly takes up the same colour as a Button() placed within the same row

I built a composable which is basically a Row containing an address as Text and a Button alongside it. The address contains a label within it (e.g. 'Bill To: ') and to format it slightly differently I ...
devanshu_kaushik's user avatar
2 votes
1 answer
4k views

Set height to Row in Jetpack Compose equivalent to wrap_content in xml

I have this row with two buttons and one divider. I had set the weight so the buttons can have the same width. Row(modifier = Modifier .fillMaxWidth() .padding(horizontal = 5.dp) .height(...
juske's user avatar
  • 109
6 votes
2 answers
2k views

Icons getting disappears if the text is too long in Jetpack Compose

@Composable fun TopAppBar( name: String, modifier: Modifier = Modifier ) { Row( modifier = modifier .fillMaxWidth() .padding(20.dp, 0.dp), ...
Chinmay's user avatar
  • 434