80,349
社区成员
发帖
与我相关
我的任务
分享
keyboardView = new ImageView(AdjustKeyBoardLocation.this);
keyboardView.setFocusable(true);
keyboardView.setFocusableInTouchMode(true);
…………
windowManager.addView(keyboardView, windowParams);
keyboardView.setOnTouchListener(new OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
System.out.println("ontouch");
return true;
}
});