294 Commits

Author SHA1 Message Date
dniz
d9cc67d57b Add Espresso test action for setSystemUiVisibility()
PiperOrigin-RevId: 262561726
2019-08-16 15:39:47 -04:00
cketcham
14b7ba53c2 Fix potential IllegalStateException for BottomSheetDialogFragment#dismiss()
PiperOrigin-RevId: 262549163
2019-08-16 15:37:38 -04:00
ldjesper
440eec1272 Change flaky swipe tests to test correct paging or just require movement
PiperOrigin-RevId: 262193755
2019-08-16 15:32:42 -04:00
ldjesper
c85de39424 Change test names from datePickerDialogFragment to MaterialDatePicker to match the class
PiperOrigin-RevId: 262018578
2019-08-16 15:29:54 -04:00
ldjesper
135df4e4f6 Switch from ViewPager2 to RecyclerView because multiple visible pages are not supported in vertical mode.
PiperOrigin-RevId: 261345144
2019-08-02 15:57:51 -04:00
isabellekim
dfd0800640 Add a test action for resetting the shape appearance model of a Shapeable View.
PiperOrigin-RevId: 261130040
2019-08-02 15:57:08 -04:00
isabellekim
ba024b3486 Add generic types to SnackbarUtils
PiperOrigin-RevId: 261049120
2019-08-02 15:56:14 -04:00
leticiars
1c4f77c00e Adding a frame wrapper for the TextInputLayout end icon so it simplifies the error icon implementation.
PiperOrigin-RevId: 260934634
2019-08-02 15:53:43 -04:00
isabellekim
24a3fd4bb0 Add test-only option to turn off pre-L compat shadows for FABs.
PiperOrigin-RevId: 260569896
2019-07-29 17:49:15 -04:00
leticiars
3f73804b57 Implementing error icon for text fields.
They are set by default when the text field is on error state, but can be disabled by setting the error icon drawable to null via the errorIconDrawable attribute or the setErrorIconDrawable method.

PiperOrigin-RevId: 260495196
2019-07-29 16:43:16 -04:00
marianomartin
2241380dba Internal cleanup
PiperOrigin-RevId: 259753640
2019-07-24 15:09:18 -04:00
dniz
cc73c2a630 Update TODOs
PiperOrigin-RevId: 259535844
2019-07-23 11:21:39 -04:00
marianomartin
11e6dd134e Cleanup BaseTransientBottomBar and write test making sure touch events are handled properly
PiperOrigin-RevId: 259260862
2019-07-22 12:22:46 -04:00
isabellekim
a628bf516b Revert the library to compile with Java 7: revert lambdas, add necessary casts, and make some variables final.
Continue compile shrine demo, catalog, and tests with Java 8.

PiperOrigin-RevId: 257874888
2019-07-15 19:19:23 -04:00
marianomartin
b5ec7135c5 Rollback accidental changes to snackbar
PiperOrigin-RevId: 257821452
2019-07-15 19:13:06 -04:00
marianomartin
0a5d66ffc0 Internal cleanup
PiperOrigin-RevId: 257802841
2019-07-15 19:07:26 -04:00
ldjesper
6eb692d3eb Add CalendarConstraints Builder
PiperOrigin-RevId: 257651910
2019-07-15 19:06:00 -04:00
marianomartin
d17243cd21 Internal cleanup
PiperOrigin-RevId: 257436291
2019-07-10 13:49:32 -04:00
ldjesper
fb44b908f4 Use CalendarBounds to invalidate out of bounds dates
PiperOrigin-RevId: 257249906
2019-07-10 13:45:18 -04:00
Material Design Team
15e1055771 Migrate org.mockito.Matchers#any* to org.mockito.ArgumentMatchers
The former is deprecated and replaced by the latter in Mockito 2. However, there is a
functional difference: ArgumentMatchers will reject `null` and check the type
if the matcher specified a type (e.g. `any(Class)` or `anyInt()`). `any()` will
remain to accept anything.

PiperOrigin-RevId: 257198335
2019-07-09 13:09:33 -04:00
Material Design Team
17a2079b9c Migrate org.mockito.Matchers#any* to org.mockito.ArgumentMatchers
The former is deprecated and replaced by the latter in Mockito 2. However, there is a
functional difference: ArgumentMatchers will reject `null` and check the type
if the matcher specified a type (e.g. `any(Class)` or `anyInt()`). `any()` will
remain to accept anything.

PiperOrigin-RevId: 257198237
2019-07-09 13:08:53 -04:00
Material Design Team
14a811d5bd Migrate org.mockito.Matchers#any* to org.mockito.ArgumentMatchers
The former is deprecated and replaced by the latter in Mockito 2. However, there is a
functional difference: ArgumentMatchers will reject `null` and check the type
if the matcher specified a type (e.g. `any(Class)` or `anyInt()`). `any()` will
remain to accept anything.

PiperOrigin-RevId: 257198124
2019-07-09 13:08:14 -04:00
Material Design Team
27b507f423 Migrate org.mockito.Matchers#any* to org.mockito.ArgumentMatchers
The former is deprecated and replaced by the latter in Mockito 2. However, there is a
functional difference: ArgumentMatchers will reject `null` and check the type
if the matcher specified a type (e.g. `any(Class)` or `anyInt()`). `any()` will
remain to accept anything.

PiperOrigin-RevId: 257197844
2019-07-09 13:04:25 -04:00
Material Design Team
857a228980 Migrate org.mockito.Matchers#any* to org.mockito.ArgumentMatchers
The former is deprecated and replaced by the latter in Mockito 2. However, there is a
functional difference: ArgumentMatchers will reject `null` and check the type
if the matcher specified a type (e.g. `any(Class)` or `anyInt()`). `any()` will
remain to accept anything.

PiperOrigin-RevId: 257196386
2019-07-09 13:03:33 -04:00
ldjesper
39f4a36d0b Remove Abstract Calendar Pickers in favor of options
PiperOrigin-RevId: 256402016
2019-07-03 14:16:01 -04:00
raajkumars
d7a92485f8 Added support to automatically inflate MaterialTextView component into TextView.
Added support to prevent applying line heights from text appearance styles if the current theme sets the flag 'textAppearanceLineHeightEnabled' to false.

PiperOrigin-RevId: 256216184
2019-07-03 14:12:29 -04:00
marianomartin
164bf0fabd Internal cleanup
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
marianomartin
ad8003d8e9 Internal cleanup
PiperOrigin-RevId: 255441067
2019-07-03 13:56:54 -04:00
raajkumars
bba2866864 * Updated Material components view inflater test to use AndroidX Junit4.
* Refactored basic test into targeted tests for each component.

PiperOrigin-RevId: 254462871
2019-06-24 17:23:42 -04:00
ldjesper
d97520cf58 Fixed an issue where styles weren't reloading on a landscape change.
PiperOrigin-RevId: 254460167
2019-06-24 17:22:38 -04:00
marianomartin
c946144645 Internal cleanup
PiperOrigin-RevId: 254305776
2019-06-24 17:06:45 -04:00
leticiars
326dc8a13a Animating dropdown arrow icon.
PiperOrigin-RevId: 254279577
2019-06-24 17:05:54 -04:00
marianomartin
4591f29bb0 Internal cleanup
PiperOrigin-RevId: 253994541
2019-06-24 16:52:19 -04:00
marianomartin
c2807d5d47 Internal cleanup
PiperOrigin-RevId: 253863905
2019-06-24 16:48:08 -04:00
leticiars
b89a91c710 Animating clear button end icon.
PiperOrigin-RevId: 253852706
2019-06-24 16:45:49 -04:00
marianomartin
f82e1a22de Internal cleanup
PiperOrigin-RevId: 253635142
2019-06-18 13:45:23 -04:00
marianomartin
8002fb7954 Internal cleanup
PiperOrigin-RevId: 253615769
2019-06-18 13:41:56 -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
marianomartin
b9147d4f2d Remove some lint warnings from baseline
PiperOrigin-RevId: 253036361
2019-06-18 13:24:50 -04:00
cketcham
bff75f2d3e Update to lamdas
PiperOrigin-RevId: 252846439
2019-06-18 13:21:02 -04:00
isabellekim
4710d61890 Add a TestRule for running tests in various night modes so that a single test app can be used for both light and dark tests.
PiperOrigin-RevId: 252704006
2019-06-18 12:06:13 -04:00
ldjesper
60090791b9 Full screen vertical scrolling
PiperOrigin-RevId: 252663790
2019-06-18 11:58:50 -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
isabellekim
468bf102d9 Add test utility for a ViewAction that focuses on a View.
PiperOrigin-RevId: 252066046
2019-06-10 09:15:36 -07: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
dniz
2ab5bdbf29 Date Picker text field toggle
PiperOrigin-RevId: 251443135
2019-06-10 08:45:32 -07:00
gauthams
19cbadc9c0 Add header text logic for date range picker
PiperOrigin-RevId: 251314472
2019-06-10 08:43:52 -07:00
cketcham
cb71e2d582 Update BottomAppBar hideOnScroll offset to account for the shadow drawn at the top of the view.
PiperOrigin-RevId: 250562675
2019-05-30 13:59:24 -07:00