10 Commits

Author SHA1 Message Date
connieshi
a71326896a Use the android:text attribute instead of chipText attribute to specify text label for ChipDrawable.
This is one in a series of planned changes that aim to delegate rendering a Chip's text to TextView instead of ChipDrawable.

PiperOrigin-RevId: 197780081
2018-05-30 17:19:38 -04:00
connieshi
a898d12289 Prevent users from setting chip text to appear on multiple lines.
PiperOrigin-RevId: 197134896
2018-05-22 13:57:36 -04:00
connieshi
7fa43fc8cb Add null check before validating attribute set to avoid NPE.
PiperOrigin-RevId: 197050012
2018-05-17 19:46:17 -04:00
connieshi
eb89b76787 Prevent user from setting start/end compound drawable on Chips. They should be set via app:chipIcon and app:closeIcon instead.
PiperOrigin-RevId: 197037053
2018-05-17 19:45:00 -04:00
connieshi
8cd8c2ad80 Prevent callers from setting ellipsize to MARQUEE because chip text should not scroll.
If caller sets ellipsize to MARQUEE an UnsupportedOperstaionException will be thrown at runtime.
Override ellipsize getters / setters and pass the value to ChipDrawable.

PiperOrigin-RevId: 196813582
2018-05-16 11:50:05 -04:00
Material Design Team
79bf9d0e8e Support Chip text with TalkBack on older API levels
PiperOrigin-RevId: 195430570
2018-05-04 13:58:18 -04:00
Material Design Team
b63a63e853 Allow custom text to be set for a Chip's closeIcon's contentDescription.
PiperOrigin-RevId: 195410650
2018-05-04 12:26:52 -04:00
cketcham
eb894ea951 Add work around for Chip accessibility focus bug
PiperOrigin-RevId: 193951526
2018-04-30 11:42:16 -04:00
cketcham
42144f3a7e Fix implementation of ExploreByTouchHelper for chips.
There is still a bug in ExploreByTouchHelper which will prevent accessibility focus again after the first time a chip gets focus.

PiperOrigin-RevId: 193393825
2018-04-30 11:31:25 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00