Posts

Showing posts from 2020

Deep Dive To RecyclerView And Its Components

Image
We all have heard about the RecyclerView and always explain it as an advanced form of ListView. No doubt, that the RecyclerView is an advanced and flexible form of ListView. But the question arises, Is that really so? Do we actually explain it correctly? The straight answer for this is No. As the name suggests, RecyclerView recycles its view for displaying a list. This means the count of views it creates is in such a manner that it will cover the screen and even have a few extra views to display. But further on it will just reuse the scrolled off the view to display the upcoming data on it. For Example, if the list size is 100 and at a time only 4 cards are visible on the screen. So RecyclerView will generate 5 or 6 cards only and when the 6th card would be scrolled above then after that the first card would be recycled to display the data. Above mentioned was the overview of RecyclerView e.i. What is RecyclerView? Now, let's have a look at its components. Components of RecyclerVie...

What is Proguard?

Image
Generally, we see lots of terms, keywords, or files but due to some timing issue, we don’t feel it important to go through that and figure out its usage and importance. Android Proguard is also among those and as it plays a really important role while building .apk, So it's time to get known to Android Proguard. Android Proguard is a free java class file shrinker, optimizer, and obfuscator. Components of Proguard      1.      Shrinker: It detects and removes unused classes, files, methods, and attributes.      2.      Optimizer: It analyzes and optimizes the bytecode of the methods.      3.      Obfuscator : It renames the remaining classes, fields, and methods using short meaningless names. It is mainly used to prevent the reverse engineering of Android Applications. Benefits of Proguard As we all got to know about Proguard till now, we should also know about its main benefits and why we use it...