title: Android: addView and layout method does not work together
body: <p>In Android when I am adding a view object like ImageView to FrameLayout view and then immediately trying to call <code>layout()</code> method to <code>repositioned the added view object</code> it is not working. <strong>But when I call the layout method alone after some new event e.g. touch event then layout() seems to work.</strong> This also happens when bringToFront() and layout() is used together, layout() does not seems to work together with other method. Is there any reason why is this like this? Also instead of adding view object in the middle of the screen can it be ADDED at some specific location in FrameLayout?</p>