KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am newbie in using android fragments .I got a scenario Let me explain it i got Main Activity that extends FragmentActivity .My main activity consists of two Fragments Option List That extends Fragment Details List that extends Fragment Details description that extends Fragment When I launch my main activity . It will consist of Option List in Fragment 1 & Details List in Fragment 2 . Then i select an item from Details List . Then its Description must be loaded into Fragment 2 of the main activity See this image I am not getting an idea how to achieve this . I mean how can i tell Details List fragment to load Details description fragment inside main activity . Also when i press back button i must return to the initial stage ie EDIT : What i did was creating a interfaces(Listener) inside fragments and implement it on my parent activity. But if there is 10 different fragments i need implement all interfaces in my parent activity . So is there any other approach to achieve this??
Tags (comma-separated)
Save Edits
Cancel