One of the best anime ever!!! Touch OST
Today we are going to write a custom view that count your steps.
There are 2 parts to draw: the arcs and the text. The arcs are easy to draw, only thing to keep in mind is to remember the border width. The tricky part is to draw the text. Suppose we want the text to be in the center of the view. Since the canvas.drawText() will use the baseline to draw.
You: Master, I heard this PECS in the JAVA world. But I’m deeply puzzled by it. Master: Do you know what it stands for? You: Producer Extends Consumer Super? Master: In order to understand it, you shall stop thinking about what these words mean, it’s not helpful at all. Just follow my questions. You: Yes, Master. Please start. Master: There are plants, then there are fruits, then there are apples and pears.
You know nothing about realm, then watch this video first -> Now you should know the basic basics, then take a look at the official doc. You think you know it all until you try to combine with RxJava. Now you are super puzzled, look at some examples with full source code. Finally you realize that you have to do all this in clean architecture and decided to give up by turning Realm into a NoSQL version SQLite.