WorkManager basics – One time request and chain

WorkManager basics - One time request

Reading Time: 13 minutes In this WorkManager basics tutorial we are going to learn about how we can create one time request and chain. It means, that the work will be fired only once until it finishes successfully, then the next work will be started in thet case. First, we gonna talk about how we can fire only one … Read more

Data Binding – BindingAdapter

Reading Time: 5 minutes

In this chapter of the Data Binding tutorial, we are going to extend our project with custum attributes. It means, we are going to create a BindingAdapter, then we gonna define some new attributes and actions for them.

In the previous chapter (Data Binding – Basics), we have talked about what is Data Binding, and where we can position it inside of the MVVM design pattern. We have created a very simple basic project, where we can print out our name in a TextView using a LiveData from a ViewModel.

Read more

Follow and like us:

Data Binding – Basics

Reading Time: 9 minutes

It is a common tasks for an Android developer to link the business logic to the user interface. These linking can cause in many cases runtime errors and needs tooo long time to implement them. Then, at Google I/O 2018, the Data Binding has been announced.

Data Binding is Android Jetpack component, which allows developers to declaratively bind observable data to UI elements. Hence, it removes many UI framework calls in our activities and fragments, making them simpler and easier to maintain.

In this tutorial we are going to learn about the basics of Data Binding. First we gonna talk about MVVM (Model–View–ViewModel), then we will cover the place of Data Binding inside of this design pattern.

We are going to build a very simple app, which will count the likes, to learn how to integrate the Data Binding library into a newly created Android project. We will learn about

        • Enable Data Binding in our project
        • Convert an existing layout file to one that uses Data Binding
        • Data Binding in Activities
        • Data Binding adapters

Read more

Follow and like us:

Navigation component – Bottom navigation bar

Reading Time: 6 minutes

In this chapter of the Jetpack Navigation Component tutorial we are going to talk about how we can use bottom navigation bar to navigate in our app.

This chapter will cover how to add a bottom navigation bar to the app. It means, we will create the menu items, and use the defined destinations, which are already available in the navigation graph.

Then, as an extra, we will check how we can open a fragment, where we don’t need the bottom navigation.

So let’s start coding. 😎

Read more

Follow and like us:

Navigation component – Managing back stack

Reading Time: 5 minutes

In this chapter of the Navigation Component Android tutorial we are going to learn how can we manage the back-stack in our app. First we are going to add the SplashFragment. After that, we will check how we can handle it in the back stack. Then we will remove Fragment_4 from the back stack. So, when we press the back button, then the Fragment_1 pops up.

This tutoiral is about how to use the JetPack Navigation Component to handle the fragment’s, activity’s navigations, argument and actions in our app centralized. The sample app contains 6 fragments, the main activity and a Navigation Drawer.

In the very last chapter we have learned how we can handle dialog and how we can get back from it the result.

For this chapter we have prepared a starter project. This project contains already the SplashScreen, which will be firstly visible for the user, when they open the app.

Read more

Follow and like us:

stay informed!

Subscribe to receive exclusive content and notifications