Reputation: 9301
I have an application I want to adapt to tablets and handheld devices
ListView
and when list item is selected I start another activity.ListView
in one part of the screen and selected item content in another part of the screen. Basically something like this: How should I achieve that? I was thinking different activities and layout resources for each orientation. But I have a feeling that there is a smarter and better way.
Of course I could stuff everything in one activity somehow but it doesn't feel right. Nor looks nice :)
Thank you
Upvotes: 0
Views: 101
Reputation: 19723
What you want to achieve can be done using Fragments
. Here is an example depicting the use of Fragments
.
To communicate between fragments see this link.
Upvotes: 1