package com.joyplus.widget;
import com.joyplus.R;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager.LayoutParams;
public class WaitingDialog extends ProgressDialog {
private View rootView;
private Context mContext;
public WaitingDialog(Context context) {
super(context);
mContext = context;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
rootView = LayoutInflater.from(mContext).inflate(R.layout.a_progress_dialog_layout, null);
setContentView(rootView);
}
public void setDialogWindowStyle(){
Window window = this.getWindow();
LayoutParams lp = window.getAttributes();
lp.alpha = 0.5f;
lp.dimAmount = 0.5f;
window.setAttributes(lp);
//window.setLayout(68, 68);
}
}