Is there a method equivalent to Dialog.setOnShowListener () for the View class in android?
I need this because when I call getLocationOnScreen in the view (say foo) in the line right after someViewGroup.addView (foo), I get location = (0,0).
I cannot use any activity lifecycle because adding foo is enabled (button click). Any help would be greatly appreciated. Thanks in advance.
android view
Syed fahad sultan
source share