Child view adds itself to another view every time when I show dialog

Posted by user565447 on Stack Overflow See other posts from Stack Overflow or by user565447
Published on 2011-01-09T09:43:39Z Indexed on 2011/01/09 9:54 UTC
Read the original article Hit count: 222

Filed under:

A child view had joined the main view. I don't want it to be so. Look at the screenshot. But I want that the dialog has appeared and it disappeared, and the view of the dialog didn't join itself to main view. After I called dialog, the view of the it joined every time and it looked like this:

_http://s014.radikal.ru/i329/1101/cc/4ce75c9e8ae2.jpg

_http://i075.radikal.ru/1101/00/f1b132b07e25.jpg

But the normal view must look like this:

_http://i016.radikal.ru/1101/64/0b2a4718cd0e.jpg

Why it happens?

© Stack Overflow or respective owner

Related posts about android