소프트 키보드 노출에 따른 화면 레이아웃

Mobile Programming/Android Tip 2013. 11. 24. 22:14

구글 개발자 사이트에 잘 기술되어있음.

까먹어서 다시 검색한 김에 정리해 둔다.

나중에 번역해서 다시 글 수정할 예정.. 


android:windowSoftInputMode
How the main window of the activity interacts with the window containing the on-screen soft keyboard. The setting for this attribute affects two things:
  • 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.

ValueDescription
"stateUnspecified"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.

"stateUnchanged"The soft keyboard is kept in whatever state it was last in, whether visible or hidden, when the activity comes to the fore.
"stateHidden"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.
"stateAlwaysHidden"The soft keyboard is always hidden when the activity's main window has input focus.
"stateVisible"The soft keyboard is visible when that's normally appropriate (when the user is navigating forward to the activity's main window).
"stateAlwaysVisible"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.
"adjustUnspecified"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.

"adjustResize"The activity's main window is always resized to make room for the soft keyboard on screen.
"adjustPan"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.


background attribute 접근

Mobile Programming/Android Tip 2013. 9. 21. 21:55

이런식으로 attr에 접근이 가능하더라.


        android:background="?android:attr/selectableItemBackground"



Touch Touch 사다리 ( Touch Touch GhostLeg )



Touch Touch 사다리가 출시 되었습니다.
Touch Touch GhostLeg ( Touch Touch Ghost Leg ) was Relesed.

Release Date : Oct. 10
Version : 1.0.3
Url :
https://market.android.com/details?id=com.nolleh.touch.sadari



◀ 터치로 직접 사다리를 그리거나
If you want , by Touching , draw your own Labber

▶ 좌측 상단 물음표 버튼을 이용해 랜덤으로 보통의 사다리를 만들 수 있습니다.
or by Touching left top's button which has "?" mark button, get labber randomly.

 







 












◀보통 사다리외에, 거미줄 사다리를 만들수도 있습니다. (설정에서 보통의 사다리를 만들것인지 거미줄 사다리를 만들것인지 바꿀 수 있습니다. )
you can also make "web labber" by press menu button and touch setting, and check to use web labber. (거미줄 사다리)


출시한지 얼마되지 않았기 때문에 다운로드 수가 많거나 하진 않습니다.
because the app was relesed very recently, there isn't many downloaders .

1년전에 개발하다가 의욕이 식어서 한동안 개발 정체상태에 있다가 , 최근에 갑자기 의욕이 생겨서 개발하다보니
정체기간이 길어 출시가 많이 늦어진것 같습니다.
There was a rest duration to develop , and recently come up with passion to develop. it's the why relese date was late.

마켓에 소개했듯이 기획 / 이미지 작업 & 디자인 / 음향 ( 결국 음향은 다른 지인이 만들어준 음악으로 ..)  / 개발등을 직접 신경쓴 것이다보니 애착이 갑니다.  (그럴일도 없겠지만, 허가받지않은 이미지 / 소스 도용은 안됩니다! )
as I introduce market, panning and image working & design , sound ,  develop was completed by me. so I have a feeling like children to this app. ( the app's right - contain image, sound, source- reserved to me. ) 

현재는 마켓 소개글만 영어로 되있습니다만, 로케일 값을 추가해서 한국외의 국가에서는 모든 텍스트가 영어로 출력되도록 지원할 생각입니다.
Only korean is avaliable Until Now , But The app will smartly change korean to English (All Text!! ), when your device using English .

버그나 개선사항이 있다면 적극적으로 알려주세요. 
if there is a bugs or enhancements point , let me know.!