08-01-2011 09:34 AM
Hi to all ,
I am developing a UI in which i am using managers , but these manager are bot working very good for me.
I have some repainting issue on the change of Display orientation , Can anyone help me about it ,
Another question does using too many mangers have bad effect on performs means does it make my code slow ??
08-01-2011 12:01 PM
08-01-2011 12:09 PM
08-02-2011 12:30 AM
Hi to all
thanks for your replies
Your replies are quite helpful.I have two managers on change of orientation i call invalidate() for each manager in the pain () method of the screen.
But its not working . Am i missing something??
08-02-2011 08:15 AM
I'm still learning but as far as I know invalidate will call pain() so you should put invalidate outside paint() (or subpaint()) and put it in layout() (or sublayut())
By doing this, each time the layout changes (orientation for example) you will call paint() and the height and width will be recalculated.