Skip to content

Releases: material-components/material-components-android

1.2.0-alpha04

21 Jan 21:21
Compare
Choose a tag to compare

Dependency Updates:

  • No dependency updates.

Library Updates:

  • Slider
    • Added getters and setters of colors (3e212ef)
    • Added option to hide label (9ae1494)
    • Added OnFocusChangeListener (7691797)
    • Removed the invoke of requestDisallowInterceptTouchEvent(false) in ACTION_UP (d864118)
    • Removed unnecessary invalidation if the values haven't changed (e38d260)
    • Fixed halo rendering bug (5f631d4, df61bff)
    • Fixed no OnChangeListener fires when value changed with single click, and setting same values will trigger listener event (9bbcd2d)
    • Fixed crash with NullPointerException when set value before laid out (fa4dc3d)
    • Updated Tooltip dimensions to match spec (2098c0b)
  • SeekBar
    • Added missing functionality from SeekBar regarding touch events and value changes (cde09d4)
  • BottomSheet
    • Allowed collapsed bottom sheet to settle to half expanded state on dragging up (67fc0c9)
    • Added an ability to prevent dragging to expand/collapse (5b4ea9c)
    • Removed existing content during each setContentView (6c1b620)
  • TextField
    • Fixed crash when password is clicked and edit text is not focused in TalkBack mode (8ed0ab7)
    • Fixed outlined text fields not taking into account top padding (bf6ece0)
    • Fixed input text not being disguised by default when setting the end icon mode to password_toggle (e624c02)
    • Fixed expanded label not updating if edit text's size is changed programmatically (ffcb46b)
    • Fixed disabled color set for android:textColorHint not being applied on the label (16024fd)
    • Fixed label misalignment in legacy text fields when there is prefix/suffix (338d326)
  • Chip
    • Added CollectionInfos and CollectionItemInfos to ChipGroup and Chip for accessibility (253cdc2)
    • Fixed RTL padding issue (ba8e18e)
  • Selection
    • Added CollectionInfos and CollectionItemInfos to MaterialButtonToggleGroup and MaterialButton for accessibility (4389a18)
  • ShapableImageView
    • Support more types of Drawables (36426fc)
  • DatePicker
    • Added support to start in MaterialTextInputPicker mode (0e6c21d)
  • TabLayout
    • Fixed crash on autoRefresh disabled mediator (07931b6)
    • Fixed backward compatibility issue (17912e0, 3cd591f)
  • Menu
    • Fixed icons get squeezed for API <=21 (c6a554f)
  • MaterialShapeDrawable
    • Fixed shadow paint not updating color while setting shadow color (9f48006)
  • FAB
    • Added support for enabled/disabled state (94cd734)
  • Shrine
    • Updated deprecated volley dependency (870a732)
  • Catalog
    • Fixed strings text of ImageView (1dfc328)
    • Added new thumbnail for entry in the catalog for List (7b0a41d)

Full set of changes: 1.2.0-alpha03...1.2.0-alpha04

1.1.0-rc02

17 Jan 21:49
Compare
Choose a tag to compare

Dependency Updates:

  • No dependency updates.

Library Updates:

  • TabLayout
    • Updates to listeners to maintain binary compatibility (6c41388, 09d87fe) - Resolves #903
    • Prevent crash for autoRefresh disabled TabLayoutMediator (3e98044) - Resolves #877
  • TextInputLayout
    • Fixing crash happening when password toggle is clicked without the edit text having focus in TalkBack mode (d5b2d81)
  • Snackbar
    • Fix NullPointerException in BaseTransientBottomBar (c6b39c3) - Resolves #917

Full set of changes: 1.1.0-rc01...1.1.0-rc02

1.2.0-alpha03

19 Dec 23:44
Compare
Choose a tag to compare

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
    • Update MaterialShapeDrawable to handle overlapping edge and corners (8ed1484)
    • Enable non convex shadows on Q (bb1e9e4)
  • 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
    • Support tinted chip icons (d25fa92)
    • Support setting textAllCaps in textAppearance xml (e3be6b0)
    • Fix chip text mis-alignment when its width is less than the minimum recommended touch target width (a320475)
  • 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

19 Dec 21:14
Compare
Choose a tag to compare

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

20 Nov 00:04
Compare
Choose a tag to compare

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
    • Add ability to enable/disable bottom inset padding (b9f8ee9) (67491fc)
  • ChipGroup
    • Add support for requiring a selected chip via selectionRequired attr (573efa4)

Full set of changes: 1.2.0-alpha01...1.2.0-alpha02

1.1.0-beta02

07 Nov 20:27
Compare
Choose a tag to compare

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
    • Support orientation VERTICAL in MaterialButtonToggleGroup (beb547b)
    • Fix corners after changing view visibility (8e923bd)
  • Dark Theme
    • Add popupMenuBackground theme attribute and combine light and dark Menu styles (a23557b)
    • Fixed popup menu on action bar (d8868df)
    • Update ElevationOverlayProvider compositeOverlay() to preserve original background color alpha (6a767d7)

Full set of changes: 1.1.0-beta01...1.1.0-beta02

1.2.0-alpha01

21 Oct 18:21
Compare
Choose a tag to compare

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:
    • Move Material-only default component styles from full themes to bridge themes (b1a6256)
    • Expose utility class for supporting materialThemeOverlay in a style (115313c)
  • TextInputLayout:
    • Add support for prefix and suffix text (6e5ddcf) with demo (d1444e2)
  • MaterialButtonToggleGroup:
    • Support VERTICAL orientation (24ab59a)
  • Snackbar:
    • Add support for message text styling via snackbarTextViewStyle attr (b997092)
    • Add support for app:backgroundTint and app:backgroundTintMode (95af724)
    • Respect left/right system window insets (0c8c6f6)
  • TabLayout:
    • Deprecated method setOnTabSelectedListener(OnTabSelectedListener) has been removed. Use addOnTabSelectedListener(OnTabSelectedListener) instead.

Full set of changes: 1.1.0-alpha10...1.2.0-alpha01

1.1.0-beta01

05 Oct 03:39
Compare
Choose a tag to compare

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:

    • Supporting percentage-based relative corners for ShapeAppearanceModel + MaterialShapeDrawable (c831ecc, 53e181b)
  • Date Picker:

  • Badging:

    • Update Badge Gravity values (4f771b2)
  • Bug fixes:

    • Fix Fragment leak in NavigationView (8555310)
    • Fixing ExposedDropdownMenu crash when device is rotated. (0e410d4)
    • Add space to the bitmap for drawing shadows to prevent clipping (99a8bd7)
  • 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 extend LinearLayout (410bc07)
    • Rename setCornerRadius to setAllCornerSizes (a0547c6)
    • TabView class is now public (2966cfb)
    • Support registering multiple BottomSheetCallbacks (00ea72f)
    • Remove content layout from card view (f3bd092)

Full set of changes: 1.1.0-alpha10...1.1.0-beta01

1.1.0-alpha10

05 Sep 22:25
Compare
Choose a tag to compare

Dependency Updates:

  • Updated to androidx.viewpager2:viewpager2:1.0.0-beta03
  • Updated to androidx.core:core:1.1.0-rc03

Library Updates:

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

29 Jul 21:34
Compare
Choose a tag to compare

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)
    • In MaterialCalendar, Switch from Calendar to Long in all cases (dfbb1d0)
    • Add CalendarConstraints Builder (6eb692d)
    • Validate TextInput dates in MaterialDatePicker (e6ee275)
    • Add MaterialDatePicker and CalendarConstraints to the public API (5d58de9)
  • Badge:
    • Add support for configuring badge gravity (0558a36)
  • Bottom Navigation:
    • Do not unconditionally override icon tint in BottomNavigationItemView (c42b77f)
    • Update BottomNavigation to respect bottom system insets (276bec8)
  • Text Field:
    • Adding option to set TextInputLayout icons to be not checkable (6a88f2b)
    • Implementing error icon for text fields (3f73804)
  • Java 7:
    • Switch from DefaultLifecycleObserver to LifecycleEventObserver as the material library will be going to back to compiling to Java 7 (36a86f4)
    • Revert the library to compile with Java 7: revert lambdas, add necessary casts, and make some variables final (a628bf5)
  • 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