material-components-android
material-components-android copied to clipboard
[MaterialButton] loss of functionality when going from android Button to MaterialButton.
Description: There is functionality lost when converting a project from using Android buttons to MaterialButtons. The loss of functionality is in how button icons can be placed. The following buttons properties do work properly. These can also be used to have multiple icons on a single button.
- android:drawableStart
- android:drawableLeft
- android:drawableTop
- android:drawableEnd
- android:drawableRight
- android:drawableBottom
- android:drawablePadding - Including this option since it is tied to the rest of the options which appear to be ignored.
Expected behavior: For the icons on the MaterialButton version to match the icon placement as shown by the Android Button version.
Source code: I have a sample project created showing the bug. All that is different is that https://github.com/kphillisjr/MaterialButtonDrawableBug
Android API version: 15
Material Library version: Versions that run: com.google.android.material:material:1.0.0 Version that does not run ( fails due to theme enforcement problems): com.google.android.material:material:1.1.0-alpha10
Device: android Emulator x86 - android 4.4 without google APIs android Emulator x86 - Android 8.0.0 with google API installed
We really need these functionality, there's a time when we need multiple icons on a button
its now April 2024 and some of us are still waiting for this
We really need these functionality, there's a time when we need multiple icons on a button