This video discusses the Android View System View class, which has 31,178 lines. Then we move towards TextView and Button implementation. Then, in the end, we discuss how OnClickListener works under the hood. There are many amazing things that we learn, but the one that amazed me was when we create a one TextView mainly, we are loading approximately 45,137 = 31,178 + 13,959 number of lines in memory (For simplicity skipping compiler optimizations, optimization which occurs at the object level like as we know in OOP methods are shared at memory level)
Note: I am not an expert in Android Platform API, so it is a considerable possibility my hunch is wrong about some specific code, but we can still enjoy it.
#opensourcesoftware #opensource #android #views #textview
Негізгі бет Android View (31,178), TextView (13,959), Button (182) and how ClickListener works under the hood.
Пікірлер