afohrman
ba1d772575
Annotate NavigationView padding setters and getters.
...
Annotate with @Dimension, which by default implies a pixel dimension.
PiperOrigin-RevId: 196549450
2018-05-16 11:43:46 -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
da42189a47
Added Outlined buttons to style and to MDC Catalog Buttons example.
...
PiperOrigin-RevId: 195479574
2018-05-07 13:37:36 -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
dcarlsson
da9a170696
Fix typo in AppBarLayout documentation.
...
PiperOrigin-RevId: 195305707
2018-05-03 17:02:55 -04:00
Material Design Team
e37dc2a82e
Create @SnackbarDuration for Snackbar class.
...
Snackbar had methods with params annotated with @BaseTransientBottomBar.Duration which uses BaseTransientBottomBar.LENGTH_SHORT, ... constants, which means Android lint will complain if you try to call Snackbar#make with Snackbar.LENGTH_SHORT and tell you to instead use BaseTransientBottomBar.LENGTH_SHORT which is silly. This works around this issue.
PiperOrigin-RevId: 195269921
2018-05-03 14:36:31 -04:00
Material Design Team
9d5f06978b
[a11y] Ensure CollapsingToolbarLayout surfaces its custom-rendered title to accessibility services.
...
PiperOrigin-RevId: 195269779
2018-05-03 14:35:57 -04:00
Material Design Team
0b2eb829de
Automated g4 rollback of changelist 195137298
...
PiperOrigin-RevId: 195163452
2018-05-03 12:53:25 -04:00
dniz
e4c8535352
Remove backlayer and materialswitch
...
PiperOrigin-RevId: 195148145
2018-05-02 17:07:28 -04:00
Material Design Team
fa28108018
[a11y] When the collapsing title is not null or empty, set the content description as the collapsing title.
...
PiperOrigin-RevId: 195137298
2018-05-02 17:05:57 -04:00
dniz
f3a218cdbc
Remove tonal variations of primary and secondary colors
...
PiperOrigin-RevId: 195102546
2018-05-02 14:12:49 -04:00
Material Design Team
84a00dd6e7
Restore child accessibility focus when the BackLayoutLayout is expanded.
...
PiperOrigin-RevId: 194968521
2018-05-01 17:12:12 -04:00
Material Design Team
1af7d53807
[a11y] Invoking updateImportantForAccessibility method in collapsed state in BottomSheetBehavior.
...
PiperOrigin-RevId: 194967377
2018-05-01 17:11:54 -04:00
Material Design Team
438873fb60
[a11y] When Bottom drawer is open, make its parent view's other child views not important for accessibility.
...
Move the logic from DrawerLayout.java to BottomSheetBehavior.java now.
PiperOrigin-RevId: 194839644
2018-05-01 17:10:30 -04:00
marianomartin
cfc5fdbb81
Fix bottom app bar cutout not showing when the fab isn't measured.
...
PiperOrigin-RevId: 194818259
2018-04-30 15:13:06 -04:00
dniz
80a6fbe0af
Namespace FlexboxLayout styleable
...
PiperOrigin-RevId: 194788079
2018-04-30 15:12:00 -04:00
Alex Saveau
85f23d0f8d
Only set BottomSheetDialog state to collapsed in onStart() if state is hidden
...
PiperOrigin-RevId: 194583962
2018-04-30 12:04:09 -04:00
dniz
b504d3fc3d
Set up Gradle task for docs build
...
PiperOrigin-RevId: 194457377
2018-04-30 12:03:20 -04:00
Material Design Team
e75ec0d6fd
Transformation- Ignore the scrim when updating accessibility importance. The scrim is used to dismiss an expanded FAB, so this helps ensure that the scrim remains clickable with Switch Access and TalkBack after a FAB has been expanded.
...
PiperOrigin-RevId: 194445155
2018-04-30 12:02:53 -04:00
gauthams
12b927b12b
Add datePickerDialogTheme to MaterialComponents themes
...
PiperOrigin-RevId: 194325696
2018-04-30 12:02:27 -04:00
gauthams
4c17ed1901
Refactor "additionalPadding(Left/Right)ForIcon" attribute name to "additionalPadding(Start/End)ForIcon"
...
PiperOrigin-RevId: 194308498
2018-04-30 12:02:03 -04:00
marianomartin
1e4a3d17fb
Dynamically getting size of the fab button. Using that plus a margin defined in style to get the proper size for the cutout
...
PiperOrigin-RevId: 194232804
2018-04-30 12:01:20 -04:00
Material Design Team
4fde8f9f43
[a11y] when Fab is expanded, make all child views of the CoordinatorLayout not important for accessibility except the sheet view.
...
PiperOrigin-RevId: 194160482
2018-04-30 12:00:45 -04:00
afohrman
6cb4f6eebe
Fix typo in TextInputEditText documentation.
...
PiperOrigin-RevId: 193966868
2018-04-30 11:57:29 -04:00
afohrman
7af4ff7ee9
Remove resource version of label visibility mode setter.
...
This method does not provide clear value to the user. I considered deprecating it, but since it was introduced in an alpha release, it can just be deleted.
PiperOrigin-RevId: 193966844
2018-04-30 11:57:08 -04:00
connieshi
0eb5c1ae75
Fix typo in ChipDrawable documentation s/getIntrinsicWidth/getIntrinsicHeight
...
PiperOrigin-RevId: 193965067
2018-04-30 11:56:45 -04:00
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
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