Android Popup Window's UI Doesn't Appear While Recording A Test Case

I tried to click a button that was inside of PopupWindow but test recorder GUI didn’t render my popup and didn’t find my UI element. How can I write an action for that button click? Thanks.