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

Questions tagged [material-components-android]

Material Components for Android (MDC-Android) help developers execute Material Design. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional Android apps.

material-components-android
1 vote
0 answers
46 views

Incorrect Colors in Jetpack Compose Preview and Physical Device [duplicate]

I'm facing an issue with colors in my Jetpack Compose app. Both in the Android Studio Preview and on my physical device (Samsung SM-G780G - Android 13.0), the colors are incorrect. In the Preview, the ...
Collaxd's user avatar
  • 517
1 vote
3 answers
314 views

MDC: Material3 MaterialCalendar Background Color

How to change Material Calendar background? I am setting a day and night theme and it is working except for the night mode where the set color background is not applied correctly. This is the expected ...
Bitwise DEVS's user avatar
  • 3,156
1 vote
1 answer
1k views

Edge to Edge Theme for Background of Android Activity to Hide Status Bar Scrim During Fragment Transitions

I have 1 activity that hosts multiple fragments in a navHostFragment. To switch between them I use androids Navigation Component (i.e. navGraph). Now I want to enable edge-to-edge. I already have it ...
citizen_code's user avatar
0 votes
0 answers
69 views

How can I equally space items of BottomNavigationView

I am using a BottomNavigationView from material library, how can I evenly distribute the buttons of the BottomNavigationView in tablet mode, instead of having all the buttons centered? This is my XML &...
Toqgcm's user avatar
  • 35
0 votes
0 answers
66 views

Material catalog draggable layout stops working when view is added

I'm using the DraggableCoordinatorLayout from the Material Components Catalog to create a set of draggable views (material CardView) that can be dragged around like stickers, it works properly when ...
Quollveth's user avatar
-1 votes
1 answer
168 views

material chip selection change not working in android

I have created group of chips and when i try try to click on chips below listener is not calling. I want to update the code based on chip selection. chipGroup.setOnCheckedStateChangeListener Below is ...
Techchai Mobile's user avatar
0 votes
0 answers
126 views

Android Bottom Navigation View long press is not being called after first menu item selection

I was trying to disable the tooltip popping up when you long-press a bottom navigation view item. Here is the sample view of the default behavior of the nav view when you long press: I know that ...
Y.Kakdas's user avatar
  • 843
0 votes
0 answers
28 views

What will better, make own custom AppBar, or to insert 2 appBar Android Material

I need to have 1 appBar in top where will be information, and another below is search. But Jetpack offer AppBars not very customizable I dont know what will better to do Scaffold(topBar = {Column{...
Витязи Team's user avatar
0 votes
1 answer
224 views

How can I change corner radius in material button toggle group?

I want make Material Button Toggle Group Like this: all rounded But result is: half rounded I've changed shapeAppearance (cornerSizeTopRight, ...) or cornerSize, but only the outer part of the buttons ...
Haeiny's user avatar
  • 3
0 votes
0 answers
35 views

Material Design Guidelines for choosing the right Composable

Material3 from Google is great for applying some consistency in terms of what colors, shapes and typography is used throughout the app. However, sometimes i struggle with knowing which composables to ...
mars8's user avatar
  • 1,148
0 votes
0 answers
30 views

How to remove the tiny wired color from bottom navigation view?

This is how it looks like in light theme Light Theme Preview (even though the bottom system bar had light icon even in light mode it's should be gray or something like that, whatever) Dark Theme ...
Crazy Rocket's user avatar
1 vote
2 answers
583 views

Android 14 predictive back background color mismatch

I am implementing predictive back in my android app and am facing a problem. In the left screenshot below, the redder color is my android:windowBackground and I am in the process of doing a predictive ...
SweSnow's user avatar
  • 17.3k
0 votes
0 answers
276 views

Have a Button on top of a BottomSheet

I'd like to constrain a Button to the top of a BottomSheet so that when i drag the BottomSheet the button's height follows the BottomSheet's Like that: <androidx.coordinatorlayout.widget....
Neyross's user avatar
  • 23
2 votes
1 answer
145 views

BottomNavigationView height issue when changing status bar transparency in Android app material 3

I'm working on an Android app where I want to change the status bar transparency in a DetailFragment. I've implemented a function transparentStatusBar to achieve this. When I call transparentStatusBar(...
Noah's user avatar
  • 21
0 votes
0 answers
31 views

How to stop background of MaterialCardView in Dialog Fragment from being overriden?

I currently have a Dialog Fragment that uses a MaterialCardView as the root with the @style/Widget.Material3.CardView.Outlined style. It looks correct in the layout designer in Android Studio. However,...
Pycorax's user avatar
  • 77

15 30 50 per page
1 2 3
4
5
91