java - view and viewgroup android -


i know java basics , learning android development now. have learnt there 2 central android classes ui,view , viewgroup. want correct me wherever wrong. viewgroup subclass of view,and holds view objects together.textview,edittext etc subclasses of view , linearlayout,gridview etc subclasses of viewgroup. want relate oop concept of java dont seem this. objects?how come subclass container?

i'll give basic overview here. i'm pretty new android, correct-me-if-i'm-wrong thing goes me too. :)

a view unit of ui; like, say, box of 24x24 pixels (yes, basic). box can used anything, because top-most entity in hierarchy. can define more precisely specifying want hold, textview, imageview, webview, etc. come in. box 24x24 may hold text, image or web-page content, respectively.

a viewgroup can belong in 'etc.' above. showing text, 24x24 box can used display 4 boxes 12x12. if so, view can classified viewgroup.

further, when know type of arrangement require box hold, in case, can further classify of linearlayout, relativelayout, gridlayout, framelayout, etc.

in such hierarchy, entity can have child object of kind, instance of own class.

you may view 'object' of ui.

i hope have helped you.

comments/edits welcome. :)


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -