what is a_view_in_android
TRANSCRIPT
![Page 1: What is a_view_in_android](https://reader035.vdocument.in/reader035/viewer/2022071815/55a93c4b1a28abb5758b465d/html5/thumbnails/1.jpg)
What is a View?
Confused About A View in Android?
![Page 2: What is a_view_in_android](https://reader035.vdocument.in/reader035/viewer/2022071815/55a93c4b1a28abb5758b465d/html5/thumbnails/2.jpg)
View Class
● View Class is just a UI component● Just treat the sub-package name in the Android
SDK as being labeled UI components
![Page 3: What is a_view_in_android](https://reader035.vdocument.in/reader035/viewer/2022071815/55a93c4b1a28abb5758b465d/html5/thumbnails/3.jpg)
ViewGroup
● ViewGroup also an UI component but not a view
![Page 4: What is a_view_in_android](https://reader035.vdocument.in/reader035/viewer/2022071815/55a93c4b1a28abb5758b465d/html5/thumbnails/4.jpg)
Layout Classes
● Yes, again not a view but UI components● Tiring of this game yet?
![Page 5: What is a_view_in_android](https://reader035.vdocument.in/reader035/viewer/2022071815/55a93c4b1a28abb5758b465d/html5/thumbnails/5.jpg)
Widget Classes
● Its a specialized UI control but again its not a view
![Page 6: What is a_view_in_android](https://reader035.vdocument.in/reader035/viewer/2022071815/55a93c4b1a28abb5758b465d/html5/thumbnails/6.jpg)
The XML Layout file
● Its a configuration file for some UI components but again is NOT A VIEW
![Page 7: What is a_view_in_android](https://reader035.vdocument.in/reader035/viewer/2022071815/55a93c4b1a28abb5758b465d/html5/thumbnails/7.jpg)
What IS A VIEW?!!!
● A View in the Application Architecture Patterns is a Contextual Meaning Entity
● You form the contextual meaning from how the
UI components are used in the Controllers
![Page 8: What is a_view_in_android](https://reader035.vdocument.in/reader035/viewer/2022071815/55a93c4b1a28abb5758b465d/html5/thumbnails/8.jpg)
Activity ViewController
● If you have a plain old Activity than that viewController indicates two possible contextual meanings of View
● The Whole Screen as View● The PopUp dialogs as other Views
![Page 9: What is a_view_in_android](https://reader035.vdocument.in/reader035/viewer/2022071815/55a93c4b1a28abb5758b465d/html5/thumbnails/9.jpg)
FragmentActivity ViewController
● In its contextual meaning contains no VIEWs● The fragments its loading point to the
contextual
meaning of Views for the application
![Page 10: What is a_view_in_android](https://reader035.vdocument.in/reader035/viewer/2022071815/55a93c4b1a28abb5758b465d/html5/thumbnails/10.jpg)
Fragment Mini-ViewController
● Indicates that the contextual meaning of View for the application is the section of screen it controls in the form of the UI components its loading
![Page 11: What is a_view_in_android](https://reader035.vdocument.in/reader035/viewer/2022071815/55a93c4b1a28abb5758b465d/html5/thumbnails/11.jpg)
Conclusion
● A sign of a quality software engineer is the proper use of OOP terminology.
● Referring to Views as concrete classes shows a lack of understanding of the power of OOP.
● Part of the power of OOP is that the patterns have
the View as a contextual meaning rather than something just concrete.
● Saying a XML layout configuration file is a View is like stating that a XML java Bean configuration file is a Java Bean. Wise Up People