Click here to Skip to main content
15,305,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Navigation Drawer in my application due to which I am having only one activity, I have converted rest of the screens into fragments. On one of these fragments, I am using FragmentTabHost to have multiple tabs. How can I replace part of this fragment(except the FragmentTabHost control) when tab is changed?

What I have tried:

C#
var fragment = new DraftJobsFragment(Resource.Layout.DraftJobsFragment);
              FragmentManager
                  .BeginTransaction()
                  .Replace(Resource.Id.fragmentContainer, fragment)
                  .Commit();



I have tried this, but this code works fine only if the FrameLayout( fragmentcontainer here) is part of the layout which is rendered by an activity and not a fragment.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900