Top "Material-components-android" questions

Material Components for Android (MDC-Android) help developers execute Material Design.

What replaced appcompat-v7 in AndroidX

After migrating a couple of my older projects over to AndroidX it as though three of my dependencies are deprecated: …

android android-support-library android-appcompat androidx material-components-android
CardView with different corner radius

I have the following CardView and I want to set different radius for each corner in the card. Is it …

android android-layout material-design android-cardview material-components-android
Material Button with icon on the right

The new material button from Google is really nice. According to the documentation, we can set an icon who's shown …

android material-design android-button material-components material-components-android
Can't use android:background with button from the new material components

I'm using the new material components com.google.android.material:material with android x but I can't set a custom …

android material-design android-button material-components-android material-components
MaterialCardView crashes with material:1.1.0

I am using MaterialCardView as my cardview layout. Now, Android-studio started showing me that instead of current implementation "com.google.…

android android-layout android-cardview material-components-android material-components
Change Chip Widget style programmatically not working - Android

I'm doing a list with Chips. I want this chips can be selected, so, taking a look to https://material.…

android kotlin material-components material-components-android android-chips
Set background color of the material chip programmatically

Chip chip = new Chip(context); chip.setBackgroundcolor(getResources().getColor(R.color.blue)); The above line gives the error: java.lang.…

android material-components-android android-chips
How to center icon in a MaterialButton which has no text?

I'm using the latest version of the com.google.android.material:material library (i.e. 1.1.0-alpha03) and I have a …

android material-components material-components-android
Badge on BottomNavigationView

I am trying to add a badge to the BottomNavigationView Item without using any library, however somehow the BottomNavigationView is …

android android-layout bottomnavigationview material-components-android material-components