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

All Questions

1 vote
0 answers
18 views

How to change rounding of the Android Material range sliders

I haven't found any information on how to change both the active and inactive tracks corner rounding for Android Material range sliders ; how do I do that or work around it? I have read: Android ...
xxfogs's user avatar
  • 79
0 votes
1 answer
118 views

ShapeableImageView - Changing height results in cut-off corners when applying new ShapeAppearanceModel

My app needs to support multiple corner radius/aspect ratio combination presets which may be displayed in different orders depending on the user profile being displayed. For example, preset A has ...
Cole Tustin's user avatar
2 votes
1 answer
283 views

How to supply an image to create and apply a dynamic content based color scheme?

The Material 3 Design guidelines describes the option of theming based on content (instead of theming based on the current wallpaper of the user). See below for the section: https://m3.material.io/...
Pujie's user avatar
  • 51
2 votes
2 answers
3k views

Material Design 3 DialogFragment is not styled like Dialogs using MaterialAlertDialogBuilder

I have migrated migrated to Material Design 3 and notice that the DialogFragments are not styled like dialogs created using MaterialAlertDialogBuilder. Do you need to add customized styling to ...
nork's user avatar
  • 41
0 votes
1 answer
614 views

How to dynamically create a Material 3 Tonal Button?

I have tried a number of variations of new MaterialButton(context) including new MaterialButton(new ContextThemeWrapper(context, R.style.Widget_Material3_Button_TonalButton)) but it always results in ...
user959631's user avatar
2 votes
0 answers
584 views

Custom Navigation Icon not visible Material Toolbar Android

I am using Material Design Components, each fragment in my app has a seperate Toolbar Fragment Owned Toolbar I am having issue setting the custom drawable as the navitaion icon using xml attribute. In ...
Chandra Shekhar's user avatar
1 vote
0 answers
111 views

MaterialTimePicker with all-day support - Android Material Components

Does anyone know of a fork of the material-components-android repo (or similar library) that implements an "All day" checkbox, or better yet, an All-day + time range selection feature? Right ...
Sean Blahovici's user avatar
5 votes
1 answer
2k views

Material 3 materialThemeOverlay produces bright pink button with no theme

I am migrating from M2 to M3 and my basic materialThemeOverlay no longer works. I follow the code at the bottom of the doc closely, it matched pretty much what I had for M2: styles.xml <style name=&...
Daniel Wilson's user avatar
1 vote
0 answers
1k views

Material design 3 top-app bar is hiding when scroll up?

I am using the Material design 3 android plugin top-app bar is hiding when scrolling up? Ref this screenshot, it is working in material design, not md3. Plz help me, with how to fix here is my full ...
Bolt UIX's user avatar
  • 6,832
0 votes
2 answers
739 views

Chip Drawable giving error in Material UI 3 Android Kotlin

hey I am working in android with material ui 3. I am getting error when I used this code. I am trying to set style through programmatically and I am getting error. I want to create tag through using ...
Vivek Modi's user avatar
  • 6,129
2 votes
0 answers
741 views

Android 12 and material you detection

I'm trying to update my theme with the new Material You, it's working when I select a color in Android parameter (Screenshot red part) but when I disable it (blue part) I've got the default value ...
Cyrille's user avatar
  • 427
0 votes
1 answer
131 views

Why doesn't android:colorBackground work on some devices?

<resources> <style name="Theme.MyApplication" parent="Theme.MaterialComponents.Light"> <item name="android:colorBackground">#26A69A</item&...
Taha Sami's user avatar
  • 1,649
1 vote
0 answers
148 views

Understanding MDC in Android

I'm new to MDC and I want to understand below attributes colorPrimary colorPrimaryVariant colorOnPrimary colorSecondary colorSecondaryVariant colorOnSecondary colorSurface colorOnSurface ...
Taha Sami's user avatar
  • 1,649
1 vote
1 answer
555 views

MaterialComponents CheckBox, how to keep the icon's original colors

I've recently changed my app's theme from Theme.AppCompat to Theme.MaterialComponents, and need to stop my CheckBox views from painting over the icon drawable colors. MaterialComponents views normally ...
PM4's user avatar
  • 664
5 votes
2 answers
987 views

Android iconGravity not working for MaterialButton with CircularProgressIndicator

I've created a custom view that extends MaterialButton that replaces the drawable with a CircularProgressIndicator when it's loading. However when I replace the drawable with the ...
Wirling's user avatar
  • 5,255

15 30 50 per page
1
2 3 4 5
22