【发布时间】:2012-01-25 15:03:34
【问题描述】:
我试图在InputMethodService 中显示PopupWindow,但是当我使用此代码显示它时:
LayoutInflater inflater = ( LayoutInflater ) getSystemService( LAYOUT_INFLATER_SERVICE );
pw = new PopupWindow(
inflater.inflate(R.layout.info_dialog, null, false), 320, 480, true);
pw.showAtLocation(mInputView, Gravity.CENTER, 0, 0);
在关闭我的InputMethodService 之前,窗口会短暂闪烁。
我从 LogCat 得到的错误是这样的:
12-21 15:22:20.530: E/InputMethodService(4075): Unexpected null in startExtractingText : mExtractedText = null, input connection = com.android.internal.view.InputConnectionWrapper@40a60150
有没有人见过这个或知道如何处理它?
【问题讨论】:
标签: android service popupwindow android-input-method