[android-developers] How do I know that a View has been resized?

2010-08-04 Thread Jan Meskens
Hi all, I am currently looking for a way to detect that a view has been resized. It seems that there is some time between calling a resize method and when it is actually resized For example: [code] //I give a certain width and height button.setLayoutParams(new

[android-developers] Re: How do I know that a View has been resized?

2010-08-04 Thread Jan Meskens
...@gmail.com wrote: protected void  onSizeChanged  (int w, int h, int oldw, int oldh) On Aug 4, 2:30 pm, Jan Meskens meskens...@gmail.com wrote: Hi all, I am currently looking for a way to detect that a view has been resized. It seems that there is some time between calling a resize

[android-developers] Re: How do I know that a View has been resized?

2010-08-04 Thread Jan Meskens
are you calling the setLayoutParams method? In some event? Regards Sarwar Erfan On Aug 4, 5:16 pm, Jan Meskens meskens...@gmail.com wrote: Thanks for your reply. But the problem is that this solution can only be applied to custom widgets (which are subclassed fromt View) and thus can

[android-developers] Update TextView when receiving Network messages

2009-06-15 Thread Jan Meskens
: shows that the messages are received correctly Log.i(XMPPCLient, Got message +arg1.getBody()); } } Hopefully someone can help me out. Kind regards, Jan Meskens --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Update TextView when receiving Network messages

2009-06-15 Thread Jan Meskens
Hi All, I made a simple android client app containing a UI with a TextView. From a server application (that runs on a desktop PC), I am sending messages over XMPP (using the Smack library) to the android client and I want to display the content of these messages in the textview. The messages are