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 LinearLayout.LayoutParams(100,200)); //Now, I check the components width and height Log.v(TAG, "Size = "+button.getWidth() + "," + button.getHeight()); [/code] Unfortunately, the received width and height is still the old one. I already tried to call button.invalidate(), but this doesn't solve the problem either... . Is there any workaround to receive a components height/width right after it has been resized? In java awt/swing there is the ComponentListener (http://download.oracle.com/javase/6/docs/api/java/ awt/event/ComponentListener.html) for resolving these problems. Is there any alternative available in Android? Cheers, Jan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en