Code example for WindowManager.LayoutParams

0
		wm = (WindowManager) mContext.getApplicationContext().getSystemService("window");
        // ����LayoutParams(ȫ�ֱ�������ز��� 
         
        wmParams = new LayoutParams(LayoutParams.FILL_PARENT,
                LayoutParams.WRAP_CONTENT, LayoutParams.TYPE_SYSTEM_ERROR,
                LayoutParams.FLAG_NOT_FOCUSABLE, PixelFormat.TRANSPARENT);
        //layoutParams.gravity = Gravity.RIGHT|Gravity.BOTTOM; //���ʼ�����½���ʾ 
        
        wmParams.type = WindowManager.LayoutParams.TYPE_PHONE;// �������ṩ���û���������������Ӧ�ó����Ϸ���������״̬������
        wmParams.flags |= WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;// �������κΰ����¼�
        wmParams.gravity = Gravity.LEFT | Gravity.TOP; // ������������Ͻ�
        // ����Ļ���Ͻ�Ϊԭ�㣬����x��y��ʼֵ 
        wmParams.x = 0;
        wmParams.y = 0;
        // ������ڳ������ 
        wmParams.width = WindowManager.LayoutParams.WRAP_CONTENT;
        wmParams.height = WindowManager.LayoutParams.WRAP_CONTENT;
        wmParams.format = PixelFormat.RGBA_8888;
	} 
 
    private void removewRobot(){