Toggle Menu

Charlie Calvert on Elvenware

Writing Code and Prose on Computers

Core Code

OS and Tools



See the Google IO 2011 App

Action Bar

The ActionBar at the type

It is divided into three sections, with the actions on the right.

There is a separate API

THeme.Holo for SDK 11 or above

You can split an action bar into two levels

Multi-pane layouts

Helpful on big screens like a tablet

Stretch, Stack, Expand/Collapse, Show/Hide

You should have the same features in portrait and landscape.

Fragments and Multi-pane

The Fragment Class or Fragment Tag.

These are fragments of an Activity

Unit of reuse between Activities

Separation of concerns

Fragments don’t necessarily have views.

Fragments are backward compatible with even 1.0?

drawable-ldpi/mdpi/hdpi is low density, medium density, high density

Activities can inflate layouts with different  gragment configurations. You ahve layout-xlarge, layout-medium, etc.

Use CarouselView, but avoid Gallery. Use FragmentPager, Workspace for showing one item at a time.

Everyone uses fragments, but Phones tend to use SessionsActivity, while tablets use SessionsMultiPaneActivity

Phones: 10dp, 18sp, 36dp, Tablets: different sizes.

Copyright © Charlie Calvert | Elvenware Home | Writing Code | Delphi | CSharp | My Books