should help you out This is probably an easy question to answer, but searches were just turning up things like inflating and xml layouts, which isn't what I want. , This solution finally worked for me. From the main activity:
How can I get reference on TextView from XML layout in AlertDialog?
By : Natalia Terlecka
Date : March 29 2020, 07:55 AM
wish of those help You almost had it there in your original code. You saved the View returned by LayoutInflater, so that's the one you should use when calling findViewById() so it must be dialogLayout.findViewById(...). I was having the same issue myself and works like charm now.