Skip to main content

Posts

Showing posts from August, 2020

Top 10 Libraries every android developer should know [Best For Beginners]

Hello world, today we are going to see the top 10 libraries for the android developer that they should know about. You can use these libraries or you can also use their equivalent libraries if you like. These top 10 libraries are based on my experience this list can be different from person to person. The top 10 libraries every Android developer should know are listed below.Fast Android Networking LibraryGlideRoom Persistence LibraryFirebase Cloud FirestoreCrashlyticsLeakCanaryExoPlayerFirebase AuthFirebase StorageFacebook Shimmer1. Fast Android Networking LibraryFast android networking as the name suggests this library is used for making HTTP requests. But what makes this library stand out of other libraries is its simplicity of use that everyone can start using it without any other requirement or follow any pattern. Just add this library to your project and start using it. It uses OkHttp and Okio which makes it fast also supports RxJava. Top features of Fast A…

Upload Image to Firebase Storage | Android Tutorial

How to upload Image to Firebase Storage in Android Hello world, today we are going to learn how we can upload an image to the firebase storage from our android application. We will see how we can show the progress of uploading an image to the user. Firebase storage gives use utility to upload the file and get the URL of that uploaded file so that we can access our file through the link. Let's see the final result we are going to learn. Before staring the code we need to enable firebase storage in our Firebase project. Open your Firebase console and select the project and click on storage then follow the on-screen instructions. After creating the storage we need to change our storage rule so that we can access the storage with the authentication. Open your rules and change the if condition and replace != to ==. After make changes hit the publish button and we are ready to go. In your android project add these dependencies to work with firebase storage.
Ad…

How to change font family of textview.

How to change font family of textview
Hello world, today we are going to see how we can set the different font families to the textview. Why we need to use a different font for textview because simple or default font family of textview looks so simple and to give a professional look to our app we need custom fonts for textview. Let's see how to add custom fonts in the android application.
Below is the example of the custom fonts added to the textview.

In the above image first font is default one and the rest are custom added fonts.
To add the fonts first we need to download the .ttf files.
Download .ttf fonts for textview You can download fonts(.ttf) from here https://fonts.google.com/
Download one or more fonts that you like to add in the app.
Create a font folder and add fonts After downloading we need to add these fonts in the font folder in the android project.
To make the font folder right-click on res folder then click on new then click on Android Resource…

Bottom sheet in android | Android Tutorial 2020 Updated

How to make Bottom Sheet in Android


Hello world, today we are going to see how to make a persistence bottom sheet and how to make a modal bottom sheet in the android. The bottom sheet has two types, one is persistence and the second is a modal sheet. In both cases, the bottom sheet slides up. In the persistence bottom sheet, some parts of the bottom sheet showing to the user so that the user can slides up and in the model bottom sheet you can make a trigger to show the bottom sheet and it is fully hidden unlikely persistence bottom sheet. When a user clicks on a button or something you can trigger the modal bottom sheet to show. Let's see the finished app which we are going to make below.


Before making any type of bottom sheet we must add the dependency. Add Bottom Sheet Dependency in Android Project
Let's first make a persistence bottom sheet. How to make Persistence Bottom Sheet First, we need to make our layout for the bottom sheet so let's do t…