Android: Control Hierarchy in Custom Components -


i'm reading android docs on custom component development , i'm little confused. if you're creating activity, can add add hierarchy of views via setcontent. however, if you're creating custom component, have handle in draw() overload.

if want build custom component relies on view hierarchy, model create hierarchy internally , in draw call myviewhierarchy.draw() or something?

however, if you're creating custom component, have handle in draw() overload.

not necessarily. that's 1 approach, hardly one.

if want build custom component relies on view hierarchy, model create hierarchy internally , in draw call myviewhierarchy.draw() or something?

no. add children container, add logic container representing composite widget. example, have colormixer custom component combines 3 seekbars, 3 textviews (labels seekbars), , plain view (used provide color swatch).


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -