8 Commits

Author SHA1 Message Date
Jeff Verkoeyen
c53f44398e Optimizing imports
PiperOrigin-RevId: 357185618
2021-02-12 07:29:28 -08:00
Wenyu Zhang
59c44fb3bd [Buttons] Add centerVisibleArea to MDCButton and mark visibleAreaInsets as to be deprecated.
PiperOrigin-RevId: 320085469
2020-07-07 16:36:33 -07:00
Yarden Eitan
6bd4757079 [HitAreaInsets] Add a convenience math method to calculate the correct visibleAreaInsets given a frame and a minimum touch target.
PiperOrigin-RevId: 315655291
2020-06-10 02:29:15 -07:00
Yarden Eitan
e8a1c4e7e1 [MDCButton] Add a visibleAreaInsets API.
This API allows clients to inset the visible content and allow it to be smaller than the frame.
In turn, clients can have a touch target that is bigger than the visible content.

PiperOrigin-RevId: 313556504
2020-05-28 03:17:34 -07:00
Nobody
70716800b8 Internal change
PiperOrigin-RevId: 312085611
2020-05-18 16:41:12 +00:00
Jeff Verkoeyen
92254ea119 Rename all icons to an ic_<#name#> convention.
PiperOrigin-RevId: 308232277
2020-04-24 04:33:51 -07:00
Jeff Verkoeyen
4454d0be94 [Buttons] Use static storage for all local consts.
Two examples were using non-static storage for effectively static consts, causing the symbols to be available available across compilation units and resulting in linker errors when the symbols happen to collide across compilation units.

PiperOrigin-RevId: 305337107
2020-04-07 14:11:53 -07:00
Jeff Verkoeyen
3a157e1f43 [Buttons] Standardize all examples on the same <Component><Example>Example pattern.
PiperOrigin-RevId: 305332675
2020-04-07 13:53:57 -07:00