Modern mobile applications are already quite serious enterprise projects that are developed by hundreds of developers, contain thousands of lines of code and are constantly changing and developing. The process of automating code checking and application work helps to deal with such a huge codebase. …
The Google I/O’21 conference took place, and we learned absolutely everything about the new version of Android, and we can also try it all in Beta 1, which we can install on the Pixel, and other manufacturers also allow you to install the GSI image.
The main emphasis in the release was made on enhancing OS security and data privacy, as well as redesigning the system. They have done a very good job of supporting today’s new media standards, and they have minimized the amount of pain that flagship devices will experience from older or budget smartphones. …
View Binding is a new feature in Android Studio 3.6, but this isn’t true at all. View Binding is a lighter variant of Android Data Binding. Why do we need View Binding? The answer is performance. Many developers use
Android Data Binding only to have reference to views from Layout XML and ignore other features of the library. Code generation in View Binding is faster. But the default way of its usage isn’t so good.
Let’s look at the usage of View Binding in Fragment. We have a layout resource
profile.xml (content isn’t important). Generated View Binding for the layout has…
When the attention of Android developers was focused on Kotlin Conf. But Google released new updates in Android Jetpack.
The library is small. It contains only constants for autofill hint. You can find new constants in
More about autofill can be found here.
CoordinatorLayout.Behaviorimplements a new overload of
Behaviorsto be able to report how much scroll distance they consume to nested scrolling children (during the
CoordinatorLayout.DefaultBehaviorannotation is deprecated. Now to specify default behavior for
CoordinatorLayoutyou need to use
The last week gave us the first stable releases of new libraries, new major releases of existing libraries.
Benchmark is a library that allows you to write a performance benchmark of app code and get results. It handles all device configurations issues, stabilizes performance and etc. to ensure that tests will be accurate and consistent.
Benchmark is the first library from AndroidX that is 100% Kotlin.
Improvements from the previous ViewPager are:
Kotlin is a beautiful language but I don’t like one thing from it —
lateinit is a result of limitations that came from Android components. The most popular usage of the keyword in Android is injecting in properties with Dagger 2 from
The code has the following issues:
dependencywill be resolved in
It will be better if we already have all the dependencies when creating a new instance of classes (in the constructor):
Hi! A new week and new updates! Let’s go to find out what’s new in Jetpack on this week:
The first stable release of the new library that helps make youк code better. Do you know about Kotlin’s @Experimenal annotation? The purpose of it is to mark not the final API and aware of you use such kinds of APIs. But warnings work only in Kotlin code.
Annotation-Experimental library contains special annotation @Experimental (from AndroidX) that can be analyzed by Android Lint and allow us to have the same warnings in Java code.
News in Android Jetpack October 21–27, 2019
Last week was the week of Android Dev Summit (October 22–23). On the first day were announced many RC updates. The updates give us
and all updates in the status of release candidate.
A full list of changes can be found here
During Google I/O’19 many new and interesting things were presented for Android Developers. I am sure that Jetpack Compose is #1 in the top list of them. Unfortunately, it’s not ready for production and trying it was a difficult quest because you need to build your own version of Android Studio. The reason is that composable functions are build using a custom Kotlin compiler plugin. Kotlin compiler plugins have no open APIs and I didn’t find any information about its release.
Everything changed on October 10 when Google released the first dev builds of Jetpack Compose libraries. They don’t require…
A full list of changes can be found here.
The first portion of Jetpack Compose artifacts arrived:
They aren’t stable and have issues but I saw confirmation of usage Jetpack Compose in Android Studio 3.5 and 3.6. Together with
androidx.compose artifacts arrived many artifacts in the group
androidx.ui. Waiting for Android Dev Summit 2019 to hear more details.
RoomDatabase.Builderare now available for creating a
RoomDatabasegiven an already populated database file from an asset of file.
@ColumnInfonow has a new property
defaultValuethat can be used to specify the…