Printed from http://www.electronista.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 Electronista 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

    Fresh-Faced Recruit

    Joined: Apr 2008

    -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

toggle

Most Popular

Sponsor

Recent Reviews

DoxieGo Portable Scanner

Sometimes, people need to scan things, but having a computer at hand to do so isn't exactly feasible. Maybe it's the home of a relativ ...

Dell AD211 Bluetooth speaker

For all of the high-priced, over-engineered Bluetooth speakers in the electronics market, there is still room for mass-market solution ...

VisionTek 128GB USB Pocket SSD

USB flash drives dealt the death blow to both the floppy and Zip drives. While still faster than either of the old removable media, sp ...

Sponsor

toggle

Most Commented

 
toggle

Popular News