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

Cat B100

Cat is primarily known for its heavy-duty machinery used in the construction industry and farming, among other areas. What may not be ...

Linksys EA6900 AC Router

As 802.11ac networking begins to makes its way into more and more devices, you may find yourself considering an upgrade for your home ...

D-Link DIR-510L 802.11AC travel router

Having Internet access in hotels and other similar locations used to be a miasma of connectivity issues. If Wi-Fi was available, it wa ...

Sponsor

toggle

Most Commented

 
toggle

Popular News