Android Application Development (AND-401) — Question 26
Which of the following is true about attribute android:windowSoftInputMode of the <activity> tag in file AndroidManifest.xml?
Answer options
- A. It specifies whether the window is in full screen or not
- B. It adjusts how the main window of the activity interacts with keyboard
- C. It adjusts how the window should be launched
- D. It adjusts the window orientation
Correct answer: B
Explanation
The correct answer is B because the android:windowSoftInputMode attribute specifically dictates how the main window interacts with the soft keyboard, affecting layout and visibility. Option A is incorrect as it pertains to full screen mode, which is not the focus of this attribute. Options C and D are also incorrect as they relate to window launching and orientation, respectively, which are outside the scope of this attribute's functionality.