15 Commits

Author SHA1 Message Date
marianomartin
821bf2684f [ShapeableImageView] Fixed shadows for non round rects
https://github.com/material-components/material-components-android/issues/1562

PiperOrigin-RevId: 325069672
(cherry picked from commit fbefa5a0ec6af754a278810845c9b0df296b0bc6)
2020-08-28 13:33:40 -04:00
marianomartin
3d8dae52c9 [ShapeableImageView] Improve default style
PiperOrigin-RevId: 313428562
(cherry picked from commit efc0a7f8276b1679ea15bcb058a2c236d18badd2)
2020-05-27 15:14:04 -04:00
marianomartin
549d21452a [ShapeableImageView] Add Shape appearance attributes for consistency and to fix autocomplete
PiperOrigin-RevId: 313414124
(cherry picked from commit 30c7b247542bf8601b0a5159f9a9235633f8bc11)
2020-05-27 15:14:04 -04:00
Ethan Hsu
4518be3b35 [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
(cherry picked from commit 2b676b46a9fa0296edb43eef32cd94b88006cfd5)
2020-05-27 15:14:04 -04:00
marianomartin
2a37868ee3 [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
(cherry picked from commit 24f9c0639635e8d3a50dd821fc8eb3a9920dabd2)
2020-05-27 15:14:04 -04:00
marianomartin
8d7becdf85 Change ShapeableImageView shape logic to onSizeChanged
PiperOrigin-RevId: 307696728
(cherry picked from commit de111bb53b388272f2e0d5541989a6d49df34be6)
2020-05-27 14:52:44 -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