Dynamically change view inside view in Android
问题 I have this RelativeView with 3 radiobuttons on top. I want to change the bottom part of the view when the user clicks on one of the buttons. The blue part is the place i want to load different Views in. @Override public void onCheckedChanged(RadioGroup group, int checkedId) { if (checkedId == iVerzekeringen){ layout.removeView(body); // THIS PART IS layout.addView(testview); // NOT WORKING } else if (checkedId == iPersoonlijk){ } else if (checkedId == iNotities){ } } How can i load different