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
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
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
leticiars
2e70358caf
[Catalog] Improvements to text field demo controls.
...
* Removed update color control.
* a11y improvements:
* Added announcements for when customizable fields are updated.
* Removed individual update buttons. Update is now done through imeActions for each text field (via the done button on the keyboard).
PiperOrigin-RevId: 316168847
2020-06-15 23:49:55 -07:00
Material Design Team
073382034a
Migrate android.support.v4.content.ContextCompat to androidx
...
Android X migration
PiperOrigin-RevId: 315791679
2020-06-11 17:27:51 -07:00
connieshi
15c048c0fa
[MaterialButtonToggleGroup] Do not update the checked state of any child buttons during onPressedChanged callback.
...
Resolves https://github.com/material-components/material-components-android/issues/1365
PiperOrigin-RevId: 314798502
2020-06-05 14:51:21 -04:00
Rafael Wolf de Goes
1171418c2b
Automated g4 rollback of changelist 314715132
...
PiperOrigin-RevId: 314782767
2020-06-05 14:49:43 -04:00
nickrout
7b9cd662b2
[Catalog] Exposed progress indicator demo.
...
PiperOrigin-RevId: 314726194
2020-06-05 14:48:19 -04:00
Rafael Wolf de Goes
a284edd719
[MaterialButton] Align icon on top
...
Resolves https://github.com/material-components/material-components-android/pull/1129
GIT_ORIGIN_REV_ID=8d663b1ca7f7bf62e1e5aa8cfc887a33bdbaf9a2
PiperOrigin-RevId: 314715132
2020-06-05 14:46:34 -04:00
Material Design Team
76ffe35fef
Cleanup
...
PiperOrigin-RevId: 313865830
2020-06-01 16:52:06 -04:00
dniz
c7c846f026
[Catalog] Fix launching of range picker to calendar mode in date picker demo
...
PiperOrigin-RevId: 313283795
2020-05-27 13:46:50 -04:00
dniz
1a6ebc0c56
[Motion] Remove boolean entering from MaterialFade constructor and don't set default duration
...
This makes MaterialFade more consistent with the other transition patterns
PiperOrigin-RevId: 312718402
2020-05-21 16:58:07 -04:00
Rafael Wolf de Goes
6455e69ba7
Automated g4 rollback of changelist 312323243
...
PiperOrigin-RevId: 312420120
2020-05-20 17:03:52 -04:00
Rafael Wolf de Goes
cbc46e9c8d
[MaterialButton] Align icon on top
...
Resolves https://github.com/material-components/material-components-android/pull/1129
GIT_ORIGIN_REV_ID=8d663b1ca7f7bf62e1e5aa8cfc887a33bdbaf9a2
PiperOrigin-RevId: 312323243
2020-05-19 18:35:01 -04:00
hunterstich
e00df6d075
[Motion] Add support for container transform start and end container colors.
...
PiperOrigin-RevId: 312152199
2020-05-19 10:23:24 -04:00
marianomartin
8f0aa7f8d6
Split Slider into two classes
...
Slider throws an exception when calling getValue with more than one value. Supporting both single value and multiple values in the same class makes it confusing. While not supporting convenience methods getValue and setValue in the multi value class makes it, well, inconvenient.
In addition min, max are also a bit ambiguous since seekBar uses these for valueFrom and valueTo so those were removed.
PiperOrigin-RevId: 311774410
2020-05-18 11:19:05 -04:00
hunterstich
c457774268
[Motion] Fix catalog transition hero shared axis/fade through transitions.
...
PiperOrigin-RevId: 310956443
2020-05-11 16:08:42 -04:00
dniz
46574b5ec8
[Motion] Add target to Hold transitions in demos to keep shadows rendering on child views during transition
...
PiperOrigin-RevId: 310542929
2020-05-08 15:22:29 -04:00
raajkumars
9f719505cb
Fixed Datepicker demo in Catalog application to call the correct method to obtain current date (and time).
...
PiperOrigin-RevId: 310198348
2020-05-07 12:26:26 -04:00
hunterstich
6ab9e11a0e
[Motion] Fix container transform start delay flash
...
Switch the container transform to use a transition listener instead of an animator listener. A transition listener calls onTransitionStart as soon as the transition begins where an animator listener calls onAnimatorStart after the transitions delay, if any, casuing an unwanted visual flash of the end view before the animator starts.
PiperOrigin-RevId: 309977033
2020-05-07 11:26:11 -04:00
dniz
ca2e65443f
Refactor Catalog transition demos to use Dagger injection for default container transform config
...
Also updates Catalog navigation to respect arc motion config
PiperOrigin-RevId: 309297383
2020-05-01 14:54:14 -04:00
dniz
20038e6ffa
Fix Catalog table of contents -> demo landing page container transform z-order bug
...
PiperOrigin-RevId: 309254432
2020-05-01 14:43:24 -04:00
Andrey Derkach
6f589d3f03
[catalog-demo] Fixed crash in bottomsheet on SDK 17
...
Resolves https://github.com/material-components/material-components-android/issues/1251
Resolves https://github.com/material-components/material-components-android/pull/1253
GIT_ORIGIN_REV_ID=926c37fcab4a7585a1df0dde7805f96545841d34
PiperOrigin-RevId: 308813639
2020-04-28 07:05:02 -07:00
hunterstich
d025a3b2c3
[Motion] Replace MaterialVisibility subclass static constructors for standard constructors
...
PiperOrigin-RevId: 308793749
2020-04-28 06:52:44 -07:00
dniz
cd36c2f5e7
[Motion] Update transitions to be based on androidx and add transitions platform subpackage to support Activities, Windows, etc.
...
PiperOrigin-RevId: 308651633
2020-04-27 17:32:30 -04:00
Kirill Olenyov
1b124afa02
[TextInputLayout] Add click listener for error icon
...
Resolves https://github.com/material-components/material-components-android/pull/1215
GIT_ORIGIN_REV_ID=f2ae41512162b09c4e37fa727b465970eb83f2b1
PiperOrigin-RevId: 307624385
2020-04-22 15:06:21 -04:00