setContentView gives an exception
- by sukitha
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