I have an activity Spinner , which opens in a dialog box using android:spinnerMode="dialog" .
<Spinner android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/spinner" android:layout_below="@+id/linear" android:layout_alignParentEnd="true" android:layout_alignParentRight="true" style="@style/spinner_style" android:spinnerMode="dialog"/> When I click, with the "dialog" open, to the side, on the activity, the space is outside the dialog box, the dialog closes. Is it possible to call a method like OnNothingSelected , which is in the Spinner setOnItemSelectedListener , when closing this dialog.
Is it possible and how to call the method at all, when exiting the dialog box in the above way?