2
我試着去實現這樣的形象: 顯示SoftKeyboard景觀而不是整個屏幕
問題的時,即時通訊上的風景,把一個搜索欄,如圖像,軟蓋全鍵盤的屏幕,和我想要像我嘗試的圖像
android:windowSoftInputMode="adjustPan|adjustResize"
似乎並沒有工作,至少在果凍豆。有任何想法嗎? 感謝
我試着去實現這樣的形象: 顯示SoftKeyboard景觀而不是整個屏幕
問題的時,即時通訊上的風景,把一個搜索欄,如圖像,軟蓋全鍵盤的屏幕,和我想要像我嘗試的圖像
android:windowSoftInputMode="adjustPan|adjustResize"
似乎並沒有工作,至少在果凍豆。有任何想法嗎? 感謝
我找到了解決辦法,在EditText上的imeOptions,所以我用
android:imeOptions="flagNoFullscreen"
所以屏幕現在它在中間:)
<EditText
android:id="@+id/txt_search"
android:inputType="text"
android:imeOptions="flagNoFullscreen"
android:hint="@string/hint_search"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
以編程方式設置它:'editText.setImeOptions (EditorInfo.IME_FLAG_NO_FULLSCREEN);' –
改爲使用「flagNoExtractUi」,它也可以。他們之間有什麼區別? –