Skip to content

1.7.0-alpha02

Compare
Choose a tag to compare
@afohrman afohrman released this 25 May 15:18

Important

New minimum requirements for your app project:

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
    • Fix ChipGroup.getCheckedChipIds() returns wrong state (413a047)
    • Migrate M3 chip styles to new shape system. (3fc53ac)
    • Fix chip layout not updated when programmatically setting text size (788866e)
  • Snackbar
    • Fix margins are added multiple times when show() is called (46fa8cc)
    • Add shape theming support and update M3 style to use new shapeAppearanceCornerExtraSmall (a717813)
    • Make dismiss direction the same as swipe direction (5b9f27a)
  • 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
    • Make multi-selection Chips announced as Buttons (d4c2c95)
    • Announce number of items in drawer (b1f7d5b)
    • Fix label for hour/minute EditTexts. (5b78bf4)
  • TimePicker
    • Properly align text vertically in MaterialTimePicker on S+. (703249d)
    • Clean up shape appearance hardcoded in layout files. (269830e)
    • Migrate to new shape system (f302da7)
    • Restore hour/minute selection when switch to text mode (72abed0)
  • BottomSheet
    • Add back accidentally removed setLightStatusBar method and annotate it as deprecated (53086a0)
    • Fix bottom sheet dialog status bar color adjustment (1a91e68)
    • Exposing bottom sheet hide friction with get/set methods. (be1b38c)
    • Migrated shape appearance to new shape system. (921868d)
  • Divider
    • Fixed extra space when lastItemDecorated = false (714521b)
  • Slider
    • Add back deleted tooltip shape appearance (64bdf9e)
    • Updated tooltip shape style to use M3 value. (75af80c)
  • 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
    • Updated active indicator to use new motion system. (1995438)
    • Update active indicator to new shape system. (9a16aa4)
  • 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
    • Migrate to new shape system (91a2550)
    • Hide the keyboard when switching to calendar mode (5d6678c)
  • FloatingActionButton
    • Migrated "Large" styles to use new shape system. (30bb583)
    • Added "Small" styles with new shape system. (acc7569)
    • Updated FAB to use new motion attributes. (934985e)
  • BottomAppBar
    • Add a callback for whenever bottom view hides/unhides through scrolling (21f9b0f)
    • Updated FAB alignment mode slide animation to use new motion attributes. (722756e)
  • Tokens
    • Upgrade resources to v0.95. (c3406dc)
    • Regenerated token resources with type. (a1e8305)
  • Documentation
    • Small fix on divider doc. (13e27a8)
    • Update doc to mention liftOnScrollTargetViewId attr (e523260)
    • Added a note for shape theming. (e74baff)
  • 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)

Full list of changes

1.7.0-alpha01...1.7.0-alpha02