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
Material Design Team
197c76911a
[ally] change default password_toggle_content_description from "Toggle password visibility" to "Show password"
...
PiperOrigin-RevId: 192837950
2018-04-17 15:56:35 -04:00
afohrman
0d71bffb1d
Use chip text in close icon's content description to clarify the icon's contentDescription.
...
To make it clearer what the close icon does, use the chip text inside the actual content description, and change "close" to "remove".
If the chip text is not usable (ex: it's an input chip and only spaces were entered), the screen reader will read out "chip" in place of the chip's content.
PiperOrigin-RevId: 192823693
2018-04-17 15:56:04 -04:00
Material Design Team
2351c425b6
Automated g4 rollback of changelist 192719656
...
PiperOrigin-RevId: 192788678
2018-04-17 15:55:45 -04:00
gauthams
90c70f85e1
Update button to use textappearance theme attributes
...
PiperOrigin-RevId: 192719656
2018-04-17 15:55:12 -04:00
gauthams
d691163717
Update AlertDialog to use our ThemeOverlay dialog themes
...
PiperOrigin-RevId: 192719625
2018-04-17 15:54:48 -04:00
afohrman
2055801374
Add feedback for selected bottom navigation items.
...
Set the BottomNavigationItemView to selected in setChecked to fix an issue where there was no feedback when a bottom nav item was selected. The solution here also allows for removing the override of onInitializeAccessibilityNodeInfo in favor of BottomNavigationItemView getting selection behavior "for free" from View.
PiperOrigin-RevId: 192717626
2018-04-17 15:54:22 -04:00
afohrman
93e63fa38a
Distinguish selected navigation items from unselected navigation items.
...
Override onInitializeAccessibilityNodeInfo to set the selected state based on whether or not the item is checked. It would be more intuitive to set the AcccessibilityNodeInfo to be checked, since the menu API used for bottom navigation uses checking as opposed to selection, but setChecked does not produce the desire behavior in talkback.
Before this change: Activated item is read out with no indication of its selected state.(ex: "Page 2")
After this change: Activated item is read out with "selected" before its label (ex: "selected, Page 2")
This new behavior is the same behavior seen in tabs.
PiperOrigin-RevId: 192696908
2018-04-17 15:53:51 -04:00
Material Design Team
52556c7c36
Automated g4 rollback of changelist 192314650
...
PiperOrigin-RevId: 192328732
2018-04-17 15:53:33 -04:00
Material Design Team
5f23ba11f2
[a11y] Use hint text correctly for TextInputLayout. This causes the TextInputLayout itself to be ignored by accessibility and the EditText and helper text within TextInputLayout to be exposed to accessibility correctly.
...
PiperOrigin-RevId: 192314650
2018-04-17 15:53:04 -04:00
Material Design Team
04c14f2b55
Allow users of Snackbars to set custom behaviors.
...
PiperOrigin-RevId: 191940647
2018-04-17 15:52:12 -04:00
cketcham
dfc85ffd8d
Move AppBarLayout methods to allow for widget migration
...
PiperOrigin-RevId: 191764375
2018-04-17 15:51:53 -04:00
cketcham
a9180a5256
Remove reflection for CoordinatorLayout#getLastWindowInsets() as it is now public
...
PiperOrigin-RevId: 191601519
2018-04-17 15:51:14 -04:00
cketcham
f86f266d92
Fix behavior to allow for the widget migration
...
PiperOrigin-RevId: 191488254
2018-04-17 15:50:54 -04:00
cketcham
92a5a10b7b
Automated g4 rollback of changelist 191463510
...
PiperOrigin-RevId: 191478910
2018-04-17 15:50:33 -04:00
Material Design Team
db499557f5
Automated g4 rollback of changelist 191469563
...
PiperOrigin-RevId: 191476123
2018-04-17 15:50:14 -04:00
cketcham
ed779ec084
Add methods to AppBarLayout to allow for widget migration
...
PiperOrigin-RevId: 191469563
2018-04-17 15:49:47 -04:00
cketcham
2e0a4ebbc8
Fix behavior to allow for the widget migration
...
PiperOrigin-RevId: 191463510
2018-04-17 15:49:03 -04:00
cketcham
438ba25c58
Add BottomAppBar attribute to the theme
...
PiperOrigin-RevId: 191448308
2018-04-03 12:10:36 -04:00
dniz
9ae3538d6e
Mark Shapes APIs as experimental
...
PiperOrigin-RevId: 191444301
2018-04-03 12:09:59 -04:00
cketcham
a1f27dfe0b
Fix AppBarLayout generics to allow for widget migration
...
PiperOrigin-RevId: 191439480
2018-04-03 12:09:41 -04:00
dniz
3ea78dd02b
Fix CoordinatorLayout getLastWindowInsets() reflection
...
PiperOrigin-RevId: 191304626
2018-04-03 12:09:09 -04:00
dniz
3f6ba81d6e
Remove library references to widget package
...
PiperOrigin-RevId: 191302154
2018-04-03 12:07:57 -04:00
dniz
2306141b16
Preserve Snackbar inheritence with BaseTransientBottomBar and SwipeDismissBehavior
...
PiperOrigin-RevId: 191293691
2018-04-03 12:05:22 -04:00
dniz
910961412d
Move Snackbar classes and resources from widget/internal to snackbar package
...
PiperOrigin-RevId: 191070265
2018-04-03 12:04:39 -04:00
dniz
0bc8f38d8a
Automated g4 rollback of changelist 190996602
...
PiperOrigin-RevId: 191011241
2018-04-03 12:03:30 -04:00
dniz
85b2b08aec
Move Snackbar classes and resources from widget/internal to snackbar package
...
PiperOrigin-RevId: 190996602
2018-04-03 12:02:29 -04:00
dcarlsson
fa28916b56
Make method to control text field password visibility public instead of private so that clients can override the method.
...
PiperOrigin-RevId: 190932469
2018-04-03 12:02:11 -04:00
Material Design Team
ba1d44b46e
Automated g4 rollback of changelist 190859922
...
PiperOrigin-RevId: 190866477
2018-04-03 12:01:50 -04:00
cketcham
6722bd39ca
Add BottomAppBar attribute to the theme
...
PiperOrigin-RevId: 190859922
2018-04-03 12:00:52 -04:00
cketcham
a87d71a4ae
Move components out of widget
...
PiperOrigin-RevId: 190828084
2018-04-03 11:55:32 -04:00
Material Design Team
704691488d
Small fix for aapt2 regression
...
PiperOrigin-RevId: 190778936
2018-04-03 11:53:04 -04:00