367 Commits

Author SHA1 Message Date
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
haodong
3ca8d9892d Add action mode toggle to MDC topappbar catalog actionbar demos.
PiperOrigin-RevId: 281111566
2019-11-19 10:24:32 -08:00
connieshi
de005027bc Fix bug in bottom navigation badge state restoration that did not set the badges on the menu item views.
Update catalog demo to save and restore states in the bottom navigation demos.

PiperOrigin-RevId: 278436621
2019-11-06 10:14:43 -05:00
leticiars
d07a7f40fb Reenabling text field from demo.
PiperOrigin-RevId: 277797087
2019-11-04 13:02:05 -05:00
xxfast
45bfd96a61 [Slider] Fix slider to invalidate after set value
Resolves https://github.com/material-components/material-components-android/pull/720

GIT_ORIGIN_REV_ID=e1eaf165d734b1c60c05116d200af4ff6f5c583e
PiperOrigin-RevId: 277319683
2019-11-01 13:28:40 -07:00
cketcham
9c19d33906 Add Slider demo to the catalog
PiperOrigin-RevId: 274238050
2019-10-21 10:21:59 -04:00
cketcham
23249ebea7 Fix Slider catalog lint errors
PiperOrigin-RevId: 274231234
2019-10-21 10:20:56 -04:00
ldjesper
60da1489fd Provide users with more control over a11y handling with BottomSheet
Resolves https://github.com/material-components/material-components-android/issues/519

Update the catalog to demonstrate usage

PiperOrigin-RevId: 273757779
2019-10-10 15:51:39 -04:00
hunterstich
7d2f4f58f0 Add BottomAppBar hide on scroll toggle to catalog
PiperOrigin-RevId: 273547176
2019-10-10 15:49:27 -04:00
cketcham
349f91c07b Always draw the Slider's label
Also adds an option to toggle floating the label above the views around the slider, or adding extra height to the slider to keep the label inside the bounds.

PiperOrigin-RevId: 272713986
2019-10-03 15:43:03 -04:00
marianomartin
4d719031e4 Refactor layoutbenchmark to be a test rule
PiperOrigin-RevId: 272512317
2019-10-02 17:08:04 -04:00
marianomartin
55662d0316 Add memory widget that show memory usage in the catalog for Kitkat.
PiperOrigin-RevId: 271991386
2019-10-01 04:06:36 -04:00
Material Design Team
fd13d16292 Support registering multiple BottomSheetCallbacks
PiperOrigin-RevId: 271650665
2019-10-01 03:59:15 -04:00
cketcham
1c926a02ae Remove extra layout from Slider catalog demos
PiperOrigin-RevId: 271624450
2019-09-27 16:03:33 -04:00
hunterstich
4f70ac8955 Update FloatingActionButton to implement the Shapeable interface.
PiperOrigin-RevId: 271566824
2019-09-27 14:06:05 -04:00