7 Commits

Author SHA1 Message Date
dniz
3f6ba81d6e Remove library references to widget package
PiperOrigin-RevId: 191302154
2018-04-03 12:07:57 -04:00
dcarlsson
fa28916b56 Make method to control text field password visibility public instead of private so that clients can override the method.
PiperOrigin-RevId: 190932469
2018-04-03 12:02:11 -04:00
cketcham
a87d71a4ae Move components out of widget
PiperOrigin-RevId: 190828084
2018-04-03 11:55:32 -04:00
afohrman
ff91999cd8 Create public_attrs for textfield.
And move attributes from widget's public_attrs to it. Also add some attributes that weren't in public_attrs yet.

PiperOrigin-RevId: 184201597
2018-03-02 15:40:11 -05:00
afohrman
357e2dca90 Make the default TextInputLayout style a base style.
That way, users will have to depend on one of the box styles directly. Before, anyone that used Widget.MaterialComponents.TextInputLayout would have gotten an outline text field, which is not implied by the style name.

This commit also includes a slight reformat to make sure that style items that don't fit on one line are properly formatted.

PiperOrigin-RevId: 183130385
2018-01-25 18:24:50 -05:00
afohrman
cbc5d7fb0e Create component style attribute for text input.
And assign it to the right defaults in the theme.

Since text fields is in the widget package, . I put the attr declaration in widget/../attrs.xml right on top of the theme. If text fields is ever pulled into its own package, this attribute will be moved along with the rest of TextInputLayout's attributes.

PiperOrigin-RevId: 183125979
2018-01-25 18:24:26 -05:00
afohrman
ed039479e5 Create package for text field resources.
This commit creates a textfield package for resources related to text fields. It does not move TextInputLayout to this package, since that would break current users.

There's a small unrelated change included in this move: drawable-v21/design_bottom_navigation_item.xml was not moved along with its compat counterpart when it was moved recently, so I moved it while I was moving things around.

PiperOrigin-RevId: 183101110
2018-01-25 18:23:54 -05:00