Specific orientation for different fragments

view story

http://stackoverflow.com – I want to change screen orientation for each fragment independently in my app (i.e. fragment A is landscape only and fragment B is portrait only) just like I can do that for activities using AndroidManifest.xml. When I create my fragments I pass a scecific screen orientation constant for each fragment using Fragment.setArgunents(..). I am switching fragments in base activity like that: public void setCurrentFragment(Fragment fragment, boolean addToBackstack) { FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction().replace(R.id.frameLayout, fragment (HowTos)