Langsung ke konten utama

Postingan

Menampilkan postingan dari April, 2011

Customizing the Action Bar

Posted by Tim Bray on 13 April 2011 at 2:28 PM [This post is by Nick Butcher , an Android engineer who notices small imperfections, and they annoy him. — Tim Bray] Since the introduction of the Action Bar design pattern, many applications have adopted it as a way to provide easy access to common actions. In Android 3.0 (or Honeycomb to its friends) this pattern has been baked in as the default navigation paradigm and extended to take advantage of the extra real-estate available on tablets. By using the Action Bar in your Honeycomb-targeted apps, you'll give your users a familiar way to interact with your application. Also, your app will be better prepared to scale across the range of Android devices that will be arriving starting in the Honeycomb era. Just because Action Bars are familiar, doesn’t mean that they have to be identical! The following code samples and accompanying project demonstrate how to style the Action Bar to match your application’s branding. I’ll demonstrate