Android Wear 2.0 Developer Preview 2

At Google I/O 2016, we launched the Android
Wear 2.0 Developer Preview, which gives developers early access to the next
major release of Android Wear. Since I/O, feedback from the developer community
has helped us identify bugs and shape our product direction. Thank you!

Today, we are releasing the second developer preview with new functionalities
and bug fixes. Prior to the consumer release, we plan to release additional
updates, so please send us your
feedback early and often. Please keep in mind that this preview is a work in
progress, and is not yet intended for daily use.

What’s new?

Platform API 24 – We have incremented the Android Platform
API version number to 24 to match Nougat. You can now update your Android Wear
2.0 Preview project’s compileSdkVersion to API 24, and we recommend
that you also update targetSdkVersion to API 24.

Wearable Drawers Enhancements – We launched the wearable
drawers as part of the Android Wear 2.0 Preview 1, along with UX guidelines
on how to best integrate the navigation
drawer and action
drawer in your Android Wear app. In Preview 2, we have added additional
support for wearable drawer peeking, to make it easier for users to access these
drawers as they scroll. Other UI improvements include automatic peek view and
navigation drawer closure and showing the first action inWearableActionDrawer’s peek view. For developers that want to make
custom wearable drawers, we’ve added peek_view anddrawer_content attributes to WearableDrawerView. And
finally, navigation drawer contents can now be updated by calling notifyDataSetChanged.

Wrist Gestures: Since last year, users have been able to
scroll through the notification stream via wrist
gestures. We have now opened this system to developers to use within their
applications. This helps improve single hand usage, for when your users need
their other hand to hold onto their shopping or their kids. See the code sample
below to get started with gestures in your app: