O'Reilly logo

Mastering Android Wear Application Development by Javeed Chida, Siddique Hameed

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

Revisiting the OnThisDay activity

Note that our initial implementation of the OnThisDayActivity activity from Chapter 5, Synchronizing Data, utilized a TextView method within a ScrollView method. Let's spruce that up using a few simple UI patterns we introduced in this chapter. We will intentionally keep this code simple to give you a chance to grasp the new API classes we use. You are encouraged to contrive use cases and experiment with more interesting patterns such as the 2D Picker.

Enough talk. It's time to write some code. We're now ready to improve our initial On this day feed presentation with a vertical list comprising cards. Each card can be dismissed by a swipe from left to right. The result is a far more usable application.

The OnThisDayActivity ...

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