Martynas Jurkus
Martynas Jurkus

Reputation: 9301

Handle different layout and different orientations

I have an application I want to adapt to tablets and handheld devices

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

Answers (1)

Ragunath Jawahar
Ragunath Jawahar

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

Related Questions