9 Commits

Author SHA1 Message Date
afohrman
2cf2cfd90e Add structure for text field demos and split demos into filled and outline demos.
Create base classes for text field demos to unify shared logic and handle optionally controllable text field demos. This new structure is used to split the text field demo into filled and outline controllable demos.

This commit also contains some cleanup for text field demos in general (removes an extra string, converts anonymous listeners to lambdas, etc.)

PiperOrigin-RevId: 196999248
2018-05-17 19:44:01 -04:00
afohrman
4700966a38 Roll back box background changes.
PiperOrigin-RevId: 196762626
2018-05-16 11:49:37 -04:00
afohrman
e566a535ac Ensure box background is drawn behind other text field elements.
This commit:
- Moves the draw calls in TextInputLayout#draw to happen in a better order: now, the background is drawn first, then TextInputLayout and its children, then the hint. This prevents the box from drawing on top of other text field elements.
- Updates box background setters and getters to modify boxBackgroundColor instead of defaultBoxBackgroundColor.
- Adds a demo for filled box background color changes to the text field demo.

PiperOrigin-RevId: 196748102
2018-05-16 11:48:54 -04:00
marianomartin
fa339c71ce ThemeSwitcher radio buttons have no color
PiperOrigin-RevId: 196138598
2018-05-16 11:42:36 -04:00
connieshi
56b6432e37 Add support to ellipsize chip text.
When converting float to int value for intrinsic width, round instead of cast.
Round float values When determining whether text needs to be clipped to avoid overly aggressive clipping (and ellipsizing).

Rewrote layout for the chip example in demo app due to a known GridLayout.

PiperOrigin-RevId: 195957006
2018-05-09 13:39:23 -04:00
marianomartin
c7e01de03d Fix divider not showing in catalog in RTL
PiperOrigin-RevId: 195878162
2018-05-08 19:54:59 -04:00
Material Design Team
da42189a47 Added Outlined buttons to style and to MDC Catalog Buttons example.
PiperOrigin-RevId: 195479574
2018-05-07 13:37:36 -04:00
cketcham
a4f5cdb568 Use shared resources for BottomAppBar and BottomDrawer demos
PiperOrigin-RevId: 195463305
2018-05-07 13:37:16 -04:00
dniz
d0e4cc93a9 Set up MDC Catalog build and docs
PiperOrigin-RevId: 195135469
2018-05-02 15:45:21 -04:00