findviewbyid returns null in a dialog

In my case:
First I must call the

dialog.show(),

and only after it I was able to use

dialog.findviewById(R.id.myID).

If I missed to call the show(), than I got a null back with findViewByID.

Leave a Comment