5 Commits

Author SHA1 Message Date
dniz
ade4df00cb Change Gradle build to output single Maven artifact
PiperOrigin-RevId: 190774454
2018-04-03 11:49:01 -04:00
afohrman
644c3d77bd Implement pared down version of Flexbox.
Remove dependency on flexbox to avoid pulling in the entire library.

PiperOrigin-RevId: 186699263
2018-03-12 12:49:22 -04:00
markwei
2e2c348e6f Add new enforceMaterialTheme attribute that you can set in any style to denote that the style uses a new attribute that must exist in the app theme.
Update ThemeEnforcement to read this new attribute, and check for Material theme.
Change the ThemeEnforcement API to replace Context#obtainStyledAttributes().

See followup CL for how this attribute is used.

PiperOrigin-RevId: 184074635
2018-03-02 15:36:20 -05:00
markwei
61375f7e97 Implement ChipGroup selection exclusivity.
New singleSelection attribute to control whether the ChipGroup has a multiple-exclusion scope for its chips.
When set to true, the ChipGroup acts as a RadioGroup.

ChipGroup can be used purely for layout purposes when singleSelection is set to false.

PiperOrigin-RevId: 178466966
2018-01-11 10:55:26 -05:00
markwei
46d1a6f070 New ChipGroup widget.
Uses FlexboxLayout to allow either:
- Reflowed multiline chips (default)
- Singleline chips

PiperOrigin-RevId: 178151061
2018-01-11 10:53:50 -05:00