Ramprasad
Ramprasad

Reputation: 8071

Why we need Activity B to support multiple screens as per android design

As per Android design guidelines to support multiple screens(Phone and tablet),

In phone,why we need to start another activity B and put detail fragment on it? simply we can replace master-fragment by detail-fragment in Activity A itself?

Upvotes: 2

Views: 83

Answers (2)

Mark
Mark

Reputation: 7718

Indeed, Google now recommends using a single Activity.

Today we are introducing the Navigation component as a framework for structuring your in-app UI, with a focus on making a single-Activity app the preferred architecture.

Upvotes: 0

CommonsWare
CommonsWare

Reputation: 1006944

That is certainly possible. It will make Activity A more complicated, though, and overall it may not simplify your app.

Upvotes: 1

Related Questions