2015-06-08 168 views
-3

如何移动如下图所示的按钮图像:enter image description here当键盘显示时显示。打开键盘时如何使用键盘移动按钮

+0

不清楚的问题。请清楚说明您的问题。 –

+0

[显示软键盘时移动布局]可能的重复?(http://stackoverflow.com/questions/1964789/move-layouts-up-when-soft-keyboard-is-shown) –

回答

2

在您的Manifest文件中,在您的活动中,添加android:windowSoftInputMode="stateVisible|adjustResize"。例如:

<activity 
android:name=".MainActivity" 
android:windowSoftInputMode="stateVisible|adjustResize" 
....> 
</activity> 
0

只是添加在AndroidManifest.xml后您的特定活动:

android:windowSoftInputMode="adjustPan|adjustResize" 
+0

这是重复的这个答案:http://stackoverflow.com/questions/1964789/move-layouts-up-when-soft-keyboard-is-shown/19406877#19406877 –