material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[MaterialButton] loss of functionality when going from android Button to MaterialButton.

Open kphillisjr opened this issue 5 years ago • 2 comments

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

kphillisjr avatar Sep 13 '19 19:09 kphillisjr

We really need these functionality, there's a time when we need multiple icons on a button

image

risalfajar avatar Mar 15 '21 16:03 risalfajar

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

image

tfonteyn avatar Apr 05 '24 09:04 tfonteyn