274 Commits

Author SHA1 Message Date
Felipe Roriz
bede31c6b5 [BottomSheet] Updated BottomSheetDialog and Fragment dismiss animation
Resolves https://github.com/material-components/material-components-android/pull/415

GIT_ORIGIN_REV_ID=7aa46483d15c00c102b9b5c4463bf3bd331e4d15
PiperOrigin-RevId: 261764987
2019-08-06 15:18:43 -04:00
marianomartin
f28039a0d7 Change ThemeOverlayUtils to use a map instead of array
PiperOrigin-RevId: 260776832
2019-08-02 15:09:51 -04:00
dniz
dc69263ffe Update Catalog Button demo to use CoordinatorLayout, which enables Snackbar swipe to dismiss behavior
PiperOrigin-RevId: 260193185
2019-07-29 16:40:54 -04:00
marianomartin
2241380dba Internal cleanup
PiperOrigin-RevId: 259753640
2019-07-24 15:09:18 -04:00
connieshi
87f9e535f8 Update Tabs demo in catalog app to support configuring badge gravity.
PiperOrigin-RevId: 259725939
2019-07-24 15:07:00 -04:00
ldjesper
5d58de9499 Add MaterialDatePicker and CalendarConstraints to the public API.
PiperOrigin-RevId: 259585701
2019-07-23 15:29:11 -04:00
connieshi
f3fee09577 Update "EditText" dialog demo catalog to return the user input and show it in a toast.
PiperOrigin-RevId: 259567469
2019-07-23 13:51:23 -04:00
dniz
eab505c42f Update uses-sdk in AndroidManifest.xml files and fix some lint warnings
PiperOrigin-RevId: 259545645
2019-07-23 12:12:58 -04:00
dniz
cc73c2a630 Update TODOs
PiperOrigin-RevId: 259535844
2019-07-23 11:21:39 -04:00
dniz
8dc2eefd19 Update comments
PiperOrigin-RevId: 259405175
2019-07-22 21:20:09 -04:00
marianomartin
3e42b076ec Add catalog demo for SwipeDismissBehavior
PiperOrigin-RevId: 259377944
2019-07-22 21:17:15 -04:00
connieshi
0558a36c9a Add support for configuring badge gravity.
PiperOrigin-RevId: 259223232
2019-07-22 12:22:00 -04:00
marianomartin
0a5d66ffc0 Internal cleanup
PiperOrigin-RevId: 257802841
2019-07-15 19:07:26 -04:00
connieshi
195ca81648 In Bottom Navigation catalog demo, ensure that the badge on the first menu item is visible.
PiperOrigin-RevId: 257617996
2019-07-11 14:38:12 -04:00
marianomartin
38035ff9aa Internal cleanup
PiperOrigin-RevId: 257606638
2019-07-11 14:36:21 -04:00
connieshi
ca9d11d4e4 Fix BottomNavigation demo crash on pre API 21 devices by enabling AppCompatDelegate#setCompatVectorFromResourcesEnabled
PiperOrigin-RevId: 257596491
2019-07-11 14:35:24 -04:00
dniz
589c969ff9 Use framework Space instead of androidx legacy Space
PiperOrigin-RevId: 257451420
2019-07-10 15:16:21 -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
dniz
d3b7c72446 Cleanup Catalog and Material Theme Builder Top App Bar primary-surface implementations
PiperOrigin-RevId: 257010622
2019-07-09 12:55:13 -04:00
ldjesper
c0fb5ad1af Fix Date Picker Catalog Demo to retain listeners
PiperOrigin-RevId: 256421089
2019-07-03 15:49:03 -04:00
ldjesper
39f4a36d0b Remove Abstract Calendar Pickers in favor of options
PiperOrigin-RevId: 256402016
2019-07-03 14:16:01 -04:00
dniz
37534561f2 Add component styles that swap between primary and surface styles depending on light vs dark theme
Makes it easier for devs to implement: https://material.io/design/color/dark-theme.html#custom-application

PiperOrigin-RevId: 256208965
2019-07-03 14:11:49 -04:00
connieshi
0271cec540 Add dialog examples with outlined or filled buttons.
PiperOrigin-RevId: 256185197
2019-07-03 14:10:51 -04:00
marianomartin
164bf0fabd Internal cleanup
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
ldjesper
39d0dfd1c6 Internal Clean-up
PiperOrigin-RevId: 255488842
2019-07-03 14:02:09 -04:00
connieshi
0e4142effc Bottom sheet demo with nested scrollable content. Hide the demo from the catalog for now, until a nested scrolling bug is fixed.
PiperOrigin-RevId: 255455292
2019-07-03 13:58:47 -04:00
marianomartin
ad8003d8e9 Internal cleanup
PiperOrigin-RevId: 255441067
2019-07-03 13:56:54 -04:00
marianomartin
006e4af031 Internal cleanup
PiperOrigin-RevId: 255258571
2019-06-26 19:19:36 -04:00
connieshi
55f449d958 Add switch to disable/enable expanding a bottom sheet in the catalog demo.
PiperOrigin-RevId: 255246800
2019-06-26 19:18:25 -04:00
marianomartin
d8eeb000c6 Internal cleanup
PiperOrigin-RevId: 254963494
2019-06-26 11:21:03 -04:00
marianomartin
bd4005b78f [MaterialCardView][Catalog] Radio buttons in the Card States demo are cut off when display size is set to largest
PiperOrigin-RevId: 254769715
2019-06-24 17:29:08 -04:00
Material Design Team
0940c5f073 Automated g4 rollback of changelist 254569710
PiperOrigin-RevId: 254571145
2019-06-24 17:26:52 -04:00
marianomartin
cebb0d9039 Internal cleanup
PiperOrigin-RevId: 254569710
2019-06-24 17:25:54 -04:00
connieshi
31e2683393 Update bottom sheet demo in catalog app to include interactable content (switch and button).
PiperOrigin-RevId: 254511035
2019-06-24 17:24:58 -04:00
ldjesper
ce2d7dec5e Alternate Theme layout demos. Correct usage of shapeAppearance attributes based on screensize. Range pickers default to dialog mode when screens are larger than 480dp.
PiperOrigin-RevId: 254324320
2019-06-24 17:11:24 -04:00
marianomartin
c946144645 Internal cleanup
PiperOrigin-RevId: 254305776
2019-06-24 17:06:45 -04:00
marianomartin
c836066067 Add actions for drag and drop list of cards
Test plan:

- Navigate to list card view activity
- turn talkback on
- listen for actions in Card (down, up)
- Verify swapping cards works with the actions.

PiperOrigin-RevId: 254240105
2019-06-24 17:04:49 -04:00
ldjesper
fd686f2074 MaterialCalendar Listeners added. Updated catalog demo to use listeners.
PiperOrigin-RevId: 254122526
2019-06-24 16:56:23 -04:00
marianomartin
2de39fafe0 Internal cleanup
PiperOrigin-RevId: 253799644
2019-06-18 13:57:49 -04:00
marianomartin
8002fb7954 Internal cleanup
PiperOrigin-RevId: 253615769
2019-06-18 13:41:56 -04:00
Material Design Team
63387d1b12 Migrate from Has*Injector types to HasAndroidInjector
Update to Dagger 2.23.1 to get the new APIs.

PiperOrigin-RevId: 253586274
2019-06-18 13:40:56 -04:00
connieshi
0a6de9f979 Add switch to Buttons demo to toggle enabled / disabled state.
PiperOrigin-RevId: 253582470
2019-06-18 13:39:07 -04:00
dniz
6783f9e1cd Clean up naming of elevation overlay methods and attributes
PiperOrigin-RevId: 253283047
2019-06-18 13:34:29 -04:00
marianomartin
450300d973 Internal cleanup
PiperOrigin-RevId: 253249607
2019-06-18 13:30:04 -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
connieshi
0525b102db Update Bottom Nav catalog demo to use filled icons for checked stated and outlined icons for unchecked state.
PiperOrigin-RevId: 253087691
2019-06-18 13:26:53 -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
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