setContentView gives an exception

Posted by sukitha on Stack Overflow See other posts from Stack Overflow or by sukitha
Published on 2010-05-19T05:13:05Z Indexed on 2010/05/19 5:20 UTC
Read the original article Hit count: 243

Filed under:
|
|
|
|

I have a button and onClick it changes the contentView by setContentView (int layoutResID). It works fine. But if you take the focus to the button by the trackball(making it yellow) and tap on it, it gives the exception.

java.lang.IllegalArgumentException: parameter must be a descendant of this view

© Stack Overflow or respective owner

Related posts about android

Related posts about illegal