All Questions
Tagged with material-components-android material-design
406
questions
2
votes
1
answer
177
views
Updating Jetpack Compose broke dynamic colors
In my Android Project I was using the Compose BOM 2023.08.00 version, and now I updated to 2024.04.01, but after doing so, dynamic colors no longer work. Instead, it shows gray (which isn't the ...
1
vote
1
answer
118
views
Material Design scroll-away searchbar with recyclerview
I would like my Material Design Searchbar to scroll-away/collapse when scrolling down in my recyclerview. I followed the guidelines from here but I can't get it to work.
My activity XML:
<?xml ...
0
votes
3
answers
173
views
How to Enforce ColorAccent in Dialog Buttons Across Different App Themes?
I expected the dialog's button text to use colorAccent.
However, in some app themes, the dialog's button text uses colorPrimary.
Here are my findings:
Theme.AppCompat.Light.DarkActionBar - Dialog's ...
0
votes
0
answers
132
views
Styling Android Material Time Picker
I'm new here and seeking guidance on styling a time picker to match a specific design. I'm working on a Android kotlin project, and I want to achieve a look similar to the following image:
However, I'...
1
vote
1
answer
125
views
Material Design SearchView has no method "setOnQueryTextListener"
I am struggling to implement material components search in my android app following this tutorial
I built a basic app with viewbinding, added implementation 'com.google.android.material:material:1.11....
0
votes
1
answer
130
views
How to change inflated toolbar item icon color in Actionmode from App Theme
This is the main theme we use for all our apps:
<resources>
<!-- Learn more about theming: https://m2.material.io/design/material-theming/implementing-your-theme.html#color -->
<...
0
votes
0
answers
32
views
CoordinatorLayout Behavior not working when RecyclerView or NestedScrollView scroll programmatically
I have AppBarLayout and BottomNavigationView that both collapse during scroll.
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout ...
0
votes
1
answer
73
views
Material Dialog - How to change color of Checkbox in single choice items?
I am trying to change the color of radio button for Material Dialog, what possibility I found in the documentation here and here is to override the whole layout using app:singleChoiceItemLayout but is ...
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 ...
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
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
31
views
Start Icon in Materal Design 3's Input Text seems to be ignoring MinSize property
I've been trying to utilize leading icons in my input texts while developing a mobile app, however, I cant seem to resize the icon to match the size of the input text.
code 1:
result 1:
Also tried ...
1
vote
0
answers
56
views
Is it possible to change the shape of the material design slider? Android, Kotlin
The slider by material design has by default a pill shape. Is it possible to change that shape to a rectangle?
This is my goal. Green is the background, purple is 10% of progress, black is the 90% of ...
0
votes
1
answer
188
views
Do I really need to set icon size manually when using LargeFloatingActionButton in Jetpack Compose?
I assumed that when using LargeFloatingActionButton, the icon size would be somehow set automatically (this is the point of using LargeFloatingActionButton, so that everything works out of box, right?)...
0
votes
1
answer
478
views
How to add curved tab when using TabRow and Tab with Compose and Material 3?
I am trying to add the TabRow and Tab from Material 3 library on an Android Jetpack Compose application. The tab indicators are always in plain stroke and doesn't reflect the actual curved indicator ...