Important
New minimum requirements for your app project:
- Update to Android Gradle Plugin (AGP) version 7.2.0
- Update to Gradle version 7.3.3
- Update to Java 8 (version 1.8)
- Update to Android Studio Chipmunk, version 2021.2.1
What's new
- New
MaterialSwitch
component! (Spec)
Dependency Updates
Dependency | Previous version | New version |
---|---|---|
androidx.appcompat | 1.1.0 | 1.4.0 |
androidx.core | 1.5.0 | 1.6.0 |
androidx.test | 1.1.0 | 1.4.0 |
Android Gradle Plugin (AGP) | 4.0.0 | 7.2.0 |
Gradle | 6.1.1 | 7.3.3 |
Java Version | 1.7 (7) | 1.8 (8) |
Library Updates
Switch
- Create icon style for the new switch design (a3ca744)
- Added token generated resources. (6512092)
- Support tinting thumb & track according to thumb position (3b257c0)
- Add a workaround to get thumb position (72bac61)
- Override switch width set by AppCompat to respect the drawable width (fd40fea)
- Implement track decoration in the new design (1e7bd27)
- Add thumb and track drawables for the new switch design (1414f9e)
- Create a base skeleton of the new MaterialSwitch package/class (b2a3fbe)
Chip
Snackbar
MaterialButton
- Updated M3 button style to add outlined icon button style. Updated catalog to showcase the same. (467a2c9)
- Updated M3 button style to add filled tonal icon button style. Updated catalog to showcase the same. (14578ed)
- Updated M3 button style to add filled icon button style. Updated catalog to showcase the same. (25606cf)
- Always update drawable state when background changed (363e2b1)
- Added materialIconButtonStyle attribute and updated M3 doc to document icon (only) button style and attribute. (402bdf4)
- Migrated shape appearance to new shape system. (1d3bb00)
- Fix the issue that button state is not updated (45b99f6)
Color
- Added DynamicColorsTest. (66581f2)
- Fix Resources Loader bug for color harmonization (78d2c1f)
- Update Dynamic Colors condition (b3a7daf)
- Provide better logging for ColorResourcesTableCreator (29fddaa)
- Refactored ColorHarmonizationDemoFragment to DemoActivity (65e7506)
- Refactored PreferencesActivity to allow configurations on any activity-level preferences/options (dfd8dba)
- Added DynamicColorsTest. (a2507b8)
- Updated color harmonization demo (dc65df3)
- Fix resources being re-harmonized when wrapContextIfAvailable() is used. (f0f07c5)
- Added ColorGrid classes for color harmonization demo. (0347587)
- Add kyocera to dynamic colors allowlist and reorganized based on alphabetical order. (66990a1)
- Fix HarmonizedColorsOptions.Builder#setColorAttributes is marked as nullable (824a12b)
TopAppBar
- Fix copy constructors (382ce9c)
- Add null check for logo ConstantState check (2ac796f)
- Loosen check for scrollable child when adding a11y actions (4b81bb1)
- Fix scrolling for a11y (72228f4)
- Fix collapsing title issue with different fonts (0c341c4)
- Fix margins not applied when collapsed and expanded text size and type face are the same (526ce8c)
- Add setLiftOnScrollTargetView() method (d6c4354)
TextInputLayout
- Add a new custom length counter field and getters/setters to switch how text length is calculated for the counter. (4ded01e)
- Link OnItemSelectedListener of AutoCompleteTextView with the actual drop-down list (2db8b0c)
- Fix hint is not displayed when expanding space is limited (73cb1b6)
- Fix for TextInputLayout leak via AccessibilityManager. (673cefc)
- Centralize icon view state handling logic (ac74bc3)
- Move end icon and content description logic to the layout class (86b512a)
- Centralize accessibility event dispatching logic for drop-downs (d3ab6d7)
- Remove TextInputLayout.getEditText() calls from EndIconDelegates (7b2f924)
- Fix icon ripples go behind the edit text (2c0e42f)
- Move drop-down background and ripple creation to TextInputLayout class (1a42c74)
- Updated shape to use M3 attrs/styles. (0e4e44e)
- Create EndIconDelegate.deactivate() method and remove the relevant listener (a0e8c35)
A11y
TimePicker
BottomSheet
Divider
- Fixed extra space when lastItemDecorated = false (714521b)
Slider
Transitions / Motion
- Update container transform to use new motion system. (f2f454b)
MaterialCardView
- Migrated shape appearance to new shape system. (bfce84a)
CollapsingToolbarLayout
- Allow application to Set ellipsis to Title in CollapsingToolBar (7b043c3)
NavigationRail
- Update active indicator to use new shape system. (f700e6d)
ProgressIndicator
- Fix indeterminate progress indicator not working on API 22 (61cbb8c)
BottomNavigationView
ExposedDropdownMenu
- Added support for default/ripple background colors for the selected item of the exposed dropdown menu when the default MaterialAutoCompleteArrayAdapter is being used. (6206ff5)
MaterialDatePicker
FloatingActionButton
BottomAppBar
Tokens
Documentation
Catalog
- Surround TransitionFragment platform demos with proper sdk int check to fix lint error (265cb86)
- Apply M3 style to bottom sheet in bottom app bar demo. (d25d18d)
- Fix DateValidatorWeekdays description (5549e53)
- Fix DatePicker when the "Last 2 weeks" option is selected (2fa78da)
- Fixed Button demo to use the correct style for Icon Only Button. (83f7a7a)
- Fix the demo image of the DatePicker component (b2c3dd6)
- Fix timeFormat toggle in TimePickerMainDemoFragment (db16763)
Other
- Remove unit test resources from main library source set and refactor the way test resources are configured/accessed (9cd794c)
- Add runtime dependencies to Javadocs classpath to fix failure (188ea55)
- Added constructor with layout ID and update appCompat version (4d4f3cc)
- Migrate M3 NavigationView style to new shape system. (cfeb31a)
- Update date and time picker translation strings (8c775cb)
- Workaround the issue that Context.obtainStyledAttributes() doesn't handle @macro properly (3fa48d4)
- Fix container transform easing mapping. (5b50bf1)
- Update shared axis, fade through, and fade to use new easing and duration system. (e151b7a)
- Update M3 style to use new shapeAppearanceCornerExtraLarge attr (391d2b2)
- Use regular strings instead of @android:string/* which can have translation issues (7109aa4)
- Update library source and target compatibility to Java 8 and add lambda + method reference usage (b62b9a5)
- Update string translations (431e291)
- Added theme attributes and styles for new shape appearances. (6217aa8)