Core
androidx.core.animation
androidx.core.app
androidx.core.content
androidx.core.role
androidx.core.view
(See the refdocs for all core packages)
This table lists all the artifacts in the androidx.core
group.
Artifact | Current Stable Release | Next Release Candidate | Beta Release | Alpha Release |
---|---|---|---|---|
core | 1.3.2 | 1.5.0-rc01 | - | 1.6.0-alpha01 |
core-animation | - | - | - | 1.0.0-alpha02 |
core-role | 1.0.0 | - | - | 1.1.0-alpha01 |
Declaring dependencies
To add a dependency on Core, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle
file for
your app or module:
dependencies { def core_version = "1.3.2" // Java language implementation implementation "androidx.core:core:$core_version" // Kotlin implementation "androidx.core:core-ktx:$core_version" // To use RoleManagerCompat implementation "androidx.core:core-role:1.0.0" // To use the Animator APIs implementation "androidx.core:core-animation:1.0.0-alpha02" // To test the Animator APIs androidTestImplementation "androidx.core:core-animation-testing:1.0.0-alpha02" }
For more information about dependencies, see Add Build Dependencies.
Feedback
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
Core and Core-ktx Version 1.6.0
Version 1.6.0-alpha01
March 24, 2021
androidx.core:core:1.6.0-alpha01
and androidx.core:core-ktx:1.6.0-alpha01
are released. Version 1.6.0-alpha01 contains these commits.
API Changes
- Adds
Handler.hasCallbacks()
method for parity with platform SDK (Idce1c, b/113855676) - Adds capability related setter methods to
ShortcutInfoCompat.Builder
(I45af6)
Core and Core-ktx Version 1.5.0
Version 1.5.0-rc01
March 24, 2021
androidx.core:core:1.5.0-rc01
and androidx.core:core-ktx:1.5.0-rc01
are released. Version 1.5.0-rc01 contains these commits.
Summary
- No changes from previous beta03
Version 1.5.0-beta03
March 10, 2021
androidx.core:core:1.5.0-beta03
and androidx.core:core-ktx:1.5.0-beta03
are released. Version 1.5.0-beta03 contains these commits.
API Changes
- Added ExecutorCompat, which creates an Executor from a Handler. (Ib4ca3, b/181237835)
Version 1.5.0-beta02
February 24, 2021
androidx.core:core:1.5.0-beta02
and androidx.core:core-ktx:1.5.0-beta02
are released. Version 1.5.0-beta02 contains these commits.
Bug Fixes
- Deprecated
ModeCompat.isNative
which is replaced byDisplayCompat.getMode
. (Iefa71) NotificationCompat.MessagingStyle.getText()
was incorrectly marked as@NonNull
; it is now@Nullable
(I05cb7)
Version 1.5.0-beta01
January 13, 2021
androidx.core:core:1.5.0-beta01
and androidx.core:core-ktx:1.5.0-beta01
are released. Version 1.5.0-beta01 contains these commits.
API Changes
- Follow API guidelines for Bounds Compat/Platform interoperability (I7da35)
- Integrated drag-and-drop (drop events) in AppCompatEditText with OnReceiveContentListener. (Ib26c9, b/175343405)
- Connection of the new Insets Animation API with the Platform implementation (I078da)
- Added the new Insets Animation APIs (I8aebd)
- Updated OnReceiveContentListener and related APIs:
- Updated OnReceiveContentListener so it can be set on any type of view via ViewCompat.
- Removed
getSupportedMimeTypes()
fromOnReceiveContentListener
; now MIME types are passed as an additional arg on theViewCompat
method that sets the listener. - Wrapped arguments to
OnReceiveContentListener.onReceiveContent()
in an object. - Added linkUri as a param to
onReceiveContent()
to ensure backwards compatibility with the keyboard image API. - Added a Bundle param to
onReceiveContent()
to ensure backwards compatibility with the keyboard image API and to facilitate evolution of the API in the future. - Updated
onReceiveContent()
to return any content that was not consumed, as a means to delegate to the default handling. - Removed
TextViewOnReceiveContentListener
from the public API since the default behavior can now be triggered by returning any unconsumed content from the listener. - (Ib4616, b/173814913)
- Deprecated
BuildCompat.isAtLeastR
(Idb37e) - Moved
widget.RichContentReceiverCompat
toview.OnReceiveContentListener
. (Ifdab7, b/173814913) - Added
Preconditions.checkFlagsArgument
. (I43952, b/174181100) - Deprecate custom menu for outbound sharing. (I7cd92)
- Notifications can now be tagged as missed calls. (I14d90)
- Added
PackageInfoCompat#getSignatures
for retrieving the certificate array for a package (I8e9a3, b/159831205)
Bug Fixes
- Fix a bug where setting
BigPictureStyle.bigLargeIcon
would break theBigPictureStyle
for that notification on newer OS versions. (Ic623d)
External Contribution
- ShareCompat now uses constructors for creation and the old factory methods have been deprecated. You can now create both builders and readers from a Context and an Activity is no longer required. (I315b6, b/173043501)
- Set clip data and grant uri read permission when sharing streams using ShareCompat (I4aa31, b/173137936)
Version 1.5.0-alpha05
November 11, 2020
androidx.core:core:1.5.0-alpha05
and androidx.core:core-ktx:1.5.0-alpha05
are released. Version 1.5.0-alpha05 contains these commits.
API Changes
- Added support for new GnssStatus APIs (Id8e22)
- Added overloads of
FileProvider#getUriForFile
to support custom filenames (Ie870b) - Backported the
WindowInsetsController
APIs to control the system bar appearance. (Ieb4ee) - Renamed
getFont
with boolean togetCachedFont
(Iea520) - Backported the
#hide()
and#show()
methods from WindowInsetsController APIs, added in API 30 (I21573) - Added new API
ResourcesCompat#getFont
with cacheOnly option (Ic38cf) - Updated androidx notification bubbles APIs for Android 11 (Ib9c70)
Version 1.5.0-alpha04
October 1, 2020
androidx.core:core:1.5.0-alpha04
and androidx.core:core-ktx:1.5.0-alpha04
are released. Version 1.5.0-alpha04 contains these commits.
API Changes
- Fix incomplete Style recovery when using
NotificationCompat.Builder.<init>(Context,Notification)
(Ib297a) - New notification categories types are now available (I9521a)
Bug Fixes
- Allow
ActivityCompat.recreate()
to be safely called from any lifecycle state on any API level. (I62dde, b/160122826)
Version 1.5.0-alpha03
September 16, 2020
androidx.core:core:1.5.0-alpha03
and androidx.core:core-ktx:1.5.0-alpha03
are released. Version 1.5.0-alpha03 contains these commits.
API Changes
ViewCompat
is a utility class and shouldn't be instantiated. (If20fa)- APIs to supply and retrieve initial surrounding
text were backported to
EditorInfoCompat
. They allow IME apps to avoid additional IPC latency. (Ie3809) - Query notification channels and groups with compat objects. (I11d18)
Bug Fixes
- For pre-P, ensure panes are marked as important for accessibility and support
CONTENT_CHANGE_TYPE_PANE_DISAPPEARED
events. (Iaeffc)
External Contribution
- API lint check for the StaticFinalBuilder is enabled for androidx (I2b11b, b/138602561)
Version 1.5.0-alpha02
August 19, 2020
androidx.core:core:1.5.0-alpha02
and androidx.core:core-ktx:1.5.0-alpha02
are released. Version 1.5.0-alpha02 contains these commits.
New Features
The
WindowInsetsCompat
APIs have been updated to those in the platform in Android 11. This includes the newime()
inset type, which allows checking the visibility and size of the on-screen keyboard.- Some caveats about the
ime()
type, it works very reliably on API 23+ when your Activity is using theadjustResize
window soft input mode. If you’re instead using theadjustPan
mode, it should work reliably back to API 14.
- Some caveats about the
API Changes
- Added
ObjectsCompat#toString(Object, String)
. This offers the behavior ofObjects#toString(Object, String)
but can be used pre-API 19. (I26cdc) - Added
NotificationCompat.Builder.recoverBuilder(Notification)
(I6f100) - Add
NotificationCompat.Builder.createContentView()
and peers (I6fe13) - Add extra data related APIs in AccessibilityNodeInfoCompat (I19567)
- Add
NotificationCompat.Builder.setSettingsText
andNotificationCompat.MessagingStyle.addHistoricMessage
(I62bb6) - Update Notification documentation (I1293f)
- Fix nullability of NotificationCompat.Builder (I932e3)
- Added
NotificationChannelCompat
andNotificationChannelGroupCompat
(Icc3b6) - Add
addExtraDataToAccessibilityNodeInfo
toAccessibilityNodeProviderCompat
(I26575) - Update WindowInsetsCompat to Android 11 APIs (I3df9e)
External Contribution
- Add
Uri
overloads forMailTo
methods (I6fa6b) - Added
MailTo
API which provides consistent behavior and bug fixes for all API levels (Ie9395, b/159827506)
Version 1.5.0-alpha01
June 10, 2020
androidx.core:core:1.5.0-alpha01
and androidx.core:core-ktx:1.5.0-alpha01
are released.
New Features
- Provides parity with Android R platform SDK APIs for
ShortcutManager
,ShortcutInfo
,AccessibilityNodeInfo
,DisplayCutout
,GnssStatus
, andNotification
classes
Bug Fixes
- Make it clear that checking shouldShowPermissionRationale is recommended.
- Change AtomicFile to use rename-into-place.
- Adjust the Typeface display style with the style of given font. (b/156853883)
- Fix failing Notification Builder Tests
- Fix register/unregister bug
LocationManagerCompat
.
Core and Core-ktx Version 1.4.0
Version 1.4.0-alpha01
May 20, 2020
androidx.core:core:1.4.0-alpha01
and androidx.core:core-ktx:1.4.0-alpha01
are released. Version 1.4.0-alpha01 contains these commits.
API Changes
- Add common API for inserting rich content (e.g. pasting an image). The new callback provides a single API that apps can implement to support the different ways in which rich content may be inserted. For now the API is only added to
AppCompatEditText
and will be invoked for the following code paths:- paste from the clipboard
- content insertion from the IME (
InputConnection.commitContent
) (I22bf7)
- Backported
android.os.Process.isApplicationUid(int)
to help apps determine whether code is executing in a isolated process (I4c83a, b/153014822) - Backported
LocusId
to help apps correlate state between different subsystems such as content capture, shortcuts, and notifications. (Ia3129) - Added ancestry sequences to ViewGroup (I5f75c, b/117976097)
Bug Fixes
- Added permissions validation for
ActivityCompat.requestPermissions()
(I372cc, b/122163323) - Extracted v28+ calls into a separate static class, which fixes a
NoClassDefFoundError
error forView#OnUnhandledKeyEventListener
when building an app bundle (Id3419, b/153695093) - Fixed a
setChronometerCountDown
crash bug (I47282, b/145770610)
Core and Core-ktx Version 1.3.2
Version 1.3.2
October 1, 2020
androidx.core:core:1.3.2
and androidx.core:core-ktx:1.3.2
are released. Version 1.3.2 contains these commits.
Bug Fixes
- Allow
ActivityCompat.recreate()
to be safely called from any lifecycle state on any API level. (I62dde, b/160122826)
Core and Core-ktx Version 1.3.1
Version 1.3.1
July 22, 2020
androidx.core:core:1.3.1
and androidx.core:core-ktx:1.3.1
are released. Version 1.3.1 contains these commits.
Bug Fixes
- Fixed an issue where the resolved font resource
Typeface
weight and style had the wrong values on API Level 29 (b/156853883)
Core and Core-ktx Version 1.3.0
Version 1.3.0
May 27, 2020
androidx.core:core:1.3.0
and androidx.core:core-ktx:1.3.0
are released. Version 1.3.0 contains these commits.
Major changes since 1.2.0
- New APIs on
NestedScrollView
to run smooth scrolls with specified duration - New APIs on
ViewCompat
to retrieve the original window insets that were dispatched to the view hierarchy
Version 1.3.0-rc01
April 15, 2020
androidx.core:core:1.3.0-rc01
and androidx.core:core-ktx:1.3.0-rc01
are released. Version 1.3.0-rc01 contains these commits.
Bug Fixes
WindowInsetsCompat
now properly implementshashCode()
andequals()
on all supported API levels.
Version 1.3.0-beta01
April 1, 2020
androidx.core:core:1.3.0-beta01
and androidx.core:core-ktx:1.3.0-beta01
are released. Version 1.3.0-beta01 contains these commits.
Version 1.3.0-alpha02
March 4, 2020
androidx.core:core:1.3.0-alpha02
and androidx.core:core-ktx:1.3.0-alpha02
are released. Version 1.3.0-alpha02 contains these commits.
API Changes
- New APIs on
NestedScrollView
to run smooth scrolls with specified duration - A new
ViewCompat
API to retrieve the original window insets that were dispatched to the view hierarchy
Version 1.3.0-alpha01
January 29, 2020
androidx.core:core:1.3.0-alpha01
and androidx.core:core-ktx:1.3.0-alpha01
are released. Version 1.3.0-alpha01 contains these commits.
New features
- Added
ContentProviderCompat
- Added
WindowInsetsCompat.Builder
API changes
- Added a
NotificationCompat
API to silence a notification instance - Added
ResourcesCompat.NULL_ID
- Deprecated
CarExtender.UnreadConversation
inNotificationCompat
- Added a
DisplayCompat
API to get the physical size of the device
Bug fixes
- Improved the handling actions with no icons in
NotificationCompat
- Fixed drawable tinting on TextView relative to compound drawables on API Level 23 (aosp/1172194)
- Ensured the base context is always a wrapper
- Fixed an issue where RecyclerView should not populate Collection[Item]Info by default
Version 1.2.0
Version 1.2.0
February 5, 2020
androidx.core:core:1.2.0
and androidx.core:core-ktx:1.2.0
are released. Version 1.2.0 contains these commits.
Major changes since 1.1.0
- Added new APIs and bug fixes in
NotificationCompat
- Added new APIs to work with
BlendMode
introduced in AndroidQ in backwards-compatible way - Added new APIs and bug fixes in accessibility compat
- Added new APIs to work with
ShortcutInfo
- Added new APIs to work with
WindowInsets
- Fixed backwards compatibility for bundle key strings between 28.0 (support library) and 1.1 (AndroidX) in
EditorInfoCompat
,ShareCompat
,WakefulBroadcastReceiver
andInputConnectionCompat
Version 1.2.0-rc01
November 20, 2019
androidx.core:core:1.2.0-rc01
and androidx.core:core-ktx:1.2.0-rc01
are released with no changes since 1.2.0-beta02
. Version 1.2.0-rc01 contains these commits.
Version 1.2.0-beta02
November 7, 2019
androidx.core:core:1.2.0-beta02
and androidx.core:core:1.2.0-beta02
are released. Version 1.2.0-beta02 contains these commits.
Bug fixes
- Updated translations for en-rCA and en-rXC locales.
Version 1.2.0-beta01
October 9, 2019
androidx.core:core:1.2.0-beta01
and androidx.core:core-ktx:1.2.0-beta01
released. Version 1.2.0-beta01 contains these commits.
API Changes
- Added support for creating NotificationCompat Actions using IconCompat and deprecated a public field (and its getter) using resource IDs to represent icons for Actions. (aosp/1119192)
- Add
MathUtils.clamp
for longs (aosp/1117300) - Added
setChronometerCountDown
toNotificationCompat
(b/138601213)
Bug Fixes
- Fixed an issue with the handling of unicode digits in address detection. (aosp/1129852)
External Contribution
- Thank you Sergey Zakharov for enabling the API lint check for MissingBuild and ListenerLast in AndroidX! (aosp/1119191, aosp/1126768)
Version 1.2.0-alpha04
September 5, 2019
androidx.core:core:1.2.0-alpha04
and androidx.core:core-ktx:1.2.0-alpha04
are released. The commits included in this version can be found here.
API changes
- Deprecated
ShortcutInfoCompat.Builder#setLongLived()
and replaced it with a new API with the same name that accepts a boolean as a parameter, to match the similar API inShortcutInfo.Builder
in Android framework. - Added
ShortcutInfoCompat.Builder#setRank()
andShortcutInfoCompat#getRank()
to match theShortcutInfo
in Android framework.
Bug fixes
- Nested pre scrolling is no longer performed before the gesture exceeds touch slop (b/139530818, aosp/1105373). This benefits ViewPager2 and other libraries.
Version 1.2.0-alpha03
August 7, 2019
androidx.core:core:1.2.0-alpha03
and androidx.core:core-ktx:1.2.0-alpha03
are released. The commits included in this version can be found here.
New features
- Added
UriCompat.toSafeString(Uri)
to provide URI escaping that is updatable separately from the platform. (b/130878326) - Added
Predicate<T>
interface to provide Java 8-style predicates without requiring Java 8 language features.
API changes
- Made
removeDynamicShortuct()
static (b/134993204) - Created factory method for BlendMode Color Filter (b/135943149)
- Added
async
,counter
, andisEnabled
toTraceCompat
(aosp/987332) - Unhid APIs in
WindowInsetsCompat
andViewDragHelper
(aosp/979408)
Bug fixes
- Fixed bug with
NestedScrollView
scrolling in response to a11y scroll calls. (aosp/971000) - Switched to using
SimpleArrayMap
inViewCompat
implementation (aosp/1012534) - Fixed bug where FingerprintManager incorrectly checked PackageManager on API Level 23 (b/124066957)
Version 1.2.0-alpha02
June 13, 2019
androidx.core:core:1.2.0-alpha02
and androidx.core:core-ktx:1.2.0-alpha02
are released. The commits included in this version can be found here.
API changes
- Added WindowInsetsCompat.wrap() and unwrap(), to be able to wrap and unwrap WindowInsets instances
Version 1.2.0-alpha01
May 7, 2019
androidx.core:core:1.2.0-alpha01
are androidx.core:core-ktx:1.2.0-alpha01
are released.
New features
- Add
ACTION_PAGE_UP/DOWN/NEXT/PREVIOUS
accessibility actions - Add
CATEGORY_NOTIFICATION
to NotificationCompat - Add support for contextual Notification Actions
- Add support for bubbles in NotificationCompat
- Added BlendModeCompat APIs to leverage the BlendMode APIs on Android 10 and falling back to
PorterDuff.Mode
equivalents wherever possible - Add new getters to WindowInsetsCompat and ViewCompat
- Add support for tap-to-edit in notifications
- DrawerLayout system gesture exclusion rects
- Add NotificationCompat API for whether to allow system generated contextual actions
- Handle disabled
<activity-alias>
components in NavUtils - Add
AccessibilityNodeInfoCompat.setEntryKey
Bug fixes
- Fix exception when loading fonts in TypefaceCompat
- Various DayNight fixes
- Fix backwards compatibility for bundle key strings between 28.0 (support library) and 1.1 (AndroidX) in EditorInfoCompat, ShareCompat,
WakefulBroadcastReceiver
andInputConnectionCompat
Version 1.1.0
Version 1.1.0
September 5, 2019
androidx.core:core:1.1.0
and androidx.core:core-ktx:1.1.0
are released. The commits included in this version can be found here.
Important Changes since 1.0.0
- Updated accessibility APIs to match the Android 10 platform accessibility APIs
- Added improvements to Nested Scrolling; see
NestedScrollingChild3
andNestedScrollingParent3
. - This library no longer exposes the
androidx.collection
dependency as part of its API. If you were depending on theandroidx.collection
types implicitly through a dependency on Core, you will need to add an explicitandroidx.collection
dependency to your library or app. This change is source-incompatible but retains binary compatibility. The Collection dependency is still a transitive dependency of Core but as an implementation detail instead of part of its API. - Worked around an IPC compatibility issue caused by refactor to androidx (aosp/948725, aosp/938269)
- Added a variety of fixes for AppCompat DayNight (aosp/942956)
Version 1.1.0-rc03
August 7, 2019
androidx.core:core:1.1.0-rc03
and androidx.core:core-ktx:1.1.0-rc03
are released. The commits included in this version can be found here.
Bug fixes
- Make the hidden
androidx.core.app.ComponentActivity
implementLifecycleOwner
to maintain binary compatibility withandroidx.fragment:fragment:1.0.0
(aosp/1094409)
Version 1.1.0-rc02
July 2, 2019
androidx.core:core:1.1.0-rc02
and androidx.core:core-ktx:1.1.0-rc02
are released. The commits included in this version can be found here.
Bug fixes
FingerprintManagerCompat#getFingerprintManagerOrNull
on API level 23 should not checkPackageManager
(b/124066957) (aosp/987433)- Fix equality comparison in AccessibilityNodeInfoCompat (aosp/985736)
Version 1.1.0-rc01
June 5, 2019
androidx.core:core:1.1.0-rc01
and androidx.core:core-ktx:1.1.0-rc01
are released. The commits included in this version can be found here.
Bug fixes
- Make image keyboard API backport compatible to all previous impls (aosp/968220)
- Remove Guava ListenableFuture from androidx.core:core library dependencies (b/133171974, aosp/965393)
- Fix incorrect velocity while flinging with nested scrolling. (aosp/961642)
- Add test for mutating
TransitionDrawable
(b/37033322)
Version 1.1.0-beta01
May 7, 2019
androidx.core:core:1.1.0-beta01
and androidx.core:core-ktx:1.1.0-beta01
are released. The commits included in this version can be found here.
The initial release of AndroidX broke backwards compatibility for Support Library
compat
APIs that are used for inter-process communication, sending keyed data
in bundles. This release fixes this compatibility, restoring communication
between code built with Support Library 28.0 (or earlier) and AndroidX 1.1
(or later).
API changes
- Undeprecated capability setters (aosp/937281)
RemoteActionCompat
is now a 1VersionedParcelable` (aosp/928534)
Bug fixes
- AppCompatTextView in core tests should be created with an appcompat theme (aosp/951636)
- Use pre-1.0 string values for InputConnectionCompat (aosp/948725)
- Use pre-AndroidX strings as fallback interop for bundle keys (aosp/938269)
- Fixed bug in DayNight updates when in background (aosp/942956)
- Implemented text entry key API for accessibility services in AOSP Keyboard (aosp/943897)
- Fixed exception when loading font on devices running API Level 20 and lower
- Handle disabled
<activity-alias>
components in NavUtils (aosp/940788)
Version 1.1.0-alpha05
March 13, 2019
androidx.core:core:1.1.0-alpha05
and androidx.core:core-ktx:1.1.0-alpha05
are released. The full list of commits included in this version can be found
here.
New features
- New
ActivityCompat.recreate()
API for working around pre-28 platform bugs (aosp/898940) - New
LocationManagerCompat
class (aosp/894736)
API changes
- This library no longer exposes the ‘collection’ dependency as part of its API. If you were depending on the ‘collection’ types implicitly through a dependency on ‘core’, you will need to add an explicit ‘collection’ dependency to your library or app. This change is source-incompatible but retains binary compatibility. The ‘collection’ dependency is still a transitive dependency of ‘core’ but as an implementation detail instead of part of its API.
Bug fixes
- Fixed bug with default tint mode for
ImageView
on devices running API level 21
Version 1.1.0-alpha04
January 30, 2019
androidx.core:core 1.1.0-alpha04
and androidx.core:core-ktx 1.1.0-alpha04
are released.
API changes
- Change value of
EXTRA_SHORTCUT_ID
to be consistent with the platform (aosp/877712) - Add
CATEGORY_NOTIFICATION
toNotificationCompat
(aosp/861067)
Bug fixes
- Fix for fontFamily not working on devices running API level 24 and lower (aosp/807054)
- Fixed bug where replacing accessibility actions, and adding accessibility actions, didn't remove old accessibility actions (aosp/848314)
Version 1.1.0-alpha03
December 17, 2018
androidx.core 1.1.0-alpha03
and androidx.core-ktx 1.1.0-alpha03
are released with the following changes. androidx.core-ktx 1.1.0-alpha02
is released to provide a ktx match for androidx.core 1.1.0-alpha02
.
New features
- Added Notification channels methods to
NotificationManagerCompat
so developers can use onlyNotificationManagerCompat
when working with notifications. Special thanks to Zdeněk Kořán for this new feature!
API changes
- Added new APIs to
ShortcutManagerCompat
to publish and update dynamic shortcuts.
Version 1.1.0-alpha01
November 5, 2018
androidx.core 1.1.0-alpha01
is released with the following API changes and
bug fixes.
New features and API changes
- NestedScrollingChild3 and NestedScrollingParent3 add the ‘consumed’ parameter to the overloaded dispatchNestedScroll and * onNestedScroll methods so that the view that drives nested scrolling can be better informed about how much scroll distance was * consumed by parents in each nested scroll pass.
- NestedScrollView now implements NestedScrollingChild3 and NestedScrollingParent3, and therefore, the NestedScrollingChild2 and * NestedScrollingParent2 implementations of dispatchNestedScroll and onNestedScroll are not guaranteed to be called. Developers * counting on either being called should also override the new nested scrolling 3 version of dispatchNestedScroll and onNestedScroll.
- ShortcutInfoCompat has the following new fields: Persons, categories and isLongLived. Done to advertise it can accept various types * of content.
- Renamed SupportActivity to ComponentActivity. See androidx.activity for more info.
- Added getMainExecutor() method, which returns an Executor link that will run enqueued tasks on the main thread associated with that * context.
- Added compatibility implementation of Resources.getFloat.
- Added Results Source to compat RemoteInput. This allows apps to distinguish direct and smart replies for logging purposes.
- Added Kotlin extension functions for TextView TextWatcher actions.
- Deprecated AccessibilityNodeInfo capability and flag setters; use actions instead.
- Added AccessibilityPane to ViewCompat.
- Exposed ClickableSpans on pre-O devices through the addition of AccessibilityClickableSpanCompat.
- Deprecated
AccessibilityNodeInfoCompat.setFocusable()
,setClickable()
,setLongClickable()
,setScrollable()
, andsetContextClickable()
. AddedAccessibilityAction
s instead. - Added
ViewCompat.setAccessibilityPaneTitle()
,getAccessibilityPaneTitle()
,setScreenReaderFocusable()
,isScreenReaderFocusable()
,setAccessibilityHeading()
, andisAccessibilityHeading()
, to backport thisView
accessibility functionality through API 19. - Added
ViewCompat.enableAccessibleClickableSpanSupport()
to allow developers to make non-URLClickableSpan
s accessible back through API 19.
Bug fixes
- Fixed bug that caused
ResourcesCompat.getFont()
crash when the network fails, when using downloadable fonts. - Fixed Null Pointer Exception in TypefaceCompatApi21 that occurred when
ContentResolver
returned null. - Fixed type error in Array Utils where it expected ColorStateList but got raw colors.
Core-Animation and Core-Animation-Testing 1.0.0
Core-Animation Core-Animation-Testing Version 1.0.0-alpha02
August 19, 2020
androidx.core:core-animation:1.0.0-alpha02
and androidx.core:core-animation-testing:1.0.0-alpha02
are released. Version 1.0.0-alpha02 contains these commits.
Bug Fixes
- Fix AnimatorSet with multiple Animators for a single property. (aosp/1351310)
Core-Animation Version 1.0.0-alpha01
April 15, 2020
androidx.core:core-animation:1.0.0-alpha01
and androidx.core:core-animation-testing:1.0.0-alpha01
are released. Version 1.0.0-alpha01 contains these commits.
New Features
androidx.core:core-animation
is a backport of the Animator API including all the features added to the platform since API Level 14. Some of the notable features are:
ValueAnimator#pause
,ValueAnimator#resume
(API Level 19)ObjectAnimator.ofMultiInt
,ObjectAnimator.ofMultiFloat
(API Level 21)ValueAnimator#setCurrentFraction
(API Level 22)AnimatorSet#setCurrentPlayTime
(API Level 26)androidx.core:core-animation-testing
allows developers to test animators in a deterministic manner. See AnimatorTestRule for the details.
Core-Role Version 1.1.0
Core-Role Version 1.1.0-alpha01
April 15, 2020
androidx.core:core-role:1.1.0-alpha01
is released. Version 1.1.0-alpha01 contains these commits.
API Changes
- Added role name for system gallery.
Core-Role Version 1.0.0
Version 1.0.0
February 10, 2021
androidx.core:core-role:1.0.0
is released. Version 1.0.0 contains these commits.
Major features of 1.0.0
- Added
RoleManagerCompat
containing the name and documentation for roles that might be available in the system.
Core-Role Version 1.0.0-rc01
April 15, 2020
androidx.core:core-role:1.0.0-rc01
is released with no changes since 1.0.0-beta01
. Version 1.0.0-rc01 contains these commits.
Core-Role Version 1.0.0-beta01
November 20, 2019
androidx.core:core:1.0.0-beta01
is released with no changes since 1.0.0-alpha01
. Version 1.0.0-beta01 contains these commits.
Core-Role Version 1.0.0-alpha01
July 2, 2019
androidx.core:core-role:1.0.0-alpha01
is released. This is the first release of androidx.core:core-role
. The commits included in this initial version can be found here.
New features
- Added
RoleManagerCompat
containing the name and documentation for roles that might be available in the system.
Version 1.0.2
Version 1.0.2
May 7, 2019
androidx.core:core:1.0.2
, and androidx.core:core-ktx:1.0.2
are released. This release includes 2 commits.
The initial release of AndroidX broke backwards compatibility for Support Library
compat
APIs that are used for inter-process communication, sending keyed data
in bundles. This release fixes this compatibility, restoring communication
between code built with Support Library 28.0 (or earlier) and AndroidX 1.1
(or later).
Bug fixes
- Use pre-1.0 string values for InputConnectionCompat (aosp/948725)
- Use pre-AndroidX strings as fallback interop for bundle keys (aosp/938269)
Version 1.0.1
Version 1.0.1
November 7, 2018
Bugfix release of core-1.0.1
and appcompat-1.0.2
.
Bug fixes
- Fixed bug where
PrecomputedTextCompat
would crash when used with RTLAppCompatTextView
. b/113070424
Core-Ktx Version 1.0.1
November 5, 2018
androidx.core-ktx 1.0.1
is released with the following bug fixes:
- Fixed bug where implementation of union and intersection were swapped.