简体   繁体   中英

why UML is showing Android Adapter interface has a View and a ViewGroup

Any anyone tell me why UML is showing Android Adapter interface has a View and a ViewGroup

i am using UML diagram auto generation with Intellij IDEA and i am looking at Android API 14 在此处输入图片说明

If you take a look at the Android Adapter Documentation you'll see that...

An Adapter object acts as a bridge between an AdapterView and the underlying data for that view. The Adapter provides access to the data items. The Adapter is also responsible for making a View for each item in the data set.

And so...

why UML is showing Android Adapter interface has a View and a ViewGroup[?]

The obvious answer is because it does. A more direct answer is because the UML is showing the relationships. I imagine it's a matter of your UML settings. In reality you could show it all the way back to Object , however your UML diagrams should show only important information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM