2022-10-26
Activity: v1.6.1
October 24, 2022
androidx.activity:activity:1.6.1, androidx.activity:activity-compose:1.6.1, and androidx.activity:activity-ktx:1.6.1 are released. Version 1.6.1 contains these commits.
Bug Fixes
- Fixed an issue with the
PickMultipleVisualMediaActivity Result contract not launching on Android R devices when using the default value formaxItems. (Ie2776, b/249182130)
Activity: v1.7.0-alpha02
October 24, 2022
androidx.activity:activity:1.7.0-alpha02, androidx.activity:activity-compose:1.7.0-alpha02, and androidx.activity:activity-ktx:1.7.0-alpha02 are released. Version 1.7.0-alpha02 contains these commits.
Bug Fixes
- From Activity
1.6.1: Fixed an issue with thePickMultipleVisualMediaActivity Result contract not launching on Android R devices when using the default value formaxItems. (Ie2776, b/249182130)
Benchmark: v1.2.0-alpha06
October 24, 2022
androidx.benchmark:benchmark-*:1.2.0-alpha06 is released. Version 1.2.0-alpha06 contains these commits.
API Changes
BaselineProfileRuleno longer requires root on Android 13 (API 33), and is no longer experimental. (Ie0a7d, b/250083467, b/253094958)- This change also fixes how profiles from an app are flushed to disk on unrooted devices, but requires updating the target app's profileinstaller dependency.
- To use
BaselineProfileRuleorCompilationMode.Partial(warmupIterations)on an unrooted device, you must also update your target app to useandroidx.profileinstaller.profileinstaller:1.3.0-alpha01. This enables flushing the profile to disk correctly, so that it can be compiled/extracted.
Bug Fixes
- Fixes
SampledProfilingcrash on API 33+. (I40743, b/236109374)
Browser: v1.5.0-alpha01
October 24, 2022
androidx.browser:browser:1.5.0-alpha01 is released. Version 1.5.0-alpha01 contains these commits.
New Features
- Added
CustomTabsIntent.Builder#setInitialActivityHeightPx, which allows developers to specify the initial launch height of a Custom Tab, and optionally the resize behavior (fixed or resizable). (I48bd3) - Added
CustomTabsIntent.Builder#setToolbarCornerRadiusDpwhich allows developers to specify the toolbar's top corner radius. (I48bd3) - Added
CustomTabsIntent.Builder#setCloseButtonPositionwhich allows developers to set the position of the close button on the toolbar. (I48bd3) - Added an
onActivityResizedcallback method to interface CustomTabsCallback to let developers know when a Custom Tab is resized (expanded to full height or minimized back down to initial launch height). (Id99ce) - Populates the current app's language in Accept-Language by default to align to Android’s per-app language experience. (I3d1d7)
API Changes
- Added
@RequiresPermissionto APIs that require granting thePOST_NOTIFICATIONSpermission on SDK 33 and above. This was developed in an internal branch. b/238790278 for reference.
CameraX: v1.2.0-rc01
October 24, 2022
androidx.camera:camera-*:1.2.0-rc01 is released. Version 1.2.0-rc01 contains these commits.
API Changes
- Add
setStreamUseCaseAPI forOutputConfiguration. User can specify the Stream Use Case for the stream session, overrding CameraX's internal logics to choose Stream Use Case in order to optimize according to their need. (Ib1a95)
Bug Fixes
- Fixed Samsung J7 Prime (SM-G610M) and J7 (SM-J710MN)
Preview/VideoCapturestretched issue on API level 27 devices. Resolution 1920x1080 causes thePreview/VideoCaptureimages to be stretched. Added workaround to not select the 1920x1080 resolution for Preview orVideoCaptureto avoid the image stretched problem. (I0e04e) - Fixed low framerate when using
VideoCaptureand Preview use cases with 16:9 aspect ratio on some Huawei devices. (If8c88, b/223643510) - Fixed camera open failure when Preview's
SurfaceProvideris not set. As part of the fix, Preview with noSurfaceProviderset will now not be configured into the camera capture session. (I99681)
Compose Animation: v1.3.0
October 24, 2022
androidx.compose.animation:animation:1.3.0, androidx.compose.animation:animation-core:1.3.0, and androidx.compose.animation:animation-graphics:1.3.0 are released. Version 1.3.0 contains these commits.
Important changes since 1.2.0
- New set of easing functions are made stable
Compose Foundation: v1.3.0
October 24, 2022
androidx.compose.foundation:foundation:1.3.0 and androidx.compose.foundation:foundation-layout:1.3.0 are released. Version 1.3.0 contains these commits.
Important changes since 1.2.0
- Experimental versions of
LazyVerticalStaggeredGridandLazyHorizontalStaggeredGridwere introduced. SnapFlingBehavior,rememberSnapFlingBehaviorand other corresponding APIs were added as experimental.Modifier.clickable,Modifier.toggleable, andModifier.selectablenow show ripples if clicked with the keyboard or d-pad on a remote control.
Compose Material: v1.3.0
October 24, 2022
androidx.compose.material:material-*:1.3.0 is released. Version 1.3.0 contains these commits.
Important changes since 1.2.0
Behavior breaking change
- Maximum supported elevation in dialogs and popups has been reduced to 8dp.
API Changes
- Add a Pull-To-Refresh component to Compose (I29168).
- Change parameter name from values to value in RangeSlider (I3b79a).
Compose Material 3: v1.0.0
October 24, 2022
androidx.compose.material3:material3:1.0.0 and androidx.compose.material3:material3-window-size-class:1.0.0 are released. Version 1.0.0 contains these commits.
Major features of 1.0.0
This is the first stable release of Compose Material 3!
Material Design 3 theming and Material You dynamic color
Material Design 3 components
- Badge
- Bottom App Bar
- Buttons
- FAB and extended FAB
- Cards
- Checkbox
- Chips
- Dialogs
- Divider
- Dropdown Menu
- List
- Navigation bar
- Navigation drawer
- Navigation rail
- Progress Indicator
- Radio Button
- Slider
- Switch
- Tabs
- Text Fields
- Top app bar
- Icon
- Text
- Surface
- Layout
- Content color
Window Size Class
material3-window-size-classis a new library that provides support for window size classes: a set of opinionated viewport breakpoints for you to design, develop, and test resizable application layouts against. You can usecalculateWindowSizeClassto retrieve a window size class instance, which you can use to determine how your UI should appear, such as showing a navigation rail instead of bottom navigation for larger window sizes. For more information and sample usage see the API reference documentation forWindowSizeClass.Please see this blog post for more details!
Compose Runtime: v1.3.0
October 24, 2022
androidx.compose.runtime:runtime-*:1.3.0 is released. Version 1.3.0 contains these commits.
Important changes since 1.2.0
Exception Handling / Live Edit Support
- In order to better support live edit, APIs were added to enable handling of exceptions during composition
- Composition error handling for hot reload
- Handle live edit errors on save/restore
Composition Tracing
- Runtime tracing APIs were added in order to support new composition tracing tooling
- Generate composable trace event start/end calls
- Re-added ComposerKt.traceEventStart(Int, String)
Composable Reflection APIs
- A new
ComposableMethodAPI was added to allow for more reliable reflection-based invocations of composable APIs. - Move invokeComposable to compose runtime
- Rework API to invoke composable method
Runtime Fixes
- Fix faulty range test for slot table checking for markers
- Allow movable content to move into and out of SubcomposeLayout
- Fix moving content to new content of a subcomposition
Snapshot System
- The snapshot system got various improvements around memory management, performance, and correctness.
- Optimize scope removal in SnapshotStateObserver
- Dispose nested snapshots created from transparent snapshots
- Fixed race condition when reading state from the global snapshot
- Support DerivedState in SnapshotStateObserver
- Prevent removing derived state from composition when it is read in other scopes
- Use IdentityArrayMap instead of HashMap inside DerivedState
- Update derived state observers to use mutable vector
- Update SnapshotStateObserver state cleanup
- Replace SnapshotStateObserver.invalidated with ArraySet
- Fixed race condition when reading state from the global snapshot
- Fix use of stale record in DerivedState hash calculation
- Fix race condition when advancing the global snapshot
- Speed up scope observations cleanup in SnapshotStateObserver
Compose UI: v1.3.0
October 24, 2022
androidx.compose.ui:ui-*:1.3.0 is released. Version 1.3.0 contains these commits.
Important changes since 1.2.0
- New experimental API suite
LookaheadLayout(enabling previously impossible animation behaviors) - New experimental API suite
Modifier.Node(higher-performance alternative toModifier.composed) - Improved window insets support.
- Focus support for D-Pads and hardware keyboard in LazyLists.
- Maximum supported elevation in dialogs and popups has been reduced to 8dp (behavior breaking change for some customized design systems – rationale in beta01 release notes)
- Many minor, nonbreaking API improvements
- Many bugfixes and performance improvements
Compose Animation: v1.4.0-alpha01
October 24, 2022
androidx.compose.animation:animation:1.4.0-alpha01, androidx.compose.animation:animation-core:1.4.0-alpha01, and androidx.compose.animation:animation-graphics:1.4.0-alpha01 are released. Version 1.4.0-alpha01 contains these commits.
Bug Fixes
- Fix incorrect interruption animation in AnimatedContent (b/238662479)
Compose Foundation: v1.4.0-alpha01
October 24, 2022
androidx.compose.foundation:foundation:1.4.0-alpha01 and androidx.compose.foundation:foundation-layout:1.4.0-alpha01 are released. Version 1.4.0-alpha01 contains these commits.
API Changes
- A new method,
awaitEachGesture(), for gesture detectors was added. It operates similar toforEachGesture(), but the loop over gestures operates entirely within theAwaitPointerEventScopeso events can't be lost between iterations. forEachGesture()has been deprecated in favor ofawaitEachGesture()because it allows events to be lost between gestures. (Iffc3f, b/251260206)- Added
WindowInsets.imeAnimationSource andWindowInsets.imeAnimationTargetto determine the animation progress and know where the IME will be after animation completes. (I356f1, b/217770337)
Compose Material: v1.4.0-alpha01
October 24, 2022
androidx.compose.material:material-*:1.4.0-alpha01 is released. Version 1.4.0-alpha01 contains these commits.
API Changes
- A new method,
awaitEachGesture(), for gesture detectors was added. It operates similar toforEachGesture(), but the loop over gestures operates entirely within theAwaitPointerEventScopeso events can't be lost between iterations. forEachGesture()has been deprecated in favor ofawaitEachGesture()because it allows events to be lost between gestures. (Iffc3f, b/251260206)
Compose Material 3: v1.1.0-alpha01
October 24, 2022
androidx.compose.material3:material3:1.1.0-alpha01 and androidx.compose.material3:material3-window-size-class:1.1.0-alpha01 are released. Version 1.1.0-alpha01 contains these commits.
Bug Fixes
- Fixes to the top app bar when title is applied with a TextStyle and a Brush. (If667e)
Compose Runtime: v1.4.0-alpha01
October 24, 2022
androidx.compose.runtime:runtime-*:1.4.0-alpha01 is released. Version 1.4.0-alpha01 contains these commits.
API Changes
SnapshotStateListandSnapshotStateMapnow have explicit implementaions oftoList()andtoMap(), respectfully. These methods return their current content without peforming a copy as they return the internal immutable data used to store their content. This value can be used, for example, to produce a flow of values usingsnapshotFlowwithout requiring copying of the data. (Ica2bd)
Compose UI: v1.4.0-alpha01
October 24, 2022
androidx.compose.ui:ui-*:1.4.0-alpha01 is released. Version 1.4.0-alpha01 contains these commits.
API Changes
- A new method,
awaitEachGesture(), for gesture detectors was added. It operates similar toforEachGesture(), but the loop over gestures operates entirely within theAwaitPointerEventScopeso events can't be lost between iterations. forEachGesture()has been deprecated in favor ofawaitEachGesture()because it allows events to be lost between gestures. (Iffc3f, b/251260206)- Deprecating recycling of acccessibility objects in androidx. We've found performance changes to be negligible in even the oldest supported versions. (I0a961)
- Added
DrawStyleas an Experimental attribute toTextStyleandSpanStyleto enable drawing outlined text. (If24b8, b/155421273) AnnotatedString.Buildernow implementskotlin.text.Appendable. (I1a061, b/231030444)AnnotatedString.Buildernow has anappend(AnnotatedString, start: Int, end: Int)method to append a substring of anAnnotatedStringand the intersecting styles.- Added
DrawStyleparameter toParagraphandMultiParagraphpaint functions that enables drawing outlined text. (Ic8102, b/155421273)
External Contribution
- Thanks for
vighneshfor adding TV Devices to Previews (Ie15cd)
Core Google Shortcuts: v1.1.0
October 24, 2022
androidx.core:core-google-shortcuts:1.1.0 is released. Version 1.1.0 contains these commits.
Important changes since 1.0.0
- Migrated from using
com.google.firebase:firebase-appindexingto the newcom.google.android.gms:play-services-appindexlibrary. This version of the library is not compatible withcom.google.firebase:firebase-appindexing. Developers should avoid using both libraries to avoid build errors.
Exifinterface: v1.3.5
October 24, 2022
androidx.exifinterface:exifinterface:1.3.5 is released. Version 1.3.5 contains these commits.
Bug Fixes
- Fix two cases of
saveAttributes()producing invalid WebP files.
Fragment: v1.5.4
October 24, 2022
androidx.fragment:fragment:1.5.4, androidx.fragment:fragment-ktx:1.5.4, and androidx.fragment:fragment-testing:1.5.4 are released. Version 1.5.4 contains these commits.
Bug Fixes
- Fixed an error where using a custom
FragmentControllerwith a host that does not implement a provider callback interface (OnConfigurationChangedProvider,OnMultiWindowModeChangedProvider,OnTrimMemoryProvider,OnPictureInPictureModeChangedProvider) and calling its deprecated dispatch function would fail to dispatch to child fragments. (I9b380)
graphics: v1.0.0-alpha01
October 24, 2022
androidx.graphics:graphics-core:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.
New Features
- Initial release of the graphics core AndroidX library. This includes APIs to support low latency use cases such as stylus input. This also introduces some helper APIs for OpenGL usage.
API Changes
- Introduces
GLFrontBufferedRendererto assist in front and multi-buffered rendering to achieve both low latency and high quality rendering output. - Introduces
GLRendererAPI to assist in OpenGL rendering for various Surface providers such asSurfaceView,TextureViewand others.
Health Services Client: v1.0.0-beta01
October 24, 2022
androidx.health:health-services-client:1.0.0-beta01 is released. Version 1.0.0-beta01 contains these commits.
New Features
Added the ability to listen for health events through
PassiveMonitoringClientwith the first event being:HealthEvent.FALL_DETECTED.New ExerciseTypes:
ALPINE_SKIINGBACKPACKINGCROSS_COUNTRY_SKIINGHORSE_RIDINGINLINE_SKATINGMOUNTAIN_BIKINGORIENTEERINGROLLER_SKATINGYACHTING
New DataTypes:
ELEVATION_LOSSGOLF_SHOT_COUNT
API Changes
- Updated how data is modeled: the data model and how
DataTypes,DataPoints, and their underlying values are represented have been overhauled. The top level impact is that APIs are now much more explicit and type safe. - Location
DataPoints are no longer represented as aDoubleArray, but instead as a strongly-typedLocationDataobject. - Moved to a new set of passive listener APIs:
- The broadcast was replaced by the
PassiveListenerService. - The existing listeners were replaced with a single listener:
PassiveListenerCallback.
- The broadcast was replaced by the
- Added
<queries>tag to Health Services manifest so that applications no longer need to specify this in their own manifest (provided manifest merger is turned on in their build system.) - Moved away from many
ExerciseStates to represent the exercise is ending / ended and added new exercise statesENDINGandENDED. These are now combined withExerciseEndReasonto represent the full gamut of previous states. - Renamed
PassiveListenerConfigsetPassiveGoalstosetDailyGoalsto better reflect we only support daily passive goals. PassiveGoals now alwaysREPEATED, passiveTriggerFrequencyremoved.- Annotated all
LongandDoubleparameters with@FloatRange. - Added
swimmingPoolLengthMetersproperty toExerciseConfigwhich may be optionally specified to improve distance calculations for pool swims. - Deprecated
ExerciseUpdate.activeDuration. UseExerciseUpdate.activeDurationCheckpointinstead. - Renamed the API
flushExerciseAsync()toflushAsync()inExerciseClient. Measure.registerCallbackrenamed toMeasure.registerMeasureCallback.- General naming changes:
- Distance properties now have
meterssuffix. - Callback method names are now past tense.
- Most abbreviations have been removed (
HrAccuracyis nowHeartRateAccuracy.) - Properties following the pattern
enableFooare now namedisFooEnabled.
- Distance properties now have
- Migrated away from Enums.
- Times represented by
Doubleare now represented byDuration. - Functions returning a
ListenableFuture<Void?>now return aListenableFuture<Void>. - Functions that accept a callback now always have the callback appear as the last parameter.
- Classes with builders now always also have public constructors.
- Registration functions no longer return a
ListenableFutureand instead pass registration status to the provided callback. - KDocs have now been improved.
- Public classes no longer extend
ProtoParcelable.
Bug Fixes
- General improvements to IPC reliability (I3b1e2)
Health Connect: v1.0.0-alpha07
October 24, 2022
androidx.health.connect:connect-client:1.0.0-alpha07 is released. Version 1.0.0-alpha07 contains these commits.
API Changes
- Record arguments without default values are placed before arguments with default values. For consistency,
InstantandZoneOffsetarguments are always placed at the very beginning. (Id618c) - Rename
HealthConnectClient.getOrCreate#packageNamestoproviderPackageNames. (Id81e4)
Bug Fixes
- Adds Record field value validations. Extremely wrong values will throw
IllegalArgumentExceptionswhen provided value is out of reasonable bounds. (Ie171d) - Validates record start time before end time where relevant. (I02460)
input: v1.0.0-alpha01
October 24, 2022
androidx.input:input-motionprediction:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.
New Features
- Initial release of the input prediction AndroidX library. This includes an API to reduce the perceived latency of input interactions by predicting future motion events.
API Changes
- Introduces
MotionEventPredictor, a utility that provides predicted motion events based on the previously received ones.
Lifecycle: v2.6.0-alpha03
October 24, 2022
androidx.lifecycle:lifecycle-*:2.6.0-alpha03 is released. Version 2.6.0-alpha03 contains these commits.
Bug Fixes
- Fixed an issue with constraints between different Lifecycle modules not working as intended. (I18d0d, b/249686765)
- Errors thrown by
LifecycleRegistry.moveToState()now include a more helpful error messaging that informs developers of the component causing the error. (Idf4b2, b/244910446)
Navigation: v2.5.3
October 24, 2022
androidx.navigation:navigation-*:2.5.3 is released. Version 2.5.3 contains these commits.
Bug Fixes
NavHostwill no longer cause aNoSuchElementExceptionwhen there is no destination available for theCrossfadeto compose. It will now just skip the composition. (Ieb46e, b/253299416)- Fixed an issue where saved Compose state (e.g., usages of
rememberSaveable) were not being forgotten and removed when a destination was popped off the back stack. (I64949)
Navigation: v2.6.0-alpha03
October 24, 2022
androidx.navigation:navigation-*:2.6.0-alpha03 is released. Version 2.6.0-alpha03 contains these commits.
Bug Fixes
- From Navigation
2.5.3:NavHostwill no longer cause aNoSuchElementExceptionwhen there is no destination available for theCrossfadeto compose. It will now just skip the composition. (Ieb46e, b/253299416) - From Navigation
2.5.3: Fixed an issue where saved Compose state (e.g., usages ofrememberSaveable) were not being forgotten and removed when a destination was popped off the back stack. (I64949)
Dependency Updates
- Navigation now depends on Fragment
1.5.4. (Icd424)
Paging: v3.2.0-alpha03
October 24, 2022
androidx.paging:paging-*:3.2.0-alpha03 is released. Version 3.2.0-alpha03 contains these commits.
Paging Testing
This release contains a new artifact: paging-testing. This artifact provides APIs designed around unit testing each layer of your app and its integration with Paging in isolation.
For example, this first release includes a TestPager class that allows you to validate the behavior of your own custom PagingSource implementation independently from the Pager and real UI you would normally need to simulate the end-to-end Paging integration.
TestPager should be considered a fake - a test double that mirrors the real implementation of Pager while providing a simplified API surface for testing a PagingSource. These APIs are suspend APIs and should be run within runTest as outlined in the guide for Testing Kotlin coroutines on Android.
An example of these APIs in use can be found in the room-paging tests, which were refactored to use TestPager.
API Changes
- Enables convenient iteration over
LoadResult.Page.datathroughLoadResult.Page.iterator(). This indirectly allows the usage of the Kotlin standard libraryflattenmethod when given aList<LoadResult.Page>such as with thepagesproperty ofPagingStatethat is passed to thePagingSource.getRefreshKeymethod. (Ie0718)
Paging Compose: v1.0.0-alpha17
October 24, 2022
androidx.paging:paging-compose:1.0.0-alpha17 is released. Version 1.0.0-alpha17 contains these commits.
New Features
- Add support for a custom
CoroutineContextwhen callingcollectLazyPagingItems. (I7a574, b/243182795, b/233783862)
ProfileInstaller: v1.3.0-alpha01
October 24, 2022
androidx.profileinstaller:profileinstaller:1.3.0-alpha01 is released. Version 1.3.0-alpha01 contains these commits.
API Changes
- Added
ProfileVerifierapi to check from within the app if a baseline profile has been compiled, scheduled, or is missing (I263a4, b/246653809) - Adds a new shell broadcast that enables Macrobenchmark to fully flush in-memory profile data to disk, to be included in baseline profile generation. This is required to use the macrobenchmark library to capture baseline profiles with
BaselineProfileRule, and evaluate profile performance usingCompilationMode.Partial(warmupIterations). (Ie0a7d, b/250083467, b/253094958)
Tracing Perfetto: v1.0.0-alpha06
October 24, 2022
androidx.tracing:tracing-perfetto:1.0.0-alpha06, androidx.tracing:tracing-perfetto-binary:1.0.0-alpha06, and androidx.tracing:tracing-perfetto-common:1.0.0-alpha06 are released. Version 1.0.0-alpha06 contains these commits.
- This update includes no changes, just updating version number to sync with androidx.benchmark.
Wear Compose: v1.1.0-beta01
October 24, 2022
androidx.wear.compose:compose-foundation:1.1.0-beta01, androidx.wear.compose:compose-material:1.1.0-beta01, and androidx.wear.compose:compose-navigation:1.1.0-beta01 are released. Version 1.1.0-beta01 contains these commits.
What’s in Compose for Wear OS 1.1
The 1.1.0-beta01 of Compose for Wear OS indicated that this release of the library is feature complete and the API locked.
- Wear Compose 1.1 release includes the following new functionality:
- Picker - Accessibility improvements to Picker so that multi-picker screens are navigable with screen readers and the content description is accessible
- Picker
contentDescriptionparameter is now used only for the selected Picker option and takes a nullable String (in the previous commit, it was necessary to pass a mapping from option to the content description, but only the selected option was used). - Picker items are now always center-aligned, fixing a bug when setting
gradientRatioto zero had the side-effect of changing the alignment. Chip/ToggleChip- We have updated the default gradients forChip/ToggleChipto bring them in line with the latest UX spec.ChipDefaults.gradientBackgroundChipColorshas been updated to start from 50% of primary rather than 32.5%.Chip/ToggleChip- Added overloads for modifying Chip shapesChip/Button/ToggleButton- Added a new outlined style for Chips and Buttons and newOutlinedChipandOutlinedButtoncomposables that provide a transparentChip/Buttonwith a thin border.- Card - Updated the default gradients for Cards to bring them in line with the latest UX spec.
CardDefaults.cardBackgroundPainterhas been updated to start from 30% of primary and end at 20% ofonSurfaceVariant(was previously 20% to 10%onSurfaceVariant).ToggleChip.toggleChipColorschanges from a linear gradient of 75% surface to 32.5% primary to 0% surface to 50% primary. Button/ToggleButton- Added properties for modifying button shapes.- Theme - Updated a number of the default colors in the
MaterialThemein order to improve accessibility as the original colors did not have sufficient contrast resulting in difficulties for users to differentiate chip/card/button backgrounds from the theme background color. InlineSlider/Stepper- Button roles added so thatTalkbackcan recognise them as buttons.- Scaffold -
PositionIndicatornow is positioned and sized so that it only takes the space needed. This is useful, for example, if semantic information is added to it, talkback now gets the correct bounds of thePositionIndicatoron screen. CurvedText/TimeText- AddedModifier.scrollAway, which scrolls an item vertically in/out of view, based on scroll state (with overloads to work withColumn,LazyColumnandScalingLazyColumn).ScrollAwayis typically used to scroll aTimeTextout of view as the user starts to scroll a list of items upwards.CurvedText/TimeText- Added support forfontFamily,fontStyleandfontSynthesisinCurvedTextStyle, usable oncurvedTextandbasicCurvedTextCurvedText/TimeText- AddedfontWeightto the constructor and copy method onCurvedTextStyleToggleControls- Added animatedCheckbox,SwitchandRadioButtontoggle controls for use withToggleChipandSplitToggleChip. These can be used instead of the static icons provided byToggleChipDefaults(switchIcon,checkboxIconandradioIcon).- Placeholder - Added experimental placeholder support. This has three distinct visual effects designed to work together.
- Firstly a placeholder background brush effect used in containers such as Chip and Cards to draw over the normal background when waiting for content to load.
- Secondly a modifier (
Modifier.placeholder()) to draw a stadium shaped placeholder widget over the top of content that is being loaded. - Thirdly a modifier gradient/shimmer effect (
Modifier.placeholderShimmer()) that is drawn over the top of the other effects to indicate to users that we are waiting for data to load.- All of these effects are designed to be coordinated and shimmer and wipe-off in an orchestrated fashion.
- Core Compose dependencies updated from 1.2 to 1.3
API Changes
- Font parameters (
fontFamily,fontWeight,fontStyle&fontSynthesis) can now be specified directly as parameters ofcurvedText(Idc422)
Bug Fixes
curveTextandbasicCurvedTextwill now work properly with talkback (the have a properly sized and placed (but empty) compose-ui node associated with them, using the text as content description) (I7af7c, b/210721259)- Bug fix to the
PickerwhenPickerState.repeatedItems = falseto add an explicit setting of autoCentering params on the Pickers internalScalingLazyColumnto ensure that it is possible to scroll the zero'th option to the center of the view. (I8a4d7)
Webkit: v1.6.0-alpha02
October 24, 2022
androidx.webkit:webkit:1.6.0-alpha02 is released. Version 1.6.0-alpha02 contains these commits.
New Features
- Adds a new
CookieManagerCompatclass along with agetCookieInfoAPI which retrieves all attributes for all cookies set on a specific URL. This differs from the existinggetCookieAPI inCookieManagerwhich returns only the name and value attributes of the cookies. (I07365, b/242161756)