Now in Android: 19 – Android Studio 4.0 stable release, Kotlin article+video, sample code, and more

[Music] hey welcome to another now in Android this is episode number 19 not a lot happen in the last couple weeks because the team was pretty focused on creating stuff for launch content but I'll tell you about the stuff that did happen starting with launch content you have probably heard this already but we were going to heavy Android 11 beta launch show on June 3rd that has been postponed please check out the sites for details about when that thing is coming out and what there will be when it does arrive that should be updated very soon also Android studio the Ford auto release just came into the stable channel so check that out I've talked about this release in various now and Android posts already but uh very quickly some of the stuff that you can look forward to and that release include motion editors so motion layout is a subclass of constraint layout that allows you to create easy transitions between states think of it as like the transitions API on steroids right it allows you to create a before state and an after state and then animate between them either automatically or this is a really powerful part you can customize that animation and you can have it react to user gestures so you can actually basically scrub the animation you can scroll that screen and it'll run the animation in direct interaction with the user actions and then it can animate from there very cool but really tedious to do in XML code it was always meant to be driven by a visual tool and now that visual tool is available in Android studio 4.

0 so check that out layout inspector substantially rewritten to offer such features as live update so you can change the UI and the device and see those reflected in the tool you can also use the 3d containment hierarchy viewers you can actually get a better feel for how all the different views and view groups relate to each other and you can also see how the property attributes those resources where are they defined and why and how and you can click through to go to the code that defines them helps you understand your code a lot better build analyzer another powerful feature that tells you where the Puddle necks are your build performance art maybe it's in a library that you dragged in or something that you have impact on that you can change to affect your build performance locally there's a blog post by a Darsh Fernando where he goes over a lot of the details and there's also a video by Yasin risky he also gives a great overview of a lot of the powerful features in for doto so check those own articles and videos murat jenner posted an article in the vocabulary cutland vocabulary series on reification so generics are powerful they allow you to add compile time type information to api's and data structures that may not otherwise support that information that's great except at runtime you don't have access to that type information because if something called type erasure so basically the type doesn't make it into the byte code and so you can't retrieve it at runtime colin has a workaround for that using the reified keyword as well as inline class's capability so if you declare something to be both reified and inline it actually takes the type information and embeds it in the byte code so that you can retrieve it at runtime Murat also posted a video in the similarly named Kotlin vocabulary video series and this basically goes hand-in-hand with the article that I talked about last time on object on the the Kotlin keyword object so check that out there is an updated sample so there was already a sample from Android 10 on how to use the bubbles API but bubbles was a developer option it was an optional API at that point we wanted developers to play with it but users weren't really using it now it's a full feature in Android 11 and you should learn about how to use it and about some of the changes that are taking place between Android 10 and Android 11 so that sample has been updated to be very Android 11 friendly and you should check that up speaking of bubbles there's also a podcast that came out recently on bubbles called bubbles so check out ADB 140 in which tour and MoMA and I talked to Matty as well as Artur on the system UI team about how bubbles works under the hood how you can use it and how you can use the API and the capabilities to take conversations with people in your application and expose them into the UI for Android overall as usual all of the links for all the stuff that I talked about are in the article so check out the medium article for episode 19 and if you liked the video go ahead and like and share it and subscribe to the Android developers channel on YouTube thanks you.


See More Android:

Hãy bình luận đầu tiên

Để lại một phản hồi

Thư điện tử của bạn sẽ không được hiện thị công khai.