Я хочу изменить содержимое «RelativeLayout», проблема в том, что содержимое этого макета находится в другом xml.Загрузить макет из другого XML
setContentView(R.layout.activity_fullscreen);
//from actual xml
RelativeLayout rL1= (RelativeLayout) findViewById(R.id.principalLayout);
//from another xml
RelativeLayout rL2= (RelativeLayout) findViewById(R.id.cocinaL);
rL1.removeAllViews();
rL1.addView(rL2); //this fail because rL2 is null
Спасибо