toggle

AAPL Stock: 121.29 ( -1.08 )

Printed from http://www.macnn.com

Android 'Fragment' API scales apps to different screen sizes

updated 05:25 pm EST, Fri February 4, 2011

API aims to avoid fragmentation issues

Google has introduced a new Android API that aims to make it easier for developers to scale application layouts across a range of screen sizes and resolutions. The utility, which carries the tongue-in-cheek name 'Fragment,' will arrive as part of Android 3.0 alongside existing scaling capabilities introduced with earlier builds.

Most of the current options are geared for switching between different resolutions and aspect ratios common to smartphones, but the Fragment API is designed for "more radical UI adjustment" as the platform moves toward tablet interfaces presented on large screens, according to a blog post from Google software engineer Dianne Hackborn. Developers can tweak the UI layouts and features to suit a wider range of possible devices.

"For developers starting work on tablet-oriented applications designed for Android 3.0, the new Fragment API is useful for many design situations that arise from the larger screen," Hackborn explains. "Reasonable use of fragments should also make it easier to adjust the resulting application's UI to new devices in the future as needed -- for phones, TVs, or wherever Android appears."

Although the Fragments API will first arrive on Android 3.0, Google is working to bring the same functionality as a static library for versions back to Android 1.6.











by MacNN Staff

POST TOOLS:

TAGS :

toggle

Comments

  1. facebook_Omega

    Via Facebook

    Joined: Feb 2011

    +2

    I'm impressed

    Now one word or mention of iproducts in this new story. Thank you for your pure journalistic endeavor here. PLEASE keep up the good work. ;)

  1. AdamC

    Joined: Dec 1969

    -1

    It's not the screen size

    It's not the screen size it is the many different manufacturers' build.

    And this means the developers have to test the app on the many manufacturers' sets.

    Anyway good luck to those who develop for android.

    Don't forget the app is easily ripped off.

Login Here

Not a member of the MacNN forums? Register now for free.

toggle

Network Headlines

Follow us on Facebook

toggle

Most Popular

Advertisement

Recent Reviews

HP 14-x030nr 14-inch Chromebook

If you're like us, chances are you've come to realize that you need the ability to access the Internet on the go. Also, you've prob ...

15-inch MacBook Pro with Force Touch

Apple's 15-inch Retina MacBook Pro continues to be a popular notebook with professional users and prosumers looking for the ultimate ...

Typo keyboard for iPad

Following numerous legal shenanigans between Typo -- a company founded in part by Ryan Seacrest -- and the clear object of his physica ...

toggle

Most Commented