8,646 questions
3
votes
0
answers
49
views
Android "paddingHorizontal" Doesn't Work on TextInputEdieText
XML:
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/name_inputLayout"
android:layout_width="match_parent"
android:layout_height="...
0
votes
1
answer
44
views
Android Material3 Outlined Button Looks Different from Guideline
XML:
<Button
android:id="@+id/send_button"
style="@style/Widget.Material3.Button.OutlinedButton"
android:layout_width="wrap_content"
android:...
0
votes
0
answers
36
views
When using Material 3's Dynamic Color feature, almost all text in my app becomes too faded
My goal is to make text with Dynamic Color enabled more bright and readable, like how it looks without the Dynamic Color. I know that I can set text color programmatically, but this is an approach, ...
0
votes
0
answers
21
views
Android HideViewOnScrollBehavior Affects Floating Action Button Anchor Position with BottomAppBar
Goal: Hide BottomAppBar with center FloatingActionButton when scrolling behavior happens (programatically).
Issue: Just by adding HideViewOnScrollBehavior, the position of FloatingActionButton is ...
0
votes
1
answer
71
views
M3 Expressive Connected Button Group Toggling
I am using a Connected Button Group in the MDC-Android: Expressive implementation (Java).
How can I set the styling of the <Button />s in the <MaterialButtonGroup /> when pressed so that ...
0
votes
0
answers
25
views
How do you import Material Icons to NativeScript project?
I'm trying to build a Material Design checkbox using Material Icons. Specifically, just for this case, I plan to use the check_box_outline_blank, select_check_box, and indeterminate_check_box.
Here's ...
0
votes
1
answer
83
views
React Material - how to stop tabs unloading content
Being a little bit newish to React.
I am just prototyping a UI in Material Design 3 and React (TypeScript). Using the most very basic example - the issue I am having is with tabs unloading when they ...
0
votes
0
answers
52
views
Using Google Noto CJK Variable Font Collection in Android Apps
My final goal is to load fonts from a Variable Font Collection file. Most phones sold in China enable users to use custom fonts system-wide(ideally), but most of those fonts don't have full support ...
1
vote
1
answer
160
views
How do I change the dropdown‐arrow size in Angular Material mat-select?
I’m using Angular Material 19 and I have managed to override the arrow color via the select-overrides mixin:
Angular Material - Select - Styling
@include mat.select-overrides((
enabled-arrow-...
1
vote
0
answers
43
views
Material Design 3 unclear about spacing between fext fields
Me and my fellow Android devs are working on a component to display multiple text fields (a form, so to say) and came across a problem with vertical spacing. It is a fairly complex application with ...
0
votes
1
answer
441
views
Status Bar Color Ignores android:statusBarColor and Java Override in Material Design 3 (Android Studio Meerkat 2024.3.2) [closed]
I'm transitioning from Material Design 2 to Material Design 3 using Java + XML in Android Studio Meerkat Feature Drop | 2024.3.2 Patch 1. I’m building a new app with Theme.Material3.DayNight....
0
votes
0
answers
98
views
How to migrate Material 3 alert dialog animation from Emphasized motion to Expressive motion?
I'm updating my alert dialog transitions to follow the latest Material 3 motion specification, and I'd like to migrate from the Emphasized motion (which uses emphasized.decelerate / accelerate) to the ...
0
votes
1
answer
55
views
How to clip the content to match to the corner of a Card in Compose?
How can I clip the content to match the corner of the Card.
@Composable
fun PreviewWindow() {
Card {
Column(
modifier = Modifier
.padding(2.dp)
....
1
vote
0
answers
78
views
Jetpack Compose AppBar transformed SearchBar
Like the same element as in the video, with the expand animation. Is there anything native?
in jetpack compose and material 3. I found only this implementation:
@ExperimentalMaterial3Api
@Composable
...
0
votes
0
answers
61
views
Angular Material M3 custom theme specific color
I'm implementing custom Angular Material M3 theme like described below. My question is if anybody could help me: How can I use a specific item from e.g. the primary color map (for example 30) as a ...
0
votes
0
answers
75
views
How to Change Snackbar Background Color Based on Severity in Material Design Toolkit for WPF?
I am using the Material Design Toolkit in a WPF application, and I want to change the background color of the Snackbar based on different severity levels (Info, Warning, Error, Success).
Currently, my ...
1
vote
1
answer
679
views
How to add extended colors on the latest angular material 19 theme
I used the ng generate @angular/material:m3-theme to generate theme colors and apply it on style.scss but when I did this
style.scss
@use '@angular/material' as mat;
@use './_theme-colors.scss' as ...
1
vote
0
answers
59
views
Generate material 3 palette
When I am using the command to generate a theme (ng generate @angular/material:theme-color), then I get a palette, but the primary color (default key 50) is far off from the color I inputted. The most ...
0
votes
1
answer
242
views
Material Theme not working on JetpackCompose
I have issues theming an Android App. I generated a theme with red source color in Material Theme Builder, and I downloaded the compose kt files and ovewrite my project files. I'm applying the theme ...
1
vote
2
answers
6k
views
Android 15 Status bar color not changing in edge to edge
I am trying to implement android 15 (API 35) edge to edge UI, its look working except the status bar color i have with the navigation drawer(with toolbar) in android 13 or lower.I tried to follow ...
0
votes
1
answer
206
views
How to Change Date Format to "dd/mm/yyyy" from "mm/dd/yyyy" in showDatePicker Input Mode?
In Flutter showDatePicker(material), when the user switches to input mode by clicking on the switchToInputEntryModeIcon, the default date format is "mm/dd/yyyy". However, I need the format ...
0
votes
0
answers
234
views
How to properly manage snackbars in compose multiplatform using string resources?
How can I properly displays snackbars using compose multiplatform and string resources? I want to be able to use the material 3 snackbar components, but be able to pass StringResource and not a string,...
1
vote
0
answers
22
views
How to implement Container Transform material design pattern for list items with Vuetify?
I'm speaking about the transition where an element of a list expands to fill the container without affecting other elements' positions:
https://m2.material.io/develop/android/theming/motion has a ...
0
votes
0
answers
36
views
How to make the animation of android bottom navigation view icon not shaky when changing between features?
Shaky bottom nav icon animation I have this material bottom navigation view inside every fragment for each feature(plan, edu, therapy, profile):
<com.google.android.material.bottomnavigation....
0
votes
0
answers
25
views
Value rendered over Placeholder in material-design-ui-kit (React) + react-hook-form
TLDR: Problem:
In MDBInput, a value renders over placeholder causing not readable any of them.
Motivation:
Moreless a newbie, trying to learn on-the-fly. I am tying to implement modal popup with form ...
1
vote
0
answers
80
views
How do I use Material Design 3’s contrast functionality from the output of material color utilities (typescript version)?
I’m getting 29 fixed colors and 6 palettes for primary, secondary, tertiary, neutral, neutral-variant and error from the typescript package of material color utilities.
Material Design 3’s color ...
1
vote
3
answers
72
views
Custom Angular Component Not Rendering
I am trying to create a custom reusable component based on material angular.
I have the following code dropdown.component.ts
import {AfterContentInit, Component, ContentChildren, QueryList, ...
0
votes
2
answers
2k
views
Navigation Bar showing black strip when bottom Sheet opens in android 15
I am trying to updated to android 15. I have few BottomSheets in app. All of them are showing a strip at bottom which is not part of Bottom sheet in android 15 device.
The current theme i m using for ...
0
votes
0
answers
65
views
Detect Material You (Monet Engine) color changes in flutter
I'm creating a flutter app using the dynamic_color library to enable material you colors. However, It doesn't seem to react to material_you color changes.
I tried using a StatefulWidgets with ...
0
votes
0
answers
89
views
How to create a React Native Paper theme with Material Theme Builder using a JSON
I created a custom theme using Material Theme Builder which I exported as a JSON file.
I was wondering what is the best way of converting this file to a useable React Native Paper theme?
The JSON file ...
0
votes
1
answer
84
views
Proper toggle buttons in a Compose Material 3 toolbar?
I'm creating a rich text editor toolbar with toggle buttons (e.g., Bold, Italic, List, etc.) using Jetpack Compose and Material Design 3. The default IconToggleButton has a subtle selected state (just ...
0
votes
1
answer
113
views
Make Material CheckBox Checkmark Color Black Instead of Transparent
I like the animation and the teal color of the default Material 3 CheckBox. However, the checked checkBox on a white background is not easily readable for those that are color blind. I would like for ...
2
votes
1
answer
223
views
Why styles do not work properly with Material3 (Android)?
I am using the below code to add a style to RadioButtons in my app. The parent of the base theme of the app is Theme.Material3.DayNight.NoActionBar.
Below is the code:
<style name="RadioStyle&...
0
votes
1
answer
126
views
Compose Material Theme not giving the correct Color
I already setup custom color for Jetpack Compose theme, but when i call MaterialTheme.colorScheme.primary it giving me the default purple color.
val primaryLight = Color(0xFF1F6A4E)
private val ...
0
votes
1
answer
143
views
how to override InputDecorationTheme border color on hover?
I tried to generate theme using the Material theme builder using #EC6164 as the source color but the output of the onError property of the color scheme is Color(0xffffffff)(white). Now the output ...
0
votes
1
answer
50
views
Buggy color in Jetpack Compose (FAFAFA)
I have a card in Jetpack Compose on which I set the container color to 0xFFFAFAFA, (250, 250, 250).
Now this color is light grey but for me it's bluish. Why could that be?
Card(
modifier = ...
1
vote
1
answer
342
views
MUI CSS variables overwrite not working properly
I defined reusable Manage button in a react library with below code
ManageButton.tsx
interface ManageButtonProps {
size?: 'small' | 'medium' | 'large';
name?: string;
dataCy?: string;
...
0
votes
1
answer
61
views
Can't override the disabled Button Color
I'm feeling stupid: I can't override the color of a Button when it is disabled.
The code looks good, and I can ensure that the logic of _isDisabled is correct.
The button:
ElevatedButton(
onPressed:...
0
votes
1
answer
94
views
Errors in style/theme for Material3 components in legacy app
I'm trying to use SearchBar and SearchView from the material components library in my app. These are new components for Material 3.
implementation 'com.google.android.material:material:1.12.0'
...
1
vote
1
answer
102
views
Linear Progress Iindicator Flutter
In flutter, is possibile to achive a google like style for Linear Progress Indicator, like te picture attached?
This is my code
LinearProgressIndicator(
borderRadius: const BorderRadius.only(...
3
votes
1
answer
586
views
Date picker mount and year jetpack compose
How can I make it so that when opening the calendar, the user can select only the month and year in jetpack compose. I did not find such a way in the documentation.
I tried to change the date picker ...
0
votes
0
answers
43
views
<Select> Menu doesnt work anymore after implementing Marterial UI Design both version are written in React/Typescript
Problem:
In the new version nothing happens if I click any item, the Select Menu stays open till I press escape or something.
Old version:
return(
<div>
...
-1
votes
1
answer
215
views
Why are deprecated elevation-based tint overlays still in Material Design 3 Component Specs page?
I'm using --md-sys-color-surface-container-low as my Card surface color, then I referred to Material 3's Card Component Specs page , and it says one of the specs is Elevated card container surface ...
6
votes
4
answers
2k
views
TopAppBar has unknown padding when using nested Scaffold with Compose Navigation
I have a Scaffold at the root level of app where I host the navigation. This scaffold doesn't have a top app bar and only contains a FAB. Then, in one of the destinations, I am using another Scaffold ...
0
votes
1
answer
282
views
How can I use web material 3 components in a code that uses react typescript + vite
Is it possible to use web material 3 Google components in React TypeScript + Vite ?
I tried to use it as follows
import '@material/web/checkbox/checkbox.js';
function App() {
return (
<div ...
2
votes
0
answers
528
views
How do I "properly" use Material 3 Design Tokens in Web Development?
I've recently switched from M2 to M3 and would like to make use of Design Tokens now, as described here: https://m3.material.io/styles/color/static/baseline#c9263303-f4ef-4a33-ad57-7d91dc736b6b
...
1
vote
2
answers
590
views
Custom material theme has no --mat and --mdc color variables set
i've updated my project from Angular material 2 to Angular material 3 with the last update (18.2.1) why all variables of components aren't set? the theme class is generated by "ng generate @...
0
votes
0
answers
45
views
Is it possible to reduce the size of the weird shadow my Google Material3 Text-Button makes?
I have recently started using m3.material.io's Web Library for my Login page and have noticed some issues. Since I have not been able to find proper documentation for this stuff, I must ask, can I ...
4
votes
2
answers
4k
views
How to handle elevation in Angular Material 18+?
According to the material 3 spec, different levels of elevation are supposed to be handled by color instead of shadow. However in my Angular Material 18 project, all backgrounds seem to have the same ...
1
vote
0
answers
83
views
M3: Usage of Body.Small typography token in input fields?
Looking at the documentation for Material 3 and the implementation of the token on the Text Field component. https://m3.material.io/components/text-fields/specs
Its stated that the "label". (...