O'Reilly logo

Android UI Fundamentals: Develop and Design by Jason Ostrander

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7. Android Widgets

The Android home screen is more than just a collection of application launchers. It’s a user-configurable dashboard that contains a mix of quick-launch shortcuts and easily accessible information. Android apps can create mini applications called widgets, which contain a subset of the full functionality of an app. This chapter covers the basics of widgets. Along the way, you’ll learn that widgets can be embedded in any application, though they are typically embedded in the home screen; that RemoteViews allow apps to create a full layout hierarchy and send it to other processes that can inflate and display it; and that widgets can display dynamic collections of data from sources such as databases.

Creating a Basic Widget

An Android ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required