material-components-android Questions

2

Solved

I'm attempting to style this MaterialCalendar, but I'm not getting anywhere with it, any help would be appreciated. My styles.xml looks similar to the below: <style name="AppTheme" parent="The...

5

I'm implementing a dark theme in my playground Android app, and am struggling to get the action bar text color to be white. Below is my style and colors. The background of the action bar follows c...

3

Solved

Inside screen's layout I'm trying yo implement MaterialButton from new Material Components with rounded corners <android.support.design.button.MaterialButton android:text="@string/login" andr...
Preeminent asked 12/11, 2018 at 21:48

7

Usually icons are set for floating action buttons, but I need to set an image, so I can make a circular image. I added it to the project (using Android Studio-> New -> Image Asset), but the image ...

7

fab.setBackgroundTintList(ColorStateList.valueOf(ContextCompat.getColor(PrivateDealActivity.this, R.color.colorWhite))); This is not working. How to change background color of floating action but...

4

Is there way to remove floating label (hint) when the TextInputLayout is in focused mode? When I try to set app:hintEnabled="false" and hint inside TextInputeEditText, the TextInputLayout behaves...
Teakwood asked 30/1, 2019 at 6:36

3

Solved

I'm using the Material design library to make a rounded editText, and I was able to do that but now I want it to look a bit smaller, I used the dense textField style but I still want the height of ...

1

Solved

I want to change the color of the active toggle button. But just the change of the rippleColor makes a difference. I wish to customize the background color of the active button and the text color. ...

3

Solved

I am trying to add rounded corners to my bottom navigation and i have tried changing widths and heights but its not working. I am using Relative layout with width set to 'fill_parent' and height se...

2

I' am setting up a new application and came across the fact that the materialButton's height does't match the size which i set. So i tried on the regular Button and as you guys can see in the scree...

3

I'm using the new MaterialComponents and my app theme is: <style name="AppTheme" parent="Theme.MaterialComponents.Light"> <item name="colorPrimary">@color/primaryColor</item> &...

3

Solved

If i am trying to add margin with layout_marginStart or layout_marginEnd but there is no effect on UI. I am not sure why layout_marginStart, layout_marginEnd not working with MaterialButton when i ...

3

Solved

At first, My app use <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> style. But I changed it to Material Components <style name="AppTheme" parent="Theme.MaterialCompon...

5

how can I change the background color of action button in snackbar or make it dissapear (grey background)? i use this code: Snackbar mysnack = Snackbar.make(main_layout, getResources().getStri...

1

Solved

I have this problem, after the xxx is the cursor in violet, I want to know the name of that drop cursor, I want to change the color to match my theme. I read many forums and documentation, the onl...

1

Solved

This is style i have used for material Calendar separately, everything is perfect except selected date circle <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar&...

6

Solved

I am trying to create a custom progress bar in android. I have used the following xml file for it (progress_bar_horizontal.xml): <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:...

2

Solved

I have created some app and I had like to insert to it a BottomNavigationView. The code worked perfectly however once I changed at my gradle to androidx it stopped working. The component in my la...

3

I'm using Material Buttons in my project and trying to set backgroundTint with alpha value. <!-- background_tint.xml --> <selector xmlns:android="http://schemas.android.com/apk/res/andro...

2

I am disabling the Material Floating Action button but the color does not change when disabled is set to true. I thought Material has a theme for FAB's and when disabled it should turn light grey. ...

4

Solved

Is is possible to have different values for each corner radius of a MaterialCardView? And if so how? I tried something like the code below but it doesn't seem to have any effect float radius = ...

1

Solved

I am using MaterialDatePicker for Android (Kotlin) and need to ensure that the start and end date is no more than 180 days apart. How do I write the constraints for this?
Heteronomous asked 30/7, 2020 at 7:20

2

Solved

how to pick a time using material:1.3.0-alpha01, I am looking time picker following screenshot, which I found in material io. I tried date picker is working Material Date picker //Creating a Mater...

2

Solved

Is it possible to have a material button with an icon on top of its text as such: If yes, can you please explain how with some code? Thank you.

1

Solved

I am using Material to design a form with drop down lists in android studio using Java. I want to save the selection the user makes from the drop down list to a string so I can save this to Firebas...

© 2022 - 2024 — McMap. All rights reserved.