Whenever we as Android developers see a perfect and complicated design that a professional designer has implemented, we say: “What the hell? how can we implement this difficult masterpiece?”. In this article, we are going to describe a way to implement the most challenging designs. If you prefer to use PNG and SVG instead of custom view and increase your APK size, skip this article :).
Have you thought about Kotlin equivalents in Java? In this article, we will decompile the most common Kotlin features to Java and check their comparisons. Also, this article is going to be a cheat sheet for interviewees :). So let's check all of them.
Update: Sealed class, Data class, Object, suspend functions are added.
By default, classes and functions in Kotlin are final. So, you can’t extend classeswithout an open modifier behind them.
Nested classes without an inner modifier are static. Here, the Programmer class is final and static. For the Gamer class, the inner modifier has been used…
In this article, I’ve tried to explain about TouchEvent and describe what happens when the user touches the screen. Always, some questions occur to us while we are trying to implement custom views, “Which one of them I should use? onTouchEvent or onInterceptTouchEvent? What's the difference between them?” 🤔
To gain the answer, come with me 🙃.
Software engineer. I love learning, teaching, and coding. Android Developer at Round Table Apps