8 Commits

Author SHA1 Message Date
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
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
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
connieshi
0eb5c1ae75 Fix typo in ChipDrawable documentation s/getIntrinsicWidth/getIntrinsicHeight
PiperOrigin-RevId: 193965067
2018-04-30 11:56:45 -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