How do you_honeycomb_android_for_tablets

  • 1,736 views
Uploaded on

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

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

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,736
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
21
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. How do you Honeycomb? Android for Tablets Sparky Rhode Android Developer Relations
  • 2. What is a Tablet?
  • 3. Compared to...Phone PC a tablet is more... Powerful Convenient Discoverable Personal Fun Immersive
  • 4. UX Guidance More context More discoverable Fewer touches Rich content Fun transitions
  • 5. New for Honeycomb Fragments Action Bar Drag and Drop Extended Widgets Rich Notifications Holo Theme System Bar RenderScript
  • 6. Rethinking UX Options menu Action bar Forced orientation Rotation agnostic Long press Drag and drop Static keys System bar
  • 7. Well, thats just ducky.Now how do I do it?
  • 8. Android 3.0 SDKhttp://developer.android.com/sdk/android-3.0.htmlAPI Level: 11SDK Tools: r10
  • 9. Holographic Theme<manifest ... > <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="11" /> <application ... > ... <application></manifest>
  • 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. Tablet Layout Extra-large Landscaperes/layout-land/res/layout-xlarge-land/res/layout-xlarge-port/
  • 12. Action Bar Menu Resource<?xml version="1.0" encoding="utf-8"?><menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/menu_add" android:icon="@drawable/ic_menu_save" android:title="@string/menu_save" android:showAsAction="ifRoom|withText" /></menu>
  • 13. Fragmentshttp://developer.android.com/guide/topics/fundamentals/fragments.htmlLayout<fragment class="com.example.android.MyFragment"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. Compatibility LibraryAndroid OS 1.6 (SDK 4) and higher
  • 15. Extra Credit Enhanced Widgets Rich Notifications Property animation Hardware acceleration RenderScript
  • 16. Useful URLshttp://developer.android.com/guide/practices/screens_support.htmlhttp://developer.android.com/guide/practices/optimizing-for-3.0.htmlhttp://android-developers.blogspot.com/ Fragments For All Animation in Honeycomb Introducing Renderscript The Android 3.0 Fragments API
  • 17. Q&A