09-19-2013 11:02 AM
I am working on a blackberry field, it's working well, but i need to setMargin of the field in relative to others if the blackberry is tilted.
Is it possible to set the margins in the paint method, because the tilt invokes the layout() method, which invokes invalidate().
09-19-2013 04:12 PM
paint() should only paint - it should not change the layout of the Field.
The place to alter positioning of Fields is in the Manager's sublayout. sublayout is called when the device is tilted.
09-20-2013 05:01 AM
Removed - or moved somewhere that is not visible?
Also, sorry, I should have given you more in my previous post. You should not do a setMargin in sublayout either. You should use sublayout to positin your Fields directly, whihc is possibly a little complicated, but see these KB articles for more: