381 Commits

Author SHA1 Message Date
hunterstich
2a2792d4fb [Motion] Remove context parameter from MaterialContainerTransform.
PiperOrigin-RevId: 304389543
2020-04-03 09:57:54 -07:00
hunterstich
8bb87cb10f Fix FadeThrough catalog demo on API 21 and 22.
GridLayout needs to use the app: namespace for column and row attributes for API 21 and 22.

PiperOrigin-RevId: 304206794
2020-04-03 09:18:48 -07:00
hunterstich
148938ca84 [Motion] Update MaterialFadeThrough and MaterialFade to use MaterialVisibility and remove context param.
This updaes the remaining transitions to compose themselves of two animators instead of two visibility transitions. This also removes the context parameter from MaterialFadeThrough, MaterialFade and MaterialSharedAxis' constructors.

PiperOrigin-RevId: 303332658
2020-03-27 11:40:38 -04:00
leticiars
d1850a3d78 [ExposedDropdownMenu] Implement workaround to inputType=none not working + move MaterialAutoCompleteTextView to textfield/ directory.
The alternative to android:editable="false" (which is deprecated) is to set inputType="none", however due to a framework bug that has no effect. This change makes it so it works as expected.

PiperOrigin-RevId: 299411110
2020-03-09 09:36:24 -07:00
haodong
4132b7c839 [Catalog] Updated the fillColor in some icon drawables for MDC Catalog.
PiperOrigin-RevId: 299127777
2020-03-05 13:09:33 -08:00
leticiars
a36826b018 [Catalog][ToggleButton] Adding content description to icon-only buttons.
PiperOrigin-RevId: 297642030
2020-02-27 16:00:23 -05:00
leticiars
dbfb6cbdba [Catalog][Tabs] Putting tabs demo in a scroll view.
Resolves https://github.com/material-components/material-components-android/issues/977

PiperOrigin-RevId: 297429398
2020-02-27 15:51:28 -05:00
leticiars
a66fef21e7 [Catalog] Removing unnecessary content description in cards demo.
a11y services should read the text of the text views.

PiperOrigin-RevId: 297350692
2020-02-27 15:19:27 -05:00
leticiars
d0fca5fa29 [Catalog] Making swipe-to-dismiss card focusable so that it announces that there are a11y actions available (to dismiss it).
PiperOrigin-RevId: 297216974
2020-02-27 15:16:50 -05:00
afohrman
bbb534e256 Deprecate transformation package in favor of MaterialContainerTransform.
The new recommendation is to use com.google.android.material.MaterialContainerTransform instead of the transformation library.

Also delete the catalog demo for transformation.

PiperOrigin-RevId: 297171082
2020-02-27 15:13:44 -05:00
afohrman
dee1c711e0 Remove scrim flash from View to View demo.
A scrim was flashing in the demo of partial screen transitions; this commit removes the flash.

PiperOrigin-RevId: 296990749
2020-02-25 11:21:06 -05:00
afohrman
624ed46ce7 Add elevation overlays to elevation and shadows main demo.
PiperOrigin-RevId: 296229479
2020-02-20 10:09:15 -08:00
afohrman
0d9fe32731 Use transformation icon for transitions catalog demo.
And rename it from ic_transformation to ic_transitions.

Currently the shape catalog demo's icon is used for transitions, but there's an icon that was created for transformations that would be more fitting for the transitions catalog demo.

PiperOrigin-RevId: 296210450
2020-02-20 10:05:48 -08:00
afohrman
501e967796 Add view to view container transform demo to the catalog.
Add a container transform demo similar to the activity and fragment container transform demos, but for view to view transitions.

PiperOrigin-RevId: 296048253
2020-02-20 10:00:53 -08:00
Felipe Roriz
4ccb052d2b [MaterialDatePicker] Added a DateValidator for a bounded range.
Resolves https://github.com/material-components/material-components-android/pull/972

GIT_ORIGIN_REV_ID=29cbbd569f5284f0bdf4cc1bdad60f93f92856eb

Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 295810824
2020-02-18 18:03:44 -05:00
hunterstich
c589d8df7d Fix catalog gradle build by including transition Activities in Manifest.
PiperOrigin-RevId: 295809600
2020-02-18 17:05:57 -05:00
hunterstich
95b83b504b Add transitions demo to catalog.
PiperOrigin-RevId: 294988834
2020-02-13 14:05:58 -08:00
hunterstich
70f447d77e Fix gradle build and lint errors for transition package.
PiperOrigin-RevId: 294971841
2020-02-13 13:55:08 -08:00
afohrman
0a9b24e146 Add the ability to configure which ContainerTransformConfigurationHelper is used to configure the container transform demos.
PiperOrigin-RevId: 294931519
2020-02-13 13:54:12 -08:00
hunterstich
a3a9793fb1 Fix container transform crash on API 21 and 22 due to path unioning.
PiperOrigin-RevId: 294924927
2020-02-13 13:49:21 -08:00
hunterstich
bd8e6d28e1 Update catalog to enable compat vector resources after multidexing has been installed on api level 21 and below.
PiperOrigin-RevId: 294906229
2020-02-13 10:33:00 -05:00
hunterstich
80e4bfd888 Add ability to restrict a demo feature fragment.
PiperOrigin-RevId: 294797214
2020-02-13 10:31:55 -05:00
marianomartin
841ac942a7 Fix lint warning on Gradle build
PiperOrigin-RevId: 294498507
2020-02-11 16:15:24 -05:00
johan12345
d7554adce3 Add catalog demo for CollapsingToolbarLayout with mutliple lines
Resolves https://github.com/material-components/material-components-android/pull/413
Resolves https://github.com/material-components/material-components-android/issues/6

PiperOrigin-RevId: 294481434
2020-02-11 14:36:03 -05:00
cketcham
0731d28420 Add Range Slider demo to catalog
PiperOrigin-RevId: 293864326
2020-02-10 09:57:48 -05:00
afohrman
cb1e892cd9 Adding new attr to the catalog.
PiperOrigin-RevId: 293659818
2020-02-07 10:33:50 -05:00
marianomartin
30ec731a28 Remove experimental annotation from ShapeableImageView
PiperOrigin-RevId: 293251962
2020-02-05 17:28:32 -05:00
Zhaonian Luan
290fe3029d [Slider] Fix a typo
Resolves https://github.com/material-components/material-components-android/pull/942

GIT_ORIGIN_REV_ID=7515fa2eb135bfec29bf59053888a0dbe3dbdcae
PiperOrigin-RevId: 291759766
2020-01-28 16:11:11 -05:00
marianomartin
20d2efed82 Change ShapeableImageView to use a Hardware layer
PiperOrigin-RevId: 291699732
2020-01-27 10:43:11 -05:00
haodong
c6a554ffb2 [Menu] Fixed menu icon get squeezed for API <=21.
Resolves https://github.com/material-components/material-components-android/issues/897

PiperOrigin-RevId: 289939633
2020-01-15 17:47:08 -08:00
connieshi
a15d3ea219 Update TabLayout so it takes into account TabGravity in MODE_SCROLLABLE.
Add TabGravity.GRAVITY_START to maintain existing (default) MODE_SCROLLABLE behavior.
MODE_SCROLLABLE currently supports GRAVITY_CENTER and GRAVITY_START
MODE_FIXED does not support GRAVITY_START.

PiperOrigin-RevId: 289910847
2020-01-15 14:25:50 -08:00
dniz
439a1d8e8a Add ids to Catalog demo activity/fragment AppBarLayouts
PiperOrigin-RevId: 289876228
2020-01-15 14:23:46 -08:00
zkovar
0e6c21d3c0 [MaterialDatePicker] Ability to Start Picker in MaterialTextInputPicker Mode
Resolves https://github.com/material-components/material-components-android/pull/867
Resolves https://github.com/material-components/material-components-android/issues/865

GIT_ORIGIN_REV_ID=de3f50710c06d17331d366eb9b4d240ec205a1f8
Co-authored-by: pekingme <pekingme@gmail.com>
PiperOrigin-RevId: 289676795
2020-01-14 11:00:51 -08:00
marianomartin
36426fc74c [ShapeableImageView] Support more types of Drawables
Resolves https://github.com/material-components/material-components-android/issues/890
Resolves https://github.com/material-components/material-components-android/issues/842

PiperOrigin-RevId: 289167223
2020-01-10 16:47:00 -08:00
afohrman
85064db0f0 Prevent transformation catalog demo from getting cut off.
PiperOrigin-RevId: 289103439
2020-01-10 10:19:42 -08:00
ethanhsuhsu
7b0a41d10b [Lists] Added new thumbnail for entry in the catalog
Resolves https://github.com/material-components/material-components-android/pull/875

GIT_ORIGIN_REV_ID=88bb4c66b230dc7d8f407ce9a2ee4068d0ba3aa5
PiperOrigin-RevId: 288570507
2020-01-08 11:56:26 -08:00
ruben
cde09d4b4e [Slider] Add missing functionality from SeekBar regarding touch events and value changes
Resolves https://github.com/material-components/material-components-android/pull/831

GIT_ORIGIN_REV_ID=70dd0a10ef204837b01ed9593cfdd9bcf9137228
Co-authored-by: cketcham <cketcham@gmail.com>
PiperOrigin-RevId: 287545665
2019-12-30 14:15:50 -05:00
SatoShun
1dfc328463 [ImageView] Fix strings text of ImageView catalog
Resolves https://github.com/material-components/material-components-android/pull/847

GIT_ORIGIN_REV_ID=2b1cef221bad0a97dd7f8f5f376d7f7401020933
PiperOrigin-RevId: 286892669
2019-12-23 15:41:26 -05:00
ruben
a7da96fac0 [Slider] Fixed behaviour when Slider is in a scrolling container
Resolves https://github.com/material-components/material-components-android/pull/833

GIT_ORIGIN_REV_ID=86b976f757fb8354ffe502c5acc32b6954890bb9
PiperOrigin-RevId: 286431744
2019-12-19 15:49:27 -05:00
leticiars
2084fd3f70 [Text Fields] Pan window so that keyboard doesn't hide helper/error views.
It doesn't pan if the user can already scroll (for example if it's in a scroll view).

PiperOrigin-RevId: 286424421
2019-12-19 15:47:57 -05:00
cketcham
ac269d6ed5 Fix BottomSheetScrollableContentDemo
Scrollable content inside the BottomSheet should be a NestedScrollView instead of a regular ScrollView

PiperOrigin-RevId: 286033025
2019-12-17 17:07:38 -05:00
marianomartin
1aef5b9a9e [ImageView] Add catalog ImageView demo
PiperOrigin-RevId: 285279245
2019-12-13 17:30:43 -05:00
afohrman
201ec6241c Add support for placeholder text in TextInputLayout.
This is the initial implementation of placeholder text; it does not contain motion. At this stage, TextInputLayout sets the placeholder text visibility based on whether or not it should show.

PiperOrigin-RevId: 284808331
2019-12-11 17:06:57 -05:00
cketcham
df94cd1bca Remove the requirement to setClipChildren false on the parent of Slider
Draw the Slider label with ViewOverlay, and update the way the halo is drawn pre lollipop. This stops any clipping that happens by the bounds view.

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

PiperOrigin-RevId: 284650572
2019-12-10 07:24:00 -05:00
haodong
77ce281f04 Fixed MaterialDatePicker todayInUtcMilliseconds method.
- Used UtcDates to return the UTC milliseconds of today in local timezone.
- Previous method is replaced with thisMonthInUtcMilliseconds, which fits its function better.
Resolves https://github.com/material-components/material-components-android/issues/778

PiperOrigin-RevId: 283981946
2019-12-05 15:58:26 -05:00
dniz
08c5165096 Update Top App Bar scrolling transparent status bar demo to use colorPrimaryDark instead of colorPrimary for statusBarForeground
PiperOrigin-RevId: 283968481
2019-12-05 14:59:04 -05:00
Material Design Team
32362bed3d Automated g4 rollback of changelist 281519201
PiperOrigin-RevId: 281530369
2019-11-22 21:23:01 +00:00
marianomartin
d4a17635b1 Change ThemeSwitcher MaterialButtonToggleGroup to use selectionRequired
PiperOrigin-RevId: 281517858
2019-11-20 14:39:57 -05:00
marianomartin
a4b90321e3 Add selection required option to MaterialButtonToggleGroup
Setting selectionRequired = true. Makes it so that the last option on the Group cannot be unselected. Similar to how a Text Alignment toggle works.

PiperOrigin-RevId: 281366158
2019-11-20 14:36:15 -05:00
haodong
7823e88bb0 Forward fix lint error.
PiperOrigin-RevId: 281150048
2019-11-19 10:30:54 -08:00