구글 개발자 사이트에 잘 기술되어있음.
까먹어서 다시 검색한 김에 정리해 둔다.
나중에 번역해서 다시 글 수정할 예정..
- The state of the soft keyboard — whether it is hidden or visible — when the activity becomes the focus of user attention.
- The adjustment made to the activity's main window — whether it is resized smaller to make room for the soft keyboard or whether its contents pan to make the current focus visible when part of the window is covered by the soft keyboard.
The setting must be one of the values listed in the following table, or a combination of one "
state..." value plus one "
adjust..." value. Setting multiple values in either group — multiple "
state..." values, for example — has undefined results. Individual values are separated by a vertical bar (
|). For example:
<activity android:windowSoftInputMode="stateVisible|adjustResize" . . . >
Values set here (other than "
stateUnspecified" and "
adjustUnspecified") override values set in the theme.
|"||The state of the soft keyboard (whether it is hidden or visible) is not specified. The system will choose an appropriate state or rely on the setting in the theme.|
This is the default setting for the behavior of the soft keyboard.
|"||The soft keyboard is kept in whatever state it was last in, whether visible or hidden, when the activity comes to the fore.|
|"||The soft keyboard is hidden when the user chooses the activity — that is, when the user affirmatively navigates forward to the activity, rather than backs into it because of leaving another activity.|
|"||The soft keyboard is always hidden when the activity's main window has input focus.|
|"||The soft keyboard is visible when that's normally appropriate (when the user is navigating forward to the activity's main window).|
|"||The soft keyboard is made visible when the user chooses the activity — that is, when the user affirmatively navigates forward to the activity, rather than backs into it because of leaving another activity.|
|"||It is unspecified whether the activity's main window resizes to make room for the soft keyboard, or whether the contents of the window pan to make the current focus visible on-screen. The system will automatically select one of these modes depending on whether the content of the window has any layout views that can scroll their contents. If there is such a view, the window will be resized, on the assumption that scrolling can make all of the window's contents visible within a smaller area.|
This is the default setting for the behavior of the main window.
|"||The activity's main window is always resized to make room for the soft keyboard on screen.|
|"||The activity's main window is not resized to make room for the soft keyboard. Rather, the contents of the window are automatically panned so that the current focus is never obscured by the keyboard and users can always see what they are typing. This is generally less desirable than resizing, because the user may need to close the soft keyboard to get at and interact with obscured parts of the window.|
This attribute was introduced in API Level 3.
'Mobile Programming > Android Tip' 카테고리의 다른 글
|소프트 키보드 노출에 따른 화면 레이아웃 (0)||2013/11/24|
|background attribute 접근 (0)||2013/09/21|
|Emulator 단축키 (0)||2012/02/17|
|Android 개발 Tip - 13. HashMap Loop (0)||2011/11/28|
|Android 개발 Tip - 12. ListView 를 작성할때 체크 해야 할 것. (0)||2011/10/06|
|Android 개발 Tip - 11. 동적으로 Layout을 생성했을때 잊지 말아야 할 것.. (0)||2010/12/01|