mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-19 03:21:36 +08:00
MaterialButton is using TextViewCompat.setCompoundDrawablesRelative() under the hood to implement setIcon() operation. TextViewCompat won't call its compound drawables' setVisible() method, on which we rely to start progress indicator drawables automatically. Calls setVisible() explicitly to start progressing. Also adds a demo to catalog. Resolves https://github.com/material-components/material-components-android/issues/2095 PiperOrigin-RevId: 383483364