I am using Spinner with android:spinnerMode="dropdown" . I also set android:configChanges="orientation|keyboardHidden|screenSize" to prevent my Activity from being recreated. when I am in Landscape mode and click Spinner , it appears under Spinner and has a width the same as the Spinner button, now when I rotate the screen to portrait mode, the width of the Spinner button decreases in accordance with the size of the screen, but the pop-up the dialog box does not reduce its width.
Portrait screen mode: 
LAndscape Mode Screen 
I thought about closing the popup and reopening it on the screen, but I did not find a way to close the popup dialog.
source share