Should I put xml landscape layout files for ALL the activities in the same layout-land folder? If there are 3 activities and 3 landscape layout, then how should I name them in layout land folder to be recognized?
I have 2 activities - A and B, they each have 2 lanscape layout in layout-land folder but only activity A can find the layout for landscape, whereas activity B finds the landscape layout for activity A and use it. Why? How to map the landscape layout to its activities?
//ACTIVITY- A
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent bmr= new Intent(TdeeActivity.this,BMRActivity.class);
startActivityForResult(bmr,CALLED_ACTIVITY);
}
@Override
protected void onResume() {
super.onResume();
setContentView(R.layout.activity_tdee);
Button ok=(Button)findViewById(R.id.btnOk);
rdActLevel=(RadioGroup) findViewById(R.id.rd);
ok.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
showResult();
}
});
}