355 Commits

Author SHA1 Message Date
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
isabellekim
68d594eedf Updates to catalog card test.
PiperOrigin-RevId: 284965603
2019-12-11 17:08:30 -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
isabellekim
444a16bf2e Update target sdk from 27 to 28 for Material.
PiperOrigin-RevId: 275522338
2019-10-21 10:25:06 -04:00
marianomartin
213d9cd203 Set theme in memory view test
PiperOrigin-RevId: 275312705
2019-10-21 10:23:56 -04: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
059351988d Fix broken build
PiperOrigin-RevId: 272099587
2019-10-01 04:11:54 -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
ldjesper
dc3289849c Update travis ci to force jdk 8 to fix error: Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
PiperOrigin-RevId: 271442687
2019-09-27 14:04:32 -04:00
connieshi
952e40e16d Update bottom app bar demo so that the buttons meet the recommended minimum touch target size.
PiperOrigin-RevId: 271179558
2019-09-26 17:56:45 -04:00
leticiars
d1444e22c4 Adding prefix and suffix demo.
PiperOrigin-RevId: 270342820
2019-09-24 12:21:32 -04:00
cketcham
97ca231d70 Allow the radius of the thumb and halo around the thumb to be set by the style
PiperOrigin-RevId: 268735380
2019-09-18 13:01:22 -04:00
marianomartin
167663ae45 Internal cleanup
PiperOrigin-RevId: 268698913
2019-09-12 14:29:01 -04:00
cketcham
8a26d84ac4 Add initial Slider implementation
PiperOrigin-RevId: 268558997
2019-09-12 14:22:38 -04:00
cketcham
e448ca24e0 Update gradle lint baseline files
PiperOrigin-RevId: 268513443
2019-09-12 14:16:15 -04:00
marianomartin
a4138293df Internal cleanup
PiperOrigin-RevId: 268507643
2019-09-12 14:12:53 -04:00
connieshi
d4d0e7f5e9 Update badge gravity enum values to use Gravity values. Add unit test.
PiperOrigin-RevId: 268485092
2019-09-12 14:09:30 -04:00
ldjesper
801172e401 Update DateValidator JavaDocs in MaterialDatePicker
PiperOrigin-RevId: 268451832
2019-09-12 14:05:41 -04:00
ldjesper
fe56e2ecc7 Allow setting of MaterialDatePicker title via CharSequence plus JavaDoc updates
PiperOrigin-RevId: 268445763
2019-09-12 14:03:01 -04:00
ldjesper
d78d93577f Remove Month from the public API
PiperOrigin-RevId: 268242042
2019-09-12 13:57:19 -04:00
marianomartin
c178633441 Internal cleanup
PiperOrigin-RevId: 268017966
2019-09-12 13:55:18 -04:00
marianomartin
aee272bb41 Fix crash in catalog demos
Resolves https://github.com/material-components/material-components-android/issues/572

PiperOrigin-RevId: 267997380
2019-09-12 13:54:18 -04:00
ldjesper
38e01beb1d MaterialDatePicker forces UTC
PiperOrigin-RevId: 267992416
2019-09-12 13:52:21 -04:00
marianomartin
215a839598 Internal cleanup
PiperOrigin-RevId: 267504117
2019-09-12 13:48:16 -04:00
marianomartin
53d4185ff9 Internal cleanup
PiperOrigin-RevId: 267368841
2019-09-12 13:47:15 -04:00
ldjesper
72d54c653c Change picker package to com.google.android.material.datepicker
PiperOrigin-RevId: 267004501
2019-09-04 18:07:59 -04:00