Releases: material-components/material-components-android
1.1.0-rc02
Dependency Updates:
- No dependency updates.
Library Updates:
TabLayout
TextInputLayout
- Fixing crash happening when password toggle is clicked without the edit text having focus in TalkBack mode (d5b2d81)
Snackbar
Full set of changes: 1.1.0-rc01...1.1.0-rc02
1.2.0-alpha03
Dependency Updates:
Dependency | Previous version | New version |
---|---|---|
annotation-experimental | N/A | 1.0.0 |
coordinatorlayout | 1.1.0-rc01 | 1.1.0 |
viewpager2 | 1.0.0-rc01 | 1.0.0 |
Library Updates:
Slider
- Add OffsetEdgeTreatment (5f4a139)
- Initial implementation of TooltipDrawable (a282afe, c421319)
- Update Slider to use TooltipDrawable (5d1a369)
- Fix issue where you cannot set stepSize < 1.0 (58190de)
- Remove the requirement to setClipChildren false on the parent of Slider (df94cd1)
- Add option to set the track height of the Slider (fe160f3)
- Rename Slider forceDrawCompatShadow to be forceDrawCompatHalo (6adbcc2)
- Draw the halo color instead of the thumb color for the compat halo for Slider (b1816e1)
- Recalculate Slider ticks when the step size changes (1723dd4)
- Rename slider tick and track color attributes to keep them together when sorted alphabetically (921d392)
- Fix height of Slider when floating label is false (dc17035)
- Update the radius of the Slider RippleDrawable (b2deaa3)
- Fixed behaviour when Slider is in a scrolling container (a7da96f)
ShapeableImageView
MaterialButtonToggleGroup
- Add selection required option to MaterialButtonToggleGroup (a4b9032)
MaterialShapeDrawable
TextInputLayout
- Accessibility improvements for hint, error, and helper text (29f3d05, 6849bae, b78be8d, 11c57ab)
- Adding onInitializeAccessibilityNodeInfo override in TextInputEditText (6efedee)
- Limiting helper/error view width so that counter view doesn't get pushed out (eabbfa2)
- Add support for placeholder text in TextInputLayout (201ec62)
- Fixing cutout not working with CENTER_HORIZONTAL (9dcb121)
- Pan window so that keyboard doesn't hide helper/error views (2084fd3)
MaterialCardView
- Disable MaterialCardView bitmap drawing (781e79f)
Chip
BottomAppBar
- Handle horizontal system insets for BottomAppBar (6405635)
- Proguard
- Use conditional keep rule for MaterialComponentsViewInflater (d7a5dc8)
Full set of changes: 1.2.0-alpha02...1.2.0-alpha03
1.1.0-rc01
Dependency Updates:
Dependency | Previous version | New version |
---|---|---|
coordinatorlayout | 1.1.0-rc01 | 1.1.0 |
viewpager2 | 1.0.0-rc01 | 1.0.0 |
Library Updates:
MaterialDatePicker
- Separate date format string from date hint string in MaterialDatePicker for better hints (cc1cfd7)
- Include separator characters for Samsung devices in MaterialDatePicker (945a220)
- Fixed MaterialDatePicker todayInUtcMilliseconds method (ff5993d)
- Fixed getDayCopy utility function in UtcDates for DatePicker (88a67b0)
- Update MaterialDatePicker to read colorSurface from correct context (267e299)
BottomSheetBehavior
- Update BottomSheet to have a singular SettleRunnable (6178e71)
FloatingActionButton
- Add workaround to prevent FloatingActionButton crash on API 26 (a718fd1)
AppBarLayout
- Fix AppBarLayout statusBarForeground issue where status bar drawable is drawn behind content (1a31ddc)
Snackbar
- Update Snackbar gesture inset calculation to factor in translationY (904d063)
Full set of changes: 1.1.0-beta02...1.1.0-rc01
1.2.0-alpha02
Dependency Updates:
Dependency | Previous version | New version |
---|---|---|
coordinatorlayout | 1.1.0-beta01 | 1.1.0-rc01 |
viewpager2 | 1.0.0-beta05 | 1.0.0-rc01 |
Library Updates:
- Accessibility updates and documentation improvements.
BadgeDrawable
- Add support for vertical & horizontal offset (632675e)
BottomAppBar
ChipGroup
- Add support for requiring a selected chip via
selectionRequired
attr (573efa4)
- Add support for requiring a selected chip via
Full set of changes: 1.2.0-alpha01...1.2.0-alpha02
1.1.0-beta02
Dependency Updates:
Dependency | Previous version | New version |
---|---|---|
coordinatorlayout | 1.1.0-beta01 | 1.1.0-rc01 |
transition | 1.0.1 | 1.2.0 |
viewpager2 | 1.0.0-beta04 | 1.0.0-rc01 |
Library Updates:
- Fix FAB placement relative to the BottomAppBar when system insets change (8d8a7a7)
- Error icon should only be visible if error is enabled (195b176)
- MaterialButtonToggleGroup
- Dark Theme
Full set of changes: 1.1.0-beta01...1.1.0-beta02
1.2.0-alpha01
Dependency Updates:
Dependency | Previous version | New version |
---|---|---|
appcompat | 1.1.0-rc01 | 1.1.0 |
core | 1.1.0-rc03 | 1.1.0 |
transition | 1.0.1 | 1.2.0 |
vectordrawable | 1.1.0-rc01 | 1.1.0 |
viewpager2 | 1.0.0-beta03 | 1.0.0-beta05 |
Library Updates:
- New
Slider
component! - Theming:
TextInputLayout
:MaterialButtonToggleGroup
:- Support
VERTICAL
orientation (24ab59a)
- Support
Snackbar
:TabLayout
:- Deprecated method
setOnTabSelectedListener(OnTabSelectedListener)
has been removed. UseaddOnTabSelectedListener(OnTabSelectedListener)
instead.
- Deprecated method
Full set of changes: 1.1.0-alpha10...1.2.0-alpha01
1.1.0-beta01
Dependency Updates:
Dependency | Previous version | New version |
---|---|---|
appcompat | 1.1.0-rc01 | 1.1.0 |
core | 1.1.0-rc03 | 1.1.0 |
vectordrawable | 1.1.0-rc01 | 1.1.0 |
viewpager2 | 1.0.0-beta03 | 1.0.0-beta04 |
Library Updates:
-
Shape System:
-
Date Picker:
-
Badging:
- Update Badge Gravity values (4f771b2)
-
Bug fixes:
-
API changes:
- Update naming of
Snackbar
gesture inset ignore flag (d7b0a82) - Fix binary compatibility issues with MaterialShapeDrawable (8410a88)
- Update Corner Size for builder to use floats (b8da637)
- Change
MaterialButtonToggleGroup
to extendLinearLayout
(410bc07) - Rename
setCornerRadius
tosetAllCornerSizes
(a0547c6) TabView
class is now public (2966cfb)- Support registering multiple BottomSheetCallbacks (00ea72f)
- Remove content layout from card view (f3bd092)
- Update naming of
Full set of changes: 1.1.0-alpha10...1.1.0-beta01
1.1.0-alpha10
Dependency Updates:
- Updated to
androidx.viewpager2:viewpager2:1.0.0-beta03
- Updated to
androidx.core:core:1.1.0-rc03
Library Updates:
- Date Picker:
- Change picker package to
com.google.android.material.datepicker
(72d54c6) - Allow an initial selection for
MaterialDatePicker
(4277809) - Set elevation for
MaterialDatePicker
dark mode (6bd22d7) - Accessibility improvements for date picker (fc195cf, 3da7ddc)
- Fix keyboard navigation in
MaterialDatePicker
(6050541) - Migrate
MaterialCalendar
fromViewPager2
toRecyclerView
(135df4e)
- Change picker package to
- Text Field:
- Shape:
- Add builder to
ShapeAppearanceModel
(ca91442) - Update usages of
ShapeAppearanceModel
to useBuilder
pattern (1f1871f) - Make
ShapeAppearanceModel
immutable (27b58f1) - Remove unnecessary calls to set compound drawables in
MaterialButton
(cfeecaa) - Make cornerSize a private field in
CornerTreatment
s (f52407e) - Fix inconsistent material shape animations in bottom sheet (ac9ca51)
- Add builder to
- Miscellaneous:
- Fix bug in which chip dropped
state_pressed
andstate_focused
(d60fb3f) - Refactor Extended FAB to simplify its API (58d2085)
- Rename
TabLayoutMediator.OnConfigureTabCallback
toTabLayoutMediator. TabConfigurationStrategy
(94d2928) - Add @nonnull and @nullable annotations (c60fbda, 4b1aa74, cdd41a2, cb16746, 9d9909a, df1ca82, adcfec5, 101d757, fd8fc1d, 530f367, 81e708e, 08a26c9, 3c4c77d, 9fff60d, 244650f, 0f51986, 06342a1, 12d2132, 101d757, 2e0fd6d, 06b1501, 3021dc0, 9dc2591, 1068e10, 499261b, etc.)
- Fix bug in which chip dropped
Catalog Updates:
- Add button to switch the Catalog app in and out of edge to edge mode (4e78a59)
- Update base Catalog demo activities and fragments to support edge to edge (4118b91, 825531b, 5f6930e)
- Update Bottom App Bar demo in the Catalog app to support edge to edge (6b664ad, 1493fcd)
- Update
TabsControllableDemoFragment
to support small screen, landscape and edge to edge with transparent status and navigation bars on Q (ba3d790) - Fix FAB demos in edge to edge (0396311)
- Fix invisible status bar icons against the white status bar and invisible navigation bar icons in edge to edge for API 27 (64e6fd4)
Full set of changes: 1.1.0-alpha09...1.1.0-alpha10
1.1.0-alpha09
Dependency Updates:
- Updated to
androidx.viewpager2:viewpager2:1.0.0-beta02
- Removed
androidx.legacy:legacy-support-core-ui:1.0.0
- Removed
androidx.legacy:legacy-support-core-utils:1.0.0
- Java 7: This release compiles with Java 7, a revert from
1.1.0-alpha08
which compiled with Java 8.
Library Updates:
- Date Pickers are now available for early access! (APIs are still subject to change)
- Badge:
- Add support for configuring badge gravity (0558a36)
- Bottom Navigation:
- Text Field:
- Java 7:
- Public API Cleanup (52ebd29, 5a20fb0, ec856cd, 949e644, bfcaf43, 7241e71, cb2ba97, 1876bc5, 896e432)
- Fix for SwipeDismissBehavior (b4c21e7)
Catalog Updates:
- Fix BottomNavigation demo crash on pre API 21 devices by enabling AppCompatDelegate#setCompatVectorFromResourcesEnabled (ca9d11d)
- In Bottom Navigation catalog demo, ensure that the badge on the first menu item is visible (195ca81)
- Add catalog demo for SwipeDismissBehavior (3e42b07)
- Update Tabs demo in catalog app to support configuring badge gravity (87f9e53)
- Update Catalog Button demo to use CoordinatorLayout, which enables Snackbar swipe to dismiss behavior (dc69263)
Full set of changes: 1.1.0-alpha08...1.1.0-alpha09
1.1.0-alpha08
This release compiles with Java 8. We are planning for our 1.1.0-alpha09 to go back to compiling with Java 7. If you can't update your app to compile with Java 8, we recommend staying with 1.1.0-alpha07 until 1.1.0-alpha09 is available.
Dependency Updates:
- com.google.truth:truth:0.45
- androidx.viewpager2:viewpager2:1.0.0-alpha05
- androidx.lifecycle:lifecycle-runtime:2.0.0
- androidx.lifecycle:lifecycle-compiler:2.0.0
- androidx.appcompat:appcompat:1.1.0-rc01
- androidx.coordinatorlayout:coordinatorlayout:1.1.0-beta01
- androidx.core:core:1.1.0-rc02
- androidx.vectordrawable:vectordrawable:1.1.0-rc01
- Java 8
- Android Gradle Plugin (AGP) 3.3.2
- Gradle 4.10.1
- compileSdkVersion Q
Library Updates:
- Dark Theme updates:
- Badge API changes (ccc4890, b398023, b09336e, 63fed94, 6aab297)
- Chip: publicly expose ChipGroup#setSingleLine (6589e54), fix Chip getText doesn't work when setShouldDrawText is true (8c0f6f7), and support state_checkable (bee3793)
- Change ripples on MaterialButton and Chip to use the alphas provided in the ColorStateList. (1f4ea84, 36b760d, b857c79)
- MaterialButtonToggleGroup - Add uncheck(int id) API for unchecking single button to MaterialButtonToggleGroup (cda68ed)
- TextInputLayout: fixed passwordToggleEnabled="false" behavior (16a6e72), only make filled text field hint vertically centered if edit text's min lines is 1. (34e9ab2), accessibility improvements (2ec8717), adjustments to start/end icons (4130215, 15b721c), and animate clear button icon (b89a91c)
- Exposed Dropdown Menu: some accessibility and focus improvements (cb5430e) and animate dropdown icon (326dc8a)
- Added auto-inflated MaterialTextView which looks at the lineHeight set in the textAppearance. In order to disable this, set textAppearanceLineHeightEnabled = false in your theme. (12024f6, d7a9248)
- Fix FAB insets when anchored to BAB (c6c4ec4)
- Make BottomAppBar respect insets for Android Q Edge to Edge support (1aa7125)
- Delegate overscrollmode in navigation view to inflated MenuView (19aeb9b)
- Fix [MaterialCardView] checked icon sometimes takes up the entire card (59a4185)
- Change snackbar duration timeout (469c126)
- Update AppBarLayout lift on scroll finding of liftOnScrollTargetViewId to be based on nested scrolling view instead of Activity when possible (3b7e1b4)
- Add tooltip fallback to Bottom Navigation item titles (c045cca)
- Add neutral palette colors to Theme Overlays (591ba96)
- Added animator getter to MotionSpec that supports a non-view target (8e6cd13)
- Expose CircularRevealHelper.Delegate (d37303e) and ShapeAppearancePathProvider (1c5df57)
Full set of changes: 1.1.0-alpha07...1.1.0-alpha08