471 Commits

Author SHA1 Message Date
Gabriele Mariotti
85739c7e05 [MaterialDatePicker] Added a datevalidator for multiple range
Resolves https://github.com/material-components/material-components-android/pull/1622

GIT_ORIGIN_REV_ID=a125081ffc609b969f841cd7a830f35d17861ee9
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 330725106
2020-09-09 11:25:13 -04:00
haodong
8bba732aaa Automated g4 rollback of changelist 328982034
PiperOrigin-RevId: 329810012
2020-09-09 11:23:29 -04:00
afohrman
4f5e045a4b [Motion] Added content to the contact card in the View Container Transform demo.
PiperOrigin-RevId: 329356569
2020-08-31 16:05:03 -04:00
haodong
395c2cda63 [ProgressIndicator] Removed custom drawing support to minimize API exposure.
PiperOrigin-RevId: 329001093
2020-08-28 18:07:25 -04:00
haodong
d615d2ac37 [SwitchMaterial] Added processing status.
PiperOrigin-RevId: 328982034
2020-08-28 18:05:07 -04:00
afohrman
653701d75c [Motion] Added a contact card to View Container Transform demo and created an expanded card for cards transition into.
This commit adds the for the separate transitions. The contact card is blank for now.

PiperOrigin-RevId: 328965507
2020-08-28 18:04:16 -04:00
hunterstich
0314540366 [Motion] Fix catalog hero demo from loosing scroll position when returning to album list.
Resolves https://github.com/material-components/material-components-android/issues/1349

PiperOrigin-RevId: 328730266
2020-08-28 10:08:49 -04:00
marianomartin
0aed26b8b7 [TimePicker] Changed positive listener to be an OnClickListener
PiperOrigin-RevId: 328539995
2020-08-26 17:39:31 -04:00
marianomartin
71941cd1c4 [Catalog] resolve lint issue with linear layout
PiperOrigin-RevId: 328146509
2020-08-24 18:03:48 -04:00
dniz
a83011d383 [Motion] Updated Catalog container transform enter/return configuration Slider step sizes to fix crash
PiperOrigin-RevId: 327863602
2020-08-24 18:01:26 -04:00
leticiars
06787e34ee [Catalog] Small javadoc update.
PiperOrigin-RevId: 327816511
2020-08-21 16:15:54 -04:00
afohrman
3f52e7f86d [Motion] Fix intermediate flash during view container transform demo.
Also rename endCard as endView in preparation for a change that shows separate end views depending on whether the FAB or a card was pressed.

PiperOrigin-RevId: 327483783
2020-08-19 17:45:44 -04:00
haodong
7200cd52b6 [ProgressIndicator] Fixed the style used on indeterminate drawable in the standalone demo.
PiperOrigin-RevId: 327435884
2020-08-19 17:41:57 -04:00
haodong
90f041d5e7 [ProgressIndicator] Updated style names.
PiperOrigin-RevId: 326696208
2020-08-14 15:24:16 -04:00
hunterstich
8be3efc199 [BottomAppBar] Updated FAB Alignement and menu replacement to fix different length menu res translation x bug
PiperOrigin-RevId: 326652655
2020-08-14 15:08:25 -04:00
afohrman
acdd3a93b8 [Motion] Made shared axis end view in catalog demo scrollable.
The bottom of the view was cut off in some screen sizes. Making the layout scrollable fixes the issue.

PiperOrigin-RevId: 326317485
2020-08-13 09:46:46 -04:00
NUmeroAndDev
0d3bf85ed0 [Catalog] Replaced getFragmentManager because deprecated
Resolves https://github.com/material-components/material-components-android/pull/1561

GIT_ORIGIN_REV_ID=80182480c8bbdb59ff25e1fae6479d5b4402b9eb
PiperOrigin-RevId: 325308210
2020-08-06 21:12:42 -04:00
haodong
77582b5e21 [ProgressIndicator] Renamed indicatorWidth with indicatorSize to eliminate the confusion of indicatorWidth controlling view height in LINEAR types.
Resolves https://github.com/material-components/material-components-android/issues/1491

PiperOrigin-RevId: 325045868
2020-08-05 16:25:19 -04:00
Gabriele Mariotti
5fb7964372 [Slider] Added option to show/hide tick marks in discrete mode
Resolves https://github.com/material-components/material-components-android/pull/1545

GIT_ORIGIN_REV_ID=6c5dc94df08ad7ec202722d5b546795f436de404
PiperOrigin-RevId: 324263710
2020-07-31 15:44:30 -04:00
marianomartin
dbbd27cefc [TimePicker] Removed newInstance method in favor of Builder Class
Resolves https://github.com/material-components/material-components-android/issues/1512

PiperOrigin-RevId: 324248187
2020-07-31 15:42:47 -04:00
Gabriele Mariotti
2ccc71624e [TimePicker] Added listeners
Resolves https://github.com/material-components/material-components-android/pull/1517

GIT_ORIGIN_REV_ID=be2559a45bff94592537183d46659df5a2a91056
PiperOrigin-RevId: 324215552
2020-07-31 15:05:17 -04:00
Yongce Tu
e940c09fcf [Catalog] Fix the wrong use of FragmentManager in TabsControllableDemoFragment
Resolves https://github.com/material-components/material-components-android/issues/1553
Resolves https://github.com/material-components/material-components-android/pull/1554

GIT_ORIGIN_REV_ID=4c7c1ab154892c665b4a67215a88e781da218ab6
PiperOrigin-RevId: 324207016
2020-07-31 11:22:46 -04:00
Yongce Tu
64b3387cb2 [Catalog] Save/restore 'popupItemLayout' in MenuMainDemoFragment to fix crash
Resolves https://github.com/material-components/material-components-android/issues/1551
Resolves https://github.com/material-components/material-components-android/pull/1552

GIT_ORIGIN_REV_ID=d88c3fe4d946d1f17c8c6d231730d4a325d82ddc
PiperOrigin-RevId: 324202110
2020-07-31 11:22:13 -04:00
Yongce Tu
2badebf751 [Catalog] Fix the wrong initialization in ThemeSwitcherDialogFragment
Resolves https://github.com/material-components/material-components-android/issues/1548
Resolves https://github.com/material-components/material-components-android/pull/1550

GIT_ORIGIN_REV_ID=ea706d9d465a38e57f1a95b2c36d76bd3b15cc05
PiperOrigin-RevId: 324202049
2020-07-31 11:21:34 -04:00
connieshi
4b01ac4b22 [Chip] Update chipgroup demo to include switch to toggle the requiredSelection attr.
PiperOrigin-RevId: 324015228
2020-07-30 19:36:44 -04:00
Aidan Pieper
70d659db60 [MaterialButtonToggleGroup] Fixed margins on MaterialButtonToggleGroup when changing orientations
Resolves https://github.com/material-components/material-components-android/pull/1521

Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
GIT_ORIGIN_REV_ID=c87c9ec3258c52fd3e6e2824b8dca2823b9500a5
PiperOrigin-RevId: 323781705
2020-07-29 10:38:35 -04:00
dniz
5bd64f42d3 [DatePicker] Updated text input mode to respect custom theme res id
Resolves https://github.com/material-components/material-components-android/issues/966

PiperOrigin-RevId: 322809365
2020-07-27 13:17:42 -04:00
haodong
5229b3f94c [ProgressIndicator] Added standalone drawable demo with Chip in catalog.
PiperOrigin-RevId: 322692977
2020-07-23 11:40:31 -04:00
haodong
f7bad9a512 [ProgressIndicator] Changed drawables to detect system animator duration scale by themselves.
PiperOrigin-RevId: 322193517
2020-07-21 04:16:06 -07:00
Frantisek Nagy
8210b3ac01 [CollapsingToolbarLayout] Fix CollapsingToolbar multiline position
GIT_ORIGIN_REV_ID=7dbd8905bf58eb5811c4661ee77512d4d9c59c19

Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 321294325
2020-07-15 09:49:15 -07:00
marianomartin
702c201508 [TimePicker] Renamed classes to match MaterialDatePicker
PiperOrigin-RevId: 320993387
2020-07-15 09:45:57 -07:00
haodong
380c21ab53 [ProgressIndicator] Separated the padding when calculating drawable's intrinsic size.
PiperOrigin-RevId: 320990538
2020-07-15 09:43:41 -07:00
marianomartin
34f621d22c [Slider] Move static inner classes outside base slider class
Resolves https://github.com/material-components/material-components-android/issues/1342

Resolves https://github.com/material-components/material-components-android/issues/1471

PiperOrigin-RevId: 320607441
2020-07-10 11:48:43 -07:00
connieshi
44ff45c57c Update target sdk from 28 to 29 for Material.
PiperOrigin-RevId: 320426815
2020-07-10 11:37:38 -07:00
haodong
4ff30311e3 [ProgressIndicator] Replaced ProgressIndicator references in drawable&delegate classes to prevent memory leak and prepare for the stand-along drawable feature.
PiperOrigin-RevId: 320391113
2020-07-10 11:35:27 -07:00
marianomartin
cb4c1edb21 Update gradle version
PiperOrigin-RevId: 320229763
2020-07-08 15:02:06 -04:00
dniz
00928d5d12 [Catalog] Removed some unnecessary null checks from view to view container transform demo
PiperOrigin-RevId: 319974997
2020-07-07 10:58:45 -04:00
dniz
a88050de31 [Catalog] Fixed Date Picker demo title and aligned Time Picker demo strings
PiperOrigin-RevId: 319111586
2020-07-06 10:54:15 -04:00
marianomartin
4b87068b08 [Catalog] Improved extended fab demo
PiperOrigin-RevId: 319044933
2020-06-30 16:09:19 -04:00
marianomartin
cd6b062519 [TimePicker] Added a TimePicker component
This should be considered a pre-alpha of timepicker.
Try the component today, on the latest snapshot:

https://github.com/material-components/material-components-android/blob/master/docs/using-snapshot-version.md

The initial API offers feature parity with android.app.TimePickerDialog

Resolves https://github.com/material-components/material-components-android/issues/690

PiperOrigin-RevId: 318879238
2020-06-29 16:24:46 -04:00
marianomartin
eb2f52fe8c [Catalog] Update dagger version, remove jetifier
context:  https://github.com/google/dagger/releases/tag/dagger-2.26
"Migrate dagger-android to AndroidX."
PiperOrigin-RevId: 318870298
2020-06-29 16:21:06 -04:00
marianomartin
811d45216b [DatePicker] Fixed crash when GridView has not rendered the last child
Resovles https://github.com/material-components/material-components-android/issues/1338

PiperOrigin-RevId: 318811845
2020-06-29 16:16:37 -04:00
haodong
bf141bb14b [ProgressIndicator] Added the custom drawable support (7/7)
- Added a new catalog demo of how to use drawing delegate to customize appearance.

PiperOrigin-RevId: 318205117
2020-06-26 14:11:13 -04:00
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
haodong
90e3839aec [ProgressIndicator] Fixed wrong attribute used in indeterminate mode catalog fragment.
PiperOrigin-RevId: 317296156
2020-06-19 13:59:50 -04:00
Material Design Team
342ea9ad25 Internal cleanup
PiperOrigin-RevId: 317147378
2020-06-19 13:42:35 -04:00
Rafael Wolf de Goes
b39845a452 Automated g4 rollback of changelist 314782767
PiperOrigin-RevId: 316867631
2020-06-17 18:40:38 -07:00
hunterstich
d4a5702319 [BottomAppBar] Update menu replacement animation to coordinate with fab alignment animation.
When calling both setFabAlignmentMode and replaceMenu, the fab alignment animation and menu animation were not properly coordinating. replaceMenu causes a call to onLayout, which immediately updates the menu's translationX, causeing the menu to jump to its final position. This adds a condition to skip the menu position update if a menu animatior is running.

Additionally, the menu's contents were immediately being swapped making the animation look jumpy. This CL also as a method to update the fab alignment and menu resource at the same time so a coordinated animation of: fab scale out/slide start - > menu fade out -> menu replaced -> menu fade in -> fab scale/slide finish, can be run.

PiperOrigin-RevId: 316860005
2020-06-17 18:37:51 -07:00
leticiars
3ed776af17 [Catalog][TextInputLayout] Changed prefix/suffix demo it shows number keyboards for the inputs.
PiperOrigin-RevId: 316691745
2020-06-16 17:08:23 -07:00
haodong
48c4ef019c [ProgressIndicator] Added support of rounded corners.
- Added attribute cornerRadius.
- Added rounded corner support for linear determinate and indeterminate (non-seamless) mode.
- Added rounded corner support for circular determinate and indeterminate mode.
- Added screenshot tests.
- Modified show cases in Catalog to demo this feature.

PiperOrigin-RevId: 316400672
2020-06-15 23:54:35 -07:00