7 Commits

Author SHA1 Message Date
cketcham
ca52d28595 Add lint checks for button component
PiperOrigin-RevId: 179088379
2018-01-11 10:56:26 -05:00
gauthams
2aa0405d03 Fix issue where setting indicator height to 0dp would not hide the indicator
PiperOrigin-RevId: 178756271
2018-01-11 10:56:13 -05:00
gauthams
f6769a509c Add tab selection indicator gravity attribute to TabLayout. Also renames SlidingTabStrip to SlidingTabIndicator.
PiperOrigin-RevId: 178626652
2018-01-11 10:55:49 -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
cketcham
72d0370a1c Fix bouncy behavior with nested scrolling v2
Adds condition to only snap the CoordinatorLayout if a fling is ending, or a fling won't be started

PiperOrigin-RevId: 178374659
2018-01-11 10:54:52 -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
travisc
ab2fec6da4 Move lib/src/ to lib/java/, and lib/jvmtests/javatests/ to lib/javatests/.
Bazel is happier if Java/Java test roots are named 'java' and 'javatests', and
this will mean that once we create a BUILD file for
android/support/design/{widget,internal}/ we'll no longer need a custom package
specified in our build (which tends to cause build problems that manifest quite
weirdly). This commit doesn't attempt to refactor the build at all yet, and is
just a pure move.

PiperOrigin-RevId: 178060739
2018-01-11 10:50:18 -05:00