summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsFileA3D.cpp
diff options
context:
space:
mode:
authorCyril Mottier <cyrilmottier@gmail.com>2010-02-06 00:36:40 +0100
committerCyril Mottier <cyrilmottier@gmail.com>2010-02-06 00:36:40 +0100
commitb81b1447d2cfa9dc5bcc02c8a1b7193400a97ab6 (patch)
treedc6bc0f013a7a637ab7dc9cd4365e31e49bfba73 /libs/rs/rsFileA3D.cpp
parentb09ef7b4fa388c1399a6359e239789ca0137aaac (diff)
downloadframeworks_base-b81b1447d2cfa9dc5bcc02c8a1b7193400a97ab6.zip
frameworks_base-b81b1447d2cfa9dc5bcc02c8a1b7193400a97ab6.tar.gz
frameworks_base-b81b1447d2cfa9dc5bcc02c8a1b7193400a97ab6.tar.bz2
Default RotateDrawable's pivot set to (50%, 50%)
In order to define the pivot in an XML-instanciated RotateDrawable, android:pivotX and android:pivotY had to be set in your XML. Forgetting to set those attributes ended up in a NullPointerException (tv = null) that were caught by the Resources.getDrawable() method (caught as an Exception). As a result a not-very-accurate message was logged: "Resource not found ...". Defining a default pivot value seems like a great fix. Some other fixes would be to modify the documentation or notify the user with a better explanation than "Resource not found ...".
Diffstat (limited to 'libs/rs/rsFileA3D.cpp')
0 files changed, 0 insertions, 0 deletions