Sunday, August 29, 2010

Android wheel update: event listeners

The wheel control has been updated.
There have been added next wheel event listeners:
  • OnWheelChangedListener - onChange() callback is invoked whenever current wheel position is changed
  • OnWheelScrollListener - onScrollStarts() and onScrollEnds() callbacks are invoked when wheel begins/ends being scrolling.

Monday, August 16, 2010

Rounding picture

Suppose we have an image and we would like to make it's corners rounded.
 The main idea is to combine the original image and already prepared rounded image with the same height and width, and use only those pixels from original image that are present at the rounded one: