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: 266
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