Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

How do you_honeycomb_android_for_tablets


Published on

This presentation contains a quick overview of how your Android application can access the new tablet-oriented capabilities in Android 3.0 "Honeycomb".

Published in: Technology
  • Be the first to comment

  • Be the first to like this

How do you_honeycomb_android_for_tablets

  1. 1. How do you Honeycomb? Android for Tablets Sparky Rhode Android Developer Relations
  2. 2. What is a Tablet?
  3. 3. Compared to...Phone PC a tablet is more... Powerful Convenient Discoverable Personal Fun Immersive
  4. 4. UX Guidance More context More discoverable Fewer touches Rich content Fun transitions
  5. 5. New for Honeycomb Fragments Action Bar Drag and Drop Extended Widgets Rich Notifications Holo Theme System Bar RenderScript
  6. 6. Rethinking UX Options menu Action bar Forced orientation Rotation agnostic Long press Drag and drop Static keys System bar
  7. 7. Well, thats just ducky.Now how do I do it?
  8. 8. Android 3.0 SDK Level: 11SDK Tools: r10
  9. 9. Holographic Theme<manifest ... > <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="11" /> <application ... > ... <application></manifest>
  10. 10. Custom Themesres/values/styles.xml<style name="LightThemeSelector" parent="android:Theme.Light"></style>res/values-v11/styles.xml<style name="LightThemeSelector" parent="android:Theme.Holo.Light"></style>AndroidManifest.xml<activity android:theme="@style/LightThemeSelector">
  11. 11. Tablet Layout Extra-large Landscaperes/layout-land/res/layout-xlarge-land/res/layout-xlarge-port/
  12. 12. Action Bar Menu Resource<?xml version="1.0" encoding="utf-8"?><menu xmlns:android=""> <item android:id="@+id/menu_add" android:icon="@drawable/ic_menu_save" android:title="@string/menu_save" android:showAsAction="ifRoom|withText" /></menu>
  13. 13. Fragments<fragment class=""android:id="@+id/titles" android:layout_weight="1" android:layout_width="0px" android:layout_height="match_parent" />Classpublic class MyFragment extends Fragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.my_fragment, container, false); }}
  14. 14. Compatibility LibraryAndroid OS 1.6 (SDK 4) and higher
  15. 15. Extra Credit Enhanced Widgets Rich Notifications Property animation Hardware acceleration RenderScript
  16. 16. Useful URLs Fragments For All Animation in Honeycomb Introducing Renderscript The Android 3.0 Fragments API
  17. 17. Q&A