Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications
by James Talbot, Justin McLean, Jorge Hernandez
Creating a Side-by-Side View
With large screens, it’s often better to place two views side by side to make use of the available space to present information to users. With an Android handset, you have much less real estate available, and blocks of information generally need to be split apart. Let’s create a side-by-side view, on devices with larger screen sizes, to display more information.
1. Create a new blank activity called MapActivity using the new Android Activity wizard. Move the MapActivity.java file to the com.androiddevbook.onyourbike.chapter6.activities package.
2. Create a new layout in res/layout called activity_timer_and_map.xml. Inside this layout, include the activity_timer and activity_map layouts inside a merge node, each with ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access