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...
Polemics asked 15/6, 2020 at 14:38
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...
Fpc asked 13/9, 2019 at 18:53
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 ...
Binkley asked 12/6, 2017 at 9:19
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...
Debrahdebrecen asked 3/7, 2018 at 10:33
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 ...
Arietta asked 3/9, 2019 at 0:14
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.
...
Timothy asked 7/10, 2020 at 7:7
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...
Cinchona asked 6/10, 2020 at 22:40
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...
Kamikamikaze asked 1/7, 2019 at 18:0
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>
&...
Tychon asked 28/2, 2019 at 20:47
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 ...
Lawanda asked 16/4, 2020 at 10:28
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...
Virtuosic asked 28/11, 2019 at 4:13
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...
Quartz asked 27/9, 2016 at 6:51
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...
Sphenic asked 28/8, 2020 at 15:4
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&...
Treadwell asked 28/8, 2020 at 12:57
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:...
Ep asked 16/1, 2010 at 20:27
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...
Keesee asked 6/9, 2019 at 21:58
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...
Marlonmarlow asked 11/6, 2019 at 1:25
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. ...
Singband asked 11/3, 2020 at 18:21
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 = ...
Binate asked 14/2, 2019 at 10:55
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...
Connecticut asked 13/7, 2020 at 18:50
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.
Bethesda asked 25/5, 2020 at 13:37
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...
Tenuto asked 22/7, 2020 at 16:52
© 2022 - 2024 — McMap. All rights reserved.