573 questions
0
votes
0
answers
95
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, ...
1
vote
0
answers
79
views
Custom Button Background Not Applying in Android Studio (Material Theme Override?)
I'm trying to apply a custom background to a button in my Android app, but no matter what I do, the button still appears pink instead of using my custom drawable.
Here's my button XML:
<Button
...
2
votes
2
answers
191
views
How can I expand a Floating Action Button into an EditText in Android?
I'm trying to create a custom interaction where a Floating Action Button (FAB) expands into an EditText when clicked, and collapses back into the FAB when clicked again. The behavior I'm looking for ...
2
votes
0
answers
634
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
0
answers
188
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 ...
0
votes
1
answer
123
views
mwc-textfield input pattern not working for backslash or vertical bar
I am trying to add a pattern to a mwc-textfield input to filter a file name. My pattern seems to be valid js regex and seems to work on a html input but does not as a pattern on a mwc-textfield. I ...
1
vote
1
answer
199
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 ...
5
votes
4
answers
602
views
BottomSheetDialog with EditText (Remove background under keyboard)
I have a BottomSheetDialog that functions as a comment section. At the bottom of it, there is an EditText view that enables users to add a new comment.
The issue arises when the keyboard appears—...
0
votes
1
answer
299
views
How to Make Enter Key Behave Like Tab for Focus Change in Material-UI Dialog Inputs
I'm working on a React project using Material-UI, and I've run into a challenge with input focus management within a dialog. My dialog consists of several input fields, and I want to alter the default ...
1
vote
3
answers
795
views
How do I use M3 dynamic colors in my app's launcher icon?
I want to use M3 colors like ?attr/colorPrimary in my app's launcher icon. I know this is possible because my phone's Settings app does it. I've looked around quite a bit and couldn't find anything ...
0
votes
1
answer
738
views
How to override Material UI theme if we have 2 dialog boxes with different properties?
I am using Nextjs with Material UI. I have 2 dialog boxes with different styles but I don't know how to override theme for both by using createTheme.
First dialog box have width 200px and the second ...
0
votes
1
answer
71
views
Getting "uncaught type error" when trying to instantiate MDCSlider (pure JavaScript)
Following the offical instructions I cannot get an MDCSlider working. It displays but does not react (Tried Chrome, Firefox, Edge).
Full stack trace:
caught TypeError: Cannot read properties of ...
0
votes
1
answer
166
views
Enable/Disable button when TextField has input inside a BottomSheet
I want to have a simple TextField and a TextButton inside a BottomSheet. The TextButton should only be enabled if there is some text in the TextField. However it only enables/disables the button when ...
0
votes
1
answer
2k
views
Button with icon and text in Material 15
I hope its a simple question - how can I define a button with icon and text in material 15
<button mat-button>
<mat-icon>keyboard_arrow_left</mat-icon>
Back To Home
</button&...
0
votes
1
answer
150
views
why must i delay the badge attach process?
I cannot find a way to attach a badge to new layout objects. with BadgeDrawable.create,
The badges work when the corresponding object is present in the layout xml, but they are not displayed for ...