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.

Jetpack Compose now has Material 3 support, though as of late 2022 there are still various experimental APIs and some aspects are not implemented.

Package documentation can be found here.

226 questions
0
votes
2 answers

Jetpack Compose Material 3 Error . Could not resolve all files for configuration ':app:debugRuntimeClasspath'

I have Two lines of error when i run the simple Jetpack Compose Material 3 Project build.gradle(Project:) buildscript { ext { compose_version = '1.3.0-beta02' core_ktx_version = '1.9.0-rc01' material3_version =…
0
votes
0 answers

Move Material3 LargeTopAppBar when scrolling list programatically with state.animateScrollBy

I have a problem collapsing material3 LargeTopAppBar when scrolling the list programatically. Have a look at this gif, when scrolling by touch the app bar collapses correctly, when calling lazyListState.animateScrollToItem(45) the top bar wont…
0
votes
1 answer

how do hide NavigationBar indicatorColor?

question I am using the android material3 library and want to change the color transparency of the indicator, but the source code uses color transparency by default to control the display or hide, how should I control the display and hide of the…
0
votes
2 answers

How to add elevation shadow to SmallTopAppBar in Material3?

How do I add an elevation drop shadow to the SmallTopAppBar in Material3? With the TopAppBar in Material2, you simply had to specify the elevation parameter, but how do you do it with Material3?
0
votes
1 answer

I get the same Download URL for all users inside an items in LaxyRow Jetpack Compose

I have a list of users. Each user has a profile picture in storage that has a URL like this: gs://my-app.appspot.com/users/uid.png This list is displayed in a LazyRow: LazyRow( modifier = Modifier.fillMaxWidth() ) { items(users) { user -> …
0
votes
2 answers

How to change the border color of a card, on card click in Jetpack Compose?

I have list of users that is displayed in a lazy row. Each row is represented by a card. Each card has a red border. How can I change the border of the card from red to black, on card click? Here is what I have tried: LazyRow( modifier =…
0
votes
2 answers

How to perform Android tests with Compose and Material3?

Fairly standard Android tests that once executed normally, fail to build now that I have upgraded my Jetpack Compose-based app to Material3. They all give me the same error at build time: java.lang.IllegalStateException:…
0
votes
1 answer

Type mismatch when creating state for Switch

Even when I change the parameter isChecked type to MutableState another error is still returned. Type mismatch. Required: MutableState. Found: Boolean. @Composable fun PreferencesScreen(navController: NavController) { var isChecked =…
0
votes
1 answer

is it possible to use both androidx.compose.material3.MaterialTheme & androidx.compose.material.MaterialTheme in Android application

I am investigating Android Jetpack Compose in my current Android application. I wish to have the main screen contain a backdrop and show selected options on the front layer. I also require my application to support Dark Mode. It seems to me that I…
Hector
  • 4,016
  • 21
  • 112
  • 211
0
votes
2 answers

Compilation issues ("Unresolved reference") when Trying to build an app for Android (using Kotlin, Compose in Android Studio)

When experimenting with the Kotlin language and its "Compose" library, I am encountering problems with some examples (which I looked up on the site of Android, so I suppose the example should be more or less OK). More precisely, some imports…
0
votes
1 answer

I cant use from style OutlinedBox Dense - Android

I am using from this style="@style/Widget.Material3.AutoCompleteTextView.OutlinedBox.Dense" but get me bellow error: Caused by: android.view.InflateException: Binary XML file line #26: Binary XML file line #26: Error inflating class…
0
votes
1 answer

Change background color of Badge compose

The default color of the Badge is red , how to change this color in jetpack compose? I am using Badge inside BagedBox and I have already tried Modifier.Background... but it is not working.
0
votes
1 answer

How to create own brand color style using material3?

The Material 3 color theming system can be used to create a color scheme that reflects your brand or style as per material 3 guidelines. Ref: https://m3.material.io/libraries/mdc-android/color-theming My brand color is RED, how to create a…
-1
votes
0 answers

Jetpack Compose and MaterialToggleButtonGroup not working

I wanted to add a MaterialToggleButtonGroup using View Interop to the UI. It gave me an error while doing so. My Code: SimpleAndroidView( modifier = modifier, update = { it.check(it.getChildAt(selectedCount).id) …
-1
votes
1 answer

Compose material3 OverScroll Shows in all 4 directions

I am using meterial3 with Compose . I found that all the Scrollable Composable Showing overscroll effect in all 4 directions regardless of scrolling direction. that goes for Column, LazyColumn, LazyVerticalGrid etc .. I m not using anything custom…
ADM
  • 20,406
  • 11
  • 52
  • 83
1 2 3
14
15