Questions tagged [android-jetpack-compose-surface]

5 questions
34
votes
4 answers

Jetpack Compose Surface click ripple is not clipped based on shape?

I have 3 Surfaces as can be seen in gif when i click ripple effect propagates without taking the shapes of Surfaces into consideration. Which are created with @Composable fun SurfaceClickPropagationExample() { // Provides a Context that can be…
Thracian
  • 43,021
  • 16
  • 133
  • 222
14
votes
2 answers

Whats the difference between Surface and Card in Jetpack Compose?

It's basically the same right? They have the same properties. I really don't know when I have to use each. Technically Cards is for a Card view but Surface have the same properties like elevation and border
1
vote
1 answer

My views are overlapping one another in jetpack compose

I am very new to jetpack compose please help, I have use Surface() but my views are overlapping one another, I want separate view as first one should be TopHeader() and another one should be BillForm My code is:- class MainActivity :…
0
votes
1 answer

How to make a Jetpack compose element appear on top of the keyboard in android?

Making a button stick to the bottom of the screen and to the keyboard when it pops up was pretty straightforward in XML, we could do something like this
0
votes
2 answers

How to save expandable card composable state and scrolling position in jetpack compose

I'm using custom expandable card as, @Composable fun ExpandableCardComposable( isExpandable: Boolean = false, topContent: @Composable () -> Unit, buttomContent: @Composable () -> Unit ) { val transactionState = remember { …