get android:windowSoftInputMode attribute programmatically on Android get android:windowSoftInputMode attribute programmatically on Android android android

get android:windowSoftInputMode attribute programmatically on Android


Found the solution, there is no 'convenience' get method but you can easily interrogate the window attributes manually:

int mode = getActivity().getWindow().getAttributes().softInputMode;