Skip to main content


Skeleton content loading animation in android | Facebook Shimmer

What is Facebook Shimmer Today we are going to see what is Facebook shimmer and how to use it?
See below example to understand Facebook shimmer.

The Facebook shimmer is used to show or indicate the user that the content is loading from somewhere which takes sometimes so that users need to wait. While content is loading, it is necessary to show the user an indication that content is loading and it is bad practice to leave screen blank which confuses user what is happening in the app or maybe the user thinks the app is hanging. How to use Facebook Shimmer So enough talking, let do some code on how to make content loading animation using facebook shimmer library. See below facebook shimmer android example To use facebook shimmer first we need to add the dependency to your project. See below to add facebook shimmer dependency. After adding dependency, let's create our layout. For demo purposes, we are creating our layout some like bel…

What is RecyclerView in Android?

RecyclerView in Android Hello world, today we are going to learn what is recyclerview, what are its advantages, and what are recyclerview examples? Let's start...
What is RecyclerView? RecyclerView helps us to make a repetitive and group of views. It can be a list of views in the form of a list view or in the gird type of view. Think it about as a loop of views where you can populate your data dynamically in the child's views. Recyclerview can be used as a listview of textview but with different text. You can also use cardview with recyclerview to make your UI look professional.
Check this tutorial on how to make simple recyclerview using cardview?
According to the android official site, what is recyclerview?
The RecyclerView widget is a more advanced and flexible version of ListView.
In the RecyclerView model, several different components work together to display your data. The overall container for your user interface is a RecyclerView o…

Recyclerview and Cardview example in Android [Beginner Level]

Working with Recyclerview and Cardview

Hello World, Today we are going to see how we can make a simple recyclerview with cardview in android studio. In this article, you will learn how to work with recyclerview, what is recyclerview layoutmanager? See the below gif for understanding what we are going to build.

Let's start...
What is Recyclerview in Android? Recyclerview is an advanced version of the listview. It is used to make the repeated view and recycle them to save more memory. Recyclerview is way more efficient than listview. Recyclerview easily handles a large set of views and is very flexible. Recyclerview is like a container that renders a large set of views very efficient manner. Recyclerview is optimized to work with a large number of views and save lots of memory so that your app will freeze or hang the device.
According to the official android site:
The RecyclerView widget is a more advanced and flexible version of ListView.
In the RecyclerView model, …

How to Save Image to storage using Glide in Android

Save Image using Glide
Hello World, Today we are going to see how we can save the image using the Glide library. Sometimes we are already using glide dependency in our android project to load images from link and we want to download the same image in the android device. In that case, we can utilize glide to save that bitmap to our android storage. Continue reading on this article to see how to download images using glide dependency.
Glide Download Image to File Before we go deep in, I want you to read first how to load image from URL using glide. In that article, I have explained how you can use glide in your project. 
Okay, now I am assuming that you know how to use glide to load image from URL.
I have made this layout to make it easy to understand all the things.

In the above layout, it is self-explanatory but let me explain here is an imageview with a button to download the image on click.
Let's see the logic behind the click button. Check the below c…

How to customize rating bar in android

Custom Rating Bar in Android

Hello World, Today we are going to see how to customize rating bar in android for example:  how to make small rating bar or how to change the color of rating bar or how to completely change rating bar appearance and set rating change listener etc.
How to change rating bar size or make rating bar small Making a small rating bar is simple but before making a small rating bar, let's look at how the default rating bar looks if we add it in our layout?

The default rating bar is big and looks ugly, to make it look small and make stars color golden or yellow we use below code:

Now, this looks perfect, right? But wait what if I tell you that you can use any image instead of stars in the rating bar? excited! Stay with this article and you will catch it later.
Now let's see how we can add a listener to the rating bar do that whenever a user give rating we can at accordingly.
Set Listener for Rating bar To add a rating change…

What is CardView in Android?

CardView in Android
Hello World, Today we are going to see what is cardview in android and what it's advantages. 
CardView is a widget provided by the android to build a new look and efficient UI. You can make your app look more professional see examples below. Cardview is an amazing concept which makes your user experience better than old android UI. Cardview was released with Android version 5.0 which is android lollipop.
According to Android's Official Site, what is cardview:
CardView API as an easy way for you to show information inside cards that have a consistent look across the platform. These cards have a default elevation above their containing view group, so the system draws shadows below them. Cards provide an easy way to contain a group of views while providing a consistent style for the container.
What are the advantages of CardView?
Before the cardview, if we want to make something look like a card we mostly use framelayout b…

How to customize button in android

How to customize button in android
Hello, Today we are going to see how we can customize the button in android. We will see how we can make a rounded corner button with background color and also see how we can gradient to the button. 
See the below gif for both examples.

First, let's see  How to change button background color in android Follow these steps to change your button background in android. To apply or change the background color of a button in android, we need to make a button in our layout and a new drawable file.
We have added our button in layout as below, 

we will make a drawable file and write the code for the background of the button.

After creating the file. Add this code in the drawable file, here we have named this file as bg_btn.xml.

In the above code, first, we specify the shape of the button by setting the root element as shape and pass attribute shape and set its value to rectangle. …

How to make splash screen in Android in 2020 [Best Guide]

How to make splash screen in Android
splash screen in android github, splash screen in android tutorials point, splash screen in android javatpoint, android studio splash screen animation, advanced splash screen in android, splash screen in android geeksforgeeks
Hello World, Today we are going to see how we can make a beautiful Splash Screen in your Android App. 
Before start coding let's see, According to Wikipedia what is splash screen:

A splash screen is a graphical control element consisting of a window containing an image, a logo, and the current version of the software. A splash screen usually appears while a game or program is launching. 

A splash page is an introduction page on a website.[1][2] A splash screen may cover the entire screen or web page, or may simply be a rectangle near the center of the screen or page. The splash screens of operating systems and some applications that expect to be run in full screen usually cover the entire screen.

So basically a Splash Screen…

Gradient Status bar and Toolbar in Android

How to make Gradient Toolbar and Status bar in Android

Hello there, Today we are going to learn how we can make an amazing custom toolbar with gradient effect and also apply the gradient to the status bar like below.

First, let's create a new project or open your existing one.

To make gradient to status bar and toolbar we need to edit our styles.xml file to make it no action bar theme and apply fullscreen so that we can add our custom status bar.

See below snippet of styles.xml and edit your like this.

Open res folder then open values folder and select style.xml.

First, we need to change the parent attribute and replace the value with Theme.AppCompat.Light.NoActionBar by doing this default action bar will remove.

Now we add some property in the styles.xml

This will give us the ability to add a custom status bar.

For the custom toolbar, we need to make a custom layout file.

To do that we create a new layout file by right click on the layout folder and then click on new and then cli…

JSON Rest API in Android

How to use JSON Rest API in Android App

Hello guys, Today we are going to see how we can consume JSON API in Android or we can say consume REST API in Android.
First, let's see what is REST API?
According to
REST is acronym for REpresentational State Transfer. It is architectural style for distributed hypermedia systems and was first presented by Roy Fielding in 2000 in his famous dissertation.
So basically we can fetch data and create data on the server.
Now let's make a working example on JSON API.
First, we have to create a new project in the android studio if you already not created it.
Our end result app will look like this.

To make this UI, we are using android recyclerview and cardview. To use them we need to add the dependency to our project.

After adding the dependency hit the sync button.
We need internet permission as we will fetch the data from the internet.

For demo purposes, we are using user API it is free t…