I created three tabs in my Main Activity using Fragment Activity, ActionBar, ViewPager. I have three tabs tab1, tab2, tab3. In tab1 two buttons are available, whenever user clicks on button i am replacing a fragment with another fragment using Fragment Manager and Fragment Transaction
Code to replace fragment :
FragmentTransaction fragmentTransaction = fragmentManager
.beginTransaction();
CreditHistoryActivity creditHistoryFragment = new CreditHistoryActivity();
fragmentTransaction.replace(R.id.content,
creditHistoryFragment);
fragmentTransaction.addToBackStack("fragment1");
fragmentTransaction.commit();
Here, After pressing the button in tab2 the replaced content is overlapping on main content
Can u please tell me how to solve this issue.
Thank you.