键盘弹起时,若界面设置了背景图有被压缩的情况.如果界面的布局采用了ScrollView可以设置属性android:scrollbars=”horizontal”,或者在manifest文件中设置 android:windowSoftInputMode=”adjustPan|stateHidden” ,这样图片背景就不会被压缩变形,但是图片仍会被稍稍整体推上去的效果.
android界面背景键盘弹起被压缩
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
DecelerateInterpolator(float factor)
動畫、減速 public float getInterpolation(float input) { float result; if (mFactor == 1.0f) {