This seems to be a common question yet documentation is very hard to find. I'm looking for examples that show me how to create my own view group (preferably by extending an already existing one) and then add views programmaticly.
ViewGroup is abstract, and its onLayout is abstract too. So you need to provide an implementation for onLayout where you do assign a position at every child (View) of the viewgroup.
Possible Duplicate:
How to size an Android view based on its parent’s dimensions
how do I use getMeasuredWidth() and getMeasuredHeight? It always returns 0. what is the diffrence between this and getHeight() and getWidth()?
Can we place a small view over another large view? For example, I have a VideoView which is playing a file in the background. Over this, somewhere in the middle/corner, I want to place another ImageView.
But in Linear/…