In Android, after calling View.setLayoutParams , how can you find out the size (width and height) and position (x and y) of the view?
If I request these properties immediately after setLayoutParams , they return invalid values.
According to the documentation, View.onSizeChanged is called after the view is resized. Does this mean that I should subclass the widget whose dimensions I want to request, override onSizeChanged and report my change activity?
source share