998 Commits

Author SHA1 Message Date
marianomartin
4591f29bb0 Internal cleanup
PiperOrigin-RevId: 253994541
2019-06-24 16:52:19 -04:00
isabellekim
cadd0238cf Refactor RippleDrawableCompat to add a method to RippleUtils to determine whether a compat (pre-21) "ripple" should be drawn. This will be used by components that handle their own drawing of compat ripples (like Chip).
PiperOrigin-RevId: 253992004
2019-06-24 16:51:22 -04:00
marianomartin
c2807d5d47 Internal cleanup
PiperOrigin-RevId: 253863905
2019-06-24 16:48:08 -04:00
Material Design Team
b23d8058c3 Automated g4 rollback of changelist 253789519
PiperOrigin-RevId: 253856871
2019-06-24 16:47:11 -04:00
leticiars
b89a91c710 Animating clear button end icon.
PiperOrigin-RevId: 253852706
2019-06-24 16:45:49 -04:00
isabellekim
1f4ea84a33 Adding dimension resources for ripple ColorStateLists.
Because ripples are implemented differently for different API levels, we are adding dimension resources that can be used when specific alphas are desired for the pressed, focused, and hovered states.

Ripples on top of surface color should use:
mtrl_low_ripple_pressed_alpha: effective 12%
mtrl_low_ripple_focused_alpha: effective 12%
mtrl_low_ripple_hovered_alpha: effective 4%
mtrl_low_ripple_default_alpha: effective 0%

Ripples on top of primary / secondary colors should use:
mtrl_high_ripple_pressed_alpha: effective 24%
mtrl_high_ripple_focused_alpha: effective 24%
mtrl_high_ripple_hovered_alpha: effective 8%
mtrl_high_ripple_default_alpha: effective 0%

Note: the "default" alpha needs to be non-zero for API 22-27 in order to prevent ripples for terminating prematurely.
PiperOrigin-RevId: 253825206
2019-06-24 16:44:58 -04:00
isabellekim
75b5759de7 Replace //noinspection with @TargetApi(VERSION_CODES.LOLLIPOP) as it is
more specific and supported in Android Studio.

PiperOrigin-RevId: 253824167
2019-06-24 16:42:31 -04:00
ldjesper
c9f8002238 MaterialCalendar dimens based upon screen width
PiperOrigin-RevId: 253816269
2019-06-24 16:39:36 -04:00
marianomartin
2de39fafe0 Internal cleanup
PiperOrigin-RevId: 253799644
2019-06-18 13:57:49 -04:00
dniz
91f292432f Rename MaterialShapeDrawable internal elevation overlay util method
PiperOrigin-RevId: 253794203
2019-06-18 13:56:22 -04:00
cketcham
d81cea337a Fix FAB insets when anchored to BAB.
PiperOrigin-RevId: 253789519
2019-06-18 13:55:37 -04:00
cketcham
8a2e358f1f Fix issue with insets being overwritten by providing a copy
PiperOrigin-RevId: 253785920
2019-06-18 13:53:14 -04:00
isabellekim
633b5a32c2 Create compat ripples that are based on MaterialShapeDrawable and only draw when enabled and in the pressed, focused, or hovered states.
PiperOrigin-RevId: 253783048
2019-06-18 13:52:05 -04:00
dniz
3b7e1b4d71 Update AppBarLayout lift on scroll finding of liftOnScrollTargetViewId to be based on nested scrolling view instead of Activity when possible
PiperOrigin-RevId: 253637012
2019-06-18 13:47:01 -04:00
marianomartin
f82e1a22de Internal cleanup
PiperOrigin-RevId: 253635142
2019-06-18 13:45:23 -04:00
marianomartin
53e4e9cca8 Internal cleanup
PiperOrigin-RevId: 253624674
2019-06-18 13:43:33 -04:00
marianomartin
648a74199e Internal cleanup
PiperOrigin-RevId: 253577427
2019-06-18 13:38:11 -04:00
connieshi
8c0f6f72c9 Call ChipDrawable#setShouldDrawText(false) inside Chip#setChipDrawable.
PiperOrigin-RevId: 253459599
2019-06-18 13:35:22 -04:00
dniz
6783f9e1cd Clean up naming of elevation overlay methods and attributes
PiperOrigin-RevId: 253283047
2019-06-18 13:34:29 -04:00
Material Design Team
0aabd7848e Automated g4 rollback of changelist 253229141
PiperOrigin-RevId: 253254250
2019-06-18 13:33:28 -04:00
leticiars
1ba8a45332 Fixing TextInputLayout wrongly announcing "End of field" message in TalkBack mode.
PiperOrigin-RevId: 253242183
2019-06-18 13:29:19 -04:00
connieshi
ee913784dc Rename BottomNavigationView#showBadge to BottomNavigationView#getOrCreateBadge(). No longer ensures that the badge is visible. User should call BadgeDrawable#setVisible(boolean).
PiperOrigin-RevId: 253231582
2019-06-18 13:28:31 -04:00
Material Design Team
4c22b59c63 Cleanup for focus handing in Chips
PiperOrigin-RevId: 253229141
2019-06-18 13:27:43 -04:00
marianomartin
b9147d4f2d Remove some lint warnings from baseline
PiperOrigin-RevId: 253036361
2019-06-18 13:24:50 -04:00
marianomartin
152ae1e752 Annotate month parameter for Month class
PiperOrigin-RevId: 252865939
2019-06-18 13:22:49 -04:00
cketcham
bff75f2d3e Update to lamdas
PiperOrigin-RevId: 252846439
2019-06-18 13:21:02 -04:00
marianomartin
5a5d311a36 Check more lint warnings, show warnings as errors.
PiperOrigin-RevId: 252822573
2019-06-18 13:20:15 -04:00
ldjesper
32a895ded8 Fix capital to match android var name
PiperOrigin-RevId: 252815990
2019-06-18 13:19:19 -04:00
ldjesper
5c1063f867 Switch from Lifecycle annotations to DefaultLifecycleObserver now that our gradle uses Java8 lang features
PiperOrigin-RevId: 252809725
2019-06-18 13:17:54 -04:00
gauthams
cda68edcaf Add uncheck(int id) API for unchecking single button to MaterialButtonToggleGroup
PiperOrigin-RevId: 252723596
2019-06-18 13:16:05 -04:00
connieshi
ccc48904e5 Add BadgeDrawable constructor that takes a xml resource.
PiperOrigin-RevId: 252709395
2019-06-18 13:15:07 -04:00
gauthams
e869edd032 Document return value of getCheckedButtonIds() in MaterialButtonToggleGroup
PiperOrigin-RevId: 252702693
2019-06-18 12:05:19 -04:00
afohrman
569d33a055 Remove corner radius adjustment from outline text fields.
PiperOrigin-RevId: 252682213
2019-06-18 12:04:27 -04:00
ldjesper
7874b140d3 Remove unused layout file
PiperOrigin-RevId: 252680623
2019-06-18 12:03:18 -04:00
ldjesper
5f59a56b6a Remove Locale.getDefault() call from a final static field as it can change.
PiperOrigin-RevId: 252668615
2019-06-18 11:59:59 -04:00
ldjesper
60090791b9 Full screen vertical scrolling
PiperOrigin-RevId: 252663790
2019-06-18 11:58:50 -04:00
connieshi
b3980237a4 Rename Tab#showBadge to Tab#getOrCreateBadge(). No longer ensures that the badge is visible. User should call BadgeDrawable#setVisible(boolean).
PiperOrigin-RevId: 252635742
2019-06-18 11:57:19 -04:00
leticiars
34e9ab24fb Only make filled text field hint vertically centered if edit text's min lines is 1.
In APIs > 15.

PiperOrigin-RevId: 252630869
2019-06-18 11:56:16 -04:00
dniz
591ba96852 Update Theme Overlays to set neutral palette colors
PiperOrigin-RevId: 252629630
2019-06-18 11:53:51 -04:00
connieshi
8e6cd132e5 Add animator getter to MotionSpec that supports a non-view target.
PiperOrigin-RevId: 252458902
2019-06-18 11:52:11 -04:00
leticiars
2ec8717f9f Make decorative icons in text fields not focusable in TalkBack mode.
PiperOrigin-RevId: 252405963
2019-06-18 11:51:17 -04:00
connieshi
b09336ef45 Reduce scope of a few BadgeDrawable methods.
PiperOrigin-RevId: 252399017
2019-06-18 11:49:54 -04:00
cketcham
1aa7125398 Update BottomAppBar to respect bottom system insets
PiperOrigin-RevId: 252394398
2019-06-18 11:49:00 -04:00
ldjesper
2a0e347b64 Switch Material DatePicker to ViewPager2.
Automated g4 rollback of changelist 251902135

PiperOrigin-RevId: 251927491
2019-06-10 09:11:31 -07:00
Material Design Team
eab1b3475a Automated g4 rollback of changelist 251855739
PiperOrigin-RevId: 251902135
2019-06-10 09:09:00 -07:00
ldjesper
c438ee2334 Switch Material DatePicker to ViewPager2.
PiperOrigin-RevId: 251855739
2019-06-10 09:07:53 -07:00
connieshi
4207eec335 Update BadgeDrawable to hold a weak reference to the user specified context.
PiperOrigin-RevId: 251697368
2019-06-10 08:58:40 -07:00
connieshi
63fed94c90 s/clearBadgeNumber/clearNumber
PiperOrigin-RevId: 251693601
2019-06-10 08:57:49 -07:00
connieshi
6aab297f53 Remove context parameter from BadgeDrawable#getContentDescription(Context)
PiperOrigin-RevId: 251492075
2019-06-10 08:55:30 -07:00
leticiars
cb5430e117 Some Exposed Dropdown Menu accessibility improvements:
- fixing the layout not responding to TalkBack double click
- making the end icon not be focusable in accessibility mode
- making TalkBack announcement be the same as the Spinner's

PiperOrigin-RevId: 251479580
2019-06-10 08:54:13 -07:00