Michael Spitsin
Feb 19, 2021

Thanks you for the story and for the prepared methods. Only thing I wanted to add, is that some namings are a bit questionable.

Let me explain this:

1. `View.remove()`- well `ViewGroup` has methods for adding and removing views, so from terminology perspective when you see `titleView.remove` and you didn't dig into the code base, you may think that you removing view from the parent, which is not true

2. `Int.asColor` - part `as` in my personal opinion says that you will make some conversion from Int to Color. And we have that class in Android SDK. In your example what you receiving is Color Int, not just a color.

Michael Spitsin
Michael Spitsin

Written by Michael Spitsin

Love being creative to solve some problems with an simple and elegant ways

Responses (1)