سؤال

is there a listener or some way to determine when contentView is created? I have used other type listeners and they work for other child views inside of content view. however content view is different. I have not yet found anything that works.

هل كانت مفيدة؟

المحلول

Have you tried onContentChanged() yet?

The documentation says

This hook is called whenever the content view of the screen changes (due to a call to Window.setContentView or Window.addContentView).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top