Same Fragments in FragmentPageAdapter

Vipul Mehta

Greenhorn

Posts: 6

posted 2 years ago

I am developing an ExpenseManager app in android, where i am implementing a fragmentActivity. This fragment shows the account summary page with details such as Account Balance, Account Last Transaction Amount and other details.

The AccountSummary Activity is a multi tab activity implemented with ViewPager, ActionBar, FragmentPageAdapter and FragmentActivity.

The layout of summary page will be common for all the accounts and only the data will get changed depending which account user has selected.

Now i want to implement this activity where i can reuse/ duplicate the same fragment layout (not the instance) across all the accounts or (ActionBar Tabs). so when the user selects any tab from actionBar, it should load/show/display a fragment along with that account data.

(I know that i need to create dynamic Fragment with different TagName and need to replace with the help of FragmentTransaction. But somehow this solution doesnt works)