benjymous / MWM-for-Android

Meta Watch Manager Android SDK project for watch wrangling, remote protocol handling and notification routing for the Meta Watch wearable development systems. Includes an Intents based API for quick experiments.
www.metawatch.org
Apache License 2.0
59 stars 30 forks source link

Widgets on top #70

Closed logicalChimp closed 11 years ago

logicalChimp commented 11 years ago

Adds a new preference option to Digital Watch - the option to display widgets on the top of the row (with the value underneath) (default) or to display the text on top

Note that this change includes some refactoring of the generic Utils.drawIconStringWidget to pull the explicit left/top values out to utility functions (getIconOffset / getTextOffset). This allows the logical for repositioning icons to be centralised, and makes the positioning available to widgets that use custom draw functions (PhoneStatus, Calendar), ensuring consistent behaviour