13 questions
0
votes
1
answer
441
views
How to animate visibility of Compose Row with horizontal scroll?
I hava Row with .horizontalScroll(scrollState) and I need to implement show and hide Row items animation.
I need it so that when it is necessary to hide elements, they all collapse into one element ...
1
vote
1
answer
137
views
How to implement bounce effect for row with horizontal scroll?
I have Row with .horizontalScroll() and I need bounce animation effect. That is, when the list appears, it scrolls forward a little, and then returns back. At the same time, I need a spring effect ...
0
votes
1
answer
66
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),
...
3
votes
0
answers
1k
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 ...
3
votes
2
answers
2k
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 ...
0
votes
1
answer
420
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)
....
0
votes
1
answer
53
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 ...
2
votes
2
answers
1k
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: ...
2
votes
1
answer
303
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, ...
0
votes
2
answers
884
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 ...
2
votes
0
answers
6k
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 ...
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(...
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),
...