I have implemented an application for android 7 incs tablet.In my application i have used two types of layouts in layout-land and layout-port directories with same xml name and different designing.
In this application the tablet view is in landscape mode as by default when i change the orientation of emulator the the view is calling portrait xml from layout-port and if again change emulator orientation it is not getting xml view from layout-land.
I have implemented my application as follows:
if(wm.getDefaultDisplay().getOrientation()==1){
//portrait view code
}
else{
//landscape view code
}
from the above logic i can get the view from land scape to portrait but i can't get same view portrait to landscape.
How can i get my land scape view when i change landscape to portrait to landscape?
please any body help me?