20 Commits

Author SHA1 Message Date
afohrman
2f2ba0ce3d Add "enabled" suffix to itemHorizontalTranslation attribute name.
The suffix makes it clearer that the attribute is boolean.

This attribute was introduced in an alpha release, so it is fine to rename.

PiperOrigin-RevId: 193964290
2018-04-30 11:56:12 -04:00
afohrman
95ac4dacfe Remove resource version of setItemHorizontalTranslation.
A resource version for this method does not provide much value to the user.

PiperOrigin-RevId: 193962413
2018-04-30 11:54:52 -04:00
cketcham
eb894ea951 Add work around for Chip accessibility focus bug
PiperOrigin-RevId: 193951526
2018-04-30 11:42:16 -04:00
connieshi
2696568158 Remove default pixel dimension annotation.
PiperOrigin-RevId: 193945912
2018-04-30 11:37:55 -04:00
connieshi
4ceaaf5196 Update foreground of MaterialCardView whenever the radius is set.
PiperOrigin-RevId: 193927619
2018-04-30 11:37:36 -04:00
Material Design Team
b07bcdeefd [a11y] Set the content description of the entire TabView, rather than just on the icon or the TextView. Use the text as the content description if the content description property hasn't been set.
PiperOrigin-RevId: 193727801
2018-04-30 11:37:02 -04:00
Material Design Team
b3c9024218 [a11y] Set the content description of BottomNavigation navigation items explicitly, instead of relying on the label text.
PiperOrigin-RevId: 193724313
2018-04-30 11:36:37 -04:00
afohrman
785b44a688 Change default itemIconSize for bottom nav.
Update default icon size from 0dp to 24dp. 24dp is a more reasonable default to be used in cases where itemIconSize is not set in the theme or style provided.

PiperOrigin-RevId: 193675565
2018-04-30 11:36:15 -04:00
afohrman
886853babb Use start/end for TextInputLayout attributes.
Change attributes, setters, getters, resources, and tests for corner radii and box padding to use start/end instead of left/right. The goal is to make TextInputLayout more RTL friendly; beforehand, RTL use cases would have to directly call padding and corner radii methods with RTL values. After this change, TextInputLayout will determine whether it is in RTL mode and apply the relevant attributes appropriately.

PiperOrigin-RevId: 193565849
2018-04-30 11:35:26 -04:00
cketcham
a4815b0b9a Update BottomAppBar and DrawerLayout to use AttachedBehavior
PiperOrigin-RevId: 193524022
2018-04-30 11:34:12 -04:00
afohrman
fcbc5b560f Change itemIconSize to use pixels instead of dp.
PiperOrigin-RevId: 193513323
2018-04-30 11:33:42 -04:00
gauthams
d8464c9167 Automated g4 rollback of changelist 193414729
PiperOrigin-RevId: 193439529
2018-04-30 11:33:22 -04:00
gauthams
459f9ff88c Automated g4 rollback of changelist 192788678
PiperOrigin-RevId: 193414729
2018-04-30 11:33:01 -04:00
afohrman
2eb1f951fc Add feedback when character counter limit is exceeded.
This commit adds feedback once the character counter limit is exceeded (ex: 11/10), and backs off for every other case to avoid spamming the user.

Also adds a content description with a detailed message to the counter view to make it clear what the overflow is.

PiperOrigin-RevId: 193397006
2018-04-30 11:31:45 -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
connieshi
255465bd0d Add getters and setters for strokeColor and strokeWidth in MaterialCardView.
PiperOrigin-RevId: 193338328
2018-04-30 11:29:08 -04:00
gauthams
ac27064891 Add paired getter and setter for NavigationView setCheckedItem()/getCheckedItem()
PiperOrigin-RevId: 193267214
2018-04-30 11:28:37 -04:00
gauthams
224a7e8b4a Add textAppearance check to ThemeEnforcement
PiperOrigin-RevId: 193254833
2018-04-30 11:28:13 -04:00
dniz
b97023751b Restrict TextAppearance class to library usage
PiperOrigin-RevId: 193249985
2018-04-30 11:27:44 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00