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

Questions tagged [android-jetpack-compose-material3]

Jetpack Compose now has Material 3 support! This tag is for questions specifically related to Material 3 Composables, or the migration process from Material 2 -> Material 3 in Compose.

android-jetpack-compose-material3
0 votes
0 answers
18 views

Windows insect Modal Bottom sheet on Android Oreo and earlier wrong behaviour

Using Material 3 Version 1.3.0-beta04, and Modal bottom sheet but the bottom padding is too big and hide the content on android oreo 8.1 and earlier. class MainActivity : ComponentActivity() { @...
Mohammad Al-Hussein's user avatar
1 vote
0 answers
32 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
23 views

Where are the Google code samples/Labs for Jetpack Compose HorizontalMultiBrowseCarousel & HorizontalUncontainedCarousel

My current Android application as a use case to allow the user to swipe through multiple photographs. I researched and found that Android jetpack compose now has two Carousel components. however apart ...
RichardMillhouse's user avatar
0 votes
0 answers
41 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
33 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
117 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
25 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,280
1 vote
0 answers
84 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
54 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
40 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
69 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
53 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
53 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
18 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,280
0 votes
1 answer
59 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

15 30 50 per page
1
2 3 4 5
29