开发者

Android: Move whole layout upwards

开发者 https://www.devze.com 2022-12-17 09:02 出处:网络
I have a LinearLayout, when user selects my AutoCompleteTextView(ACTW) I want to move the whole layout upwards, so that the ACTW is at the top and there is space between the ACTW and software keyboard

I have a LinearLayout, when user selects my AutoCompleteTextView(ACTW) I want to move the whole layout upwards, so that the ACTW is at the top and there is space between the ACTW and software keyboard for suggestions. 1) How to do this? 2) 开发者_StackOverflow社区How to make this animated (but this is not necessary)?


This: <activity android:windowSoftInputMode="adjustPan"> sounds like what you need.

See this page for more info.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号