13 Commits

Author SHA1 Message Date
marianomartin
ef3f09d4e0 [ShapeableImageView] made stroke field nullable
PiperOrigin-RevId: 314599771
2020-06-04 16:05:33 -04:00
Ethan Hsu
2b676b46a9 [ShapeableImageView] Allow ShapeableImageView to dynamically update shape appearance
In some cases setShapeAppearanceModel will be called after onSizeChanged but before the first draw. This results in the mask being out of date.

Resolves https://github.com/material-components/material-components-android/pull/1328

GIT_ORIGIN_REV_ID=3d99c7857595ff0ba61c1aaa65963909c1950c10

Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 313402813
2020-05-27 14:03:14 -04:00
marianomartin
24f9c06396 [ShapeableImageView] Change strokeWidth to float and support null for stroke color
Resolves https://github.com/material-components/material-components-android/issues/1330
Resolves https://github.com/material-components/material-components-android/issues/1331

PiperOrigin-RevId: 313390374
2020-05-27 13:57:38 -04:00
marianomartin
de111bb53b Change ShapeableImageView shape logic to onSizeChanged
PiperOrigin-RevId: 307696728
2020-04-22 15:11:05 -04:00
marianomartin
7e99fcb67d Fix issue when setting padding and ShapeableImageView background
PiperOrigin-RevId: 299359752
2020-03-06 11:39:32 -08:00
isabellekim
1f9de68025 [All] Add support for materialThemeOverlay
Resolves https://github.com/material-components/material-components-android/pull/948

GIT_ORIGIN_REV_ID=5a8bb35a56c1b813df47d964de8482a26e0da66d
PiperOrigin-RevId: 293839172
2020-02-10 09:55:19 -05:00
marianomartin
30ec731a28 Remove experimental annotation from ShapeableImageView
PiperOrigin-RevId: 293251962
2020-02-05 17:28:32 -05:00
marianomartin
20d2efed82 Change ShapeableImageView to use a Hardware layer
PiperOrigin-RevId: 291699732
2020-01-27 10:43:11 -05:00
marianomartin
39d49158c8 [ShapeableImageView] Re draw on invalidate if the drawable is animatable.
Resolves https://github.com/material-components/material-components-android/issues/890

PiperOrigin-RevId: 291142205
2020-01-23 08:28:19 -05:00
marianomartin
36426fc74c [ShapeableImageView] Support more types of Drawables
Resolves https://github.com/material-components/material-components-android/issues/890
Resolves https://github.com/material-components/material-components-android/issues/842

PiperOrigin-RevId: 289167223
2020-01-10 16:47:00 -08:00
marianomartin
1aef5b9a9e [ImageView] Add catalog ImageView demo
PiperOrigin-RevId: 285279245
2019-12-13 17:30:43 -05:00
connieshi
186884701d Call themeApplicationContext inside createToggleGroupWithButtons because the order of @Before method calls is not deterministic.
PiperOrigin-RevId: 284244654
2019-12-10 07:18:55 -05:00
marianomartin
15ed06eb86 Move ImageView component to third party
PiperOrigin-RevId: 284189970
2019-12-08 15:20:54 -05:00