Insert a layout into a layout with his constructor

view story

http://stackoverflow.com – I'd like to insert a layout in a layout and I've read that it's with the tag <include />, but, what do I have to do if I want to modify this layout with a code constructor? I think may be a form to run a function like onCreate(), to give data to that layout. (HowTos)