In application development, Model View Presenter is one of the design patterns. In the MVP design pattern, Presenter manages all the communication between View and Model. Just as discussed earlier in the MVVM tutorial, where View Model acts as Presenter. Model View Presenter MVP Design pattern Components: As shown in the MVP diagram, each component…
In View Binding tutorial, we were limited to bind views of a layout file to activity class to get rid of FindViewById(). However, Data Binding allows us to bind UI elements directly with the data source in the XML file itself. Moreover, it allows us to bind ClickListeners and handle events…
As android developers, we use FindViewById() in our Activity and Fragment. It is important to access every view in the layout.xml file to our activity class. As a result, this added a lot of code in our activity class. Moreover, it causes our class to become more complex and difficult to maintain. Therefore, view…
It’s a common problem with beginners in android application development once they implement checkbox in ListView which automatically gets unchecked while scrolling. In this tutorial, we will learn how to avoid this problem. We will implement a custom adapter with a custom row having checkboxes and titles. 1. App name…
Social logins in mobile applications is the quickest way to login/signup. In this tutorial we will learn how to implement facebook login inside and android application using a custom login button. Facebook provides there own login button using facebook sdk but we need to do that using a custom button…
Are you looking for monetisation solution in you android apps ? Do you want to earn good revenue from your app? Than Google AdMob is best solution for this purpose. Its very easy to integrate AdMob ads into android application. In this tutorial we will learn to create Ad ids…
Icons are one of the important part in application development. It is difficult for developer to find icons with different sizes and colours quickly. In this tutorial we will learn ho to add Material Design icons plugin into android studio. At the end of this tutorial we will easily be…
How to build REST API? How to connect android application with php and mysql database? What is JSON? How to make POST Server request in android? How to build login signup in android using php and mysql ? These are the main questions came in mind once we think about…
Android SQLite database is the most preferred way to store persistence data in android applications. In this tutorial, we will learn to create and manage the SQLite database in an android application with an example and we will create a simple SQLite database for the events management app. This app…
Swiping views using Android Tab Layout with swipe able Fragments is the easiest and fastest way to switch views. Many famous apps like whatsapp uses Tab Layout to switch between calls, messages and statuses. Android Material Design library provides Tab Layout widget. In this tutorial we will learn to develop…