AlertDialog.Builder buidler=new AlertDialog.Builder(Context);
AlertDialog dialog=null;
builder.setView(getLayoutInflater().inflate(R.layout.userlogin_layout, null));
dialog=builder.create();
dialog.show();
dialog.getWindow().setLayout(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);