Let’s simplify this for the sake of learning…
By using this principle we have less coupled, well organised and easy testable class.
let’s look at an example:-
As we know that ViewModel uses for handling the business logic and here…
Let’s make it simple..no more comments………
Unzipping a file is a complex task in android, so make it simple just check this below code you will understand easily.
Original Article: https://www.readerlook.com/unzipping-files-in-android-kotlin/
Any contributor is most welcome and join our Telegram community to learn more: t.me/Adroiddevs.
Here I am showing a excellent android animation library which is built by me but before this I wanna tell you something why you need this library so when you perform any long running task in android application such as
database operation, etc.. you must use a progress bar or any kind of loader to show the users that something is going on in your app and this library helps you to not to write or use extra views (like progress bar).
This android library helps you to show circular loader within floating button. When you click the…
Let’s get you started to easily learn Lambda Expressions and HOFs
Lots of beginners are facing problem to understand the Lambda Expression & Higher Order Function and both are very important if you want to write more readable, maintainable and concise code in your program. You must use lambda expression for function or method in your program wherever required. So we will see one-by-one, what is lambda expression followed by higher-order function.
What is Lambda Expression?
Lambda expression is a function without name, modifier and also without fun key of kotlin function
Lets first see how lambda expression looks: