MVVM

  1. In Android development, Canvas can be used to draw custom views. If you would like to draw a smooth curve, you can use the bézier curve logic. Here is a simple example that displays how to draw a cubic bézier curve on Android.

  2. When we think about MVVM, the first thing that comes to our mind about the job of ViewModel is to fetch data from a model layer. I did some research on how to make the best use of ViewModel and encountered Architecture related classes such as Transformations and LiveData builder. Today, let me introduce some use cases of them with the app that calls TwitterAPI.

  • 1

COPYRIGHT © 2023 Kohei Ando