Skip to main content

All Questions

1 vote
0 answers
28 views

How to keep the button over the other elements even if it is disabled in Jetpack Compose?

I have a screen where I display a list of items: Scaffold( content = { //List of items }, floatingActionButton = { Button( onClick = { if (...
Always Learner's user avatar
0 votes
0 answers
34 views

Content of the activity jumps under the status bar when Admob's Interstitial is shown in Jetpack Compose

Here's the default example of empty activity created with Jetpack Compose, just replaced a text with a button to show fullscreen ad (Admob Interstitial) class MainActivity : ComponentActivity() { ...
user924's user avatar
  • 11.1k
1 vote
1 answer
29 views

Jetpack Compose: Text Alignment and Display Issues in Button within SegmentedControl

I'm building a segmented control in Jetpack Compose using a Row with Button composables to create a visual toggle. While the button size is working as expected, the text within the buttons is not ...
Aashish Ace's user avatar
1 vote
1 answer
86 views

Status Bar incorrectly displays time and other status colors in API 35 Android Emulators

I am currently trying to migrate my app to be compatible with Android 15. And as far as I concerned, in order to test Android 15 API, we need set up API 35 or VanillaIceCream API. Also based on the ...
vinhDev3006's user avatar
0 votes
1 answer
24 views

SharedElementTransition not recognising declarations

Why do these 2 errors appear despite using the correct imports and dependenices? Unresolved reference: rememberSharedElementFor Unresolved reference: sharedElement MainActivity.kt import android.os....
wbk727's user avatar
  • 8,270
1 vote
0 answers
69 views

Jetpack Compose Shared Element Transition Bug?

so i have this shared element transition bug or maybe i just implement it wrong in compose, you can see the bug on this video video. as you can see at first the transition between list screen and ...
agung Dwi's user avatar
1 vote
2 answers
53 views

How can I create scrollable tabs using Jetpack Compose?

I want to create the kind of "tabs" that Whatsapp has (all, unread, groups) whatsapp tab image but they also have to be scrollable. But, I am not sure what the tabs are even called since the ...
jess her's user avatar
0 votes
1 answer
34 views

Can't use Text Composable in Button of Jetpack Compose

I'm new to Jetpack Compose. I follow tutorial from docs. But unfortunately, I can't use following code. Button(onClick = { }) { Text(text = "Hello") } error is @...
Thaw De Zin's user avatar
  • 1,609
1 vote
1 answer
62 views

How can I change the background color of TextField in Compose?

I want to change the background color of a TextField in Jetpack Compose, but nothing seems to work. I have tried setting Modifier.background(color = Color.Transparent), but it does not work (color ...
Muhammad Khosravi's user avatar
1 vote
0 answers
51 views

Jetpack Compose RangeSlider crash for discrete values

I'm trying to use a RangeSlider to be able to select discrete values. The current data set I'm using comes from our backend with values in 15..50. It mostly works, except that two values on the slider ...
Makalaster's user avatar
0 votes
0 answers
41 views

How to create a floating window with Jetpack Compose

I just started learning kotlin with Compose and I want to create an app that stands out from other apps. I already know that I need to create a service, but I don't know how. Something like I tried ...
Migliorelli's user avatar
0 votes
0 answers
17 views

How to animate LazyList layout - replicate Recyclerview animation

Is it possible yet in Jetpack Compose to animate items in a LazyList when entering a page? Expected result (the animation titled "Fall down") Attempt before the Jetpack Compose era ...
wbk727's user avatar
  • 8,270
0 votes
1 answer
49 views

BottomSheetScaffold's bottom sheet HalfExpanded state doesn't work as it should

I'm using bottom sheet scaffold to show it half expanded and still be able to interact with another part of the screen @OptIn(ExperimentalMaterial3Api::class) @Composable fun Screen() { val ...
memeprincess's user avatar
1 vote
1 answer
65 views

Jetpack compose preview for screen that have SharedTransitionScope, AnimatedVisibilityScope as parameter

I have this implementation for my Screen that use shared element transition } @OptIn(ExperimentalSharedTransitionApi::class) @Composable fun NoteContent( state: NoteState, query: String, ...
agung Dwi's user avatar
2 votes
1 answer
39 views

Display a `Drawable`

I'm working with JetPack Compose and I'm trying to display a Drawable (I want to display icons of other applications installed on the device): val application: ResolveInfo; val packageManager = ...
Valentin Vignal's user avatar

15 30 50 per page
1
2 3 4 5
26