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,361
questions
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 ...
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 ...
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 ...
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
&...
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 ...
-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 ...
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 ...
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{...
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 ...
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 ...
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 ...
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 ...
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....
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(...
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,...