now i had a severe problem. I am having one activity and in that i have one edit text. I want to show up a customized dialog box on the top right of that activity. Now what my problem is while the dialogue is showing, when i click the edit text, soft keyboard is not showing....please help i want to show the keyboard while the dialog is showing... i have searched many..i found solution for the edit text inside the dialog but i need for the edit text which is outside the dialog...please help
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Hi finally i got answer for my question.
This will solve my problem. Window flag: invert the state of FLAG_NOT_FOCUSABLE with respect to how this window interacts with the current method. That is, if FLAG_NOT_FOCUSABLE is set and this flag is set, then the window will behave as if it needs to interact with the input method and thus be placed behind/away from it; if FLAG_NOT_FOCUSABLE is not set and this flag is set, then the window will behave as if it doesn't need to interact with the input method and can be placed to use more space and cover the input method. Please refer the explanation in http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_ALT_FOCUSABLE_IM
When you open a dialog from the activity which has edittext, softkeyboard will automatically hide as on moving to dialog edittext looses the focus. Showing softkeyboard along with dialog won't be possible, you need to add the content of your dialog in the activity itself where edittext is there. And you can play with the visibility of the view containing dialog contents whenever you want your dialog to appear and disappear.