WorkingDialog.java 929 B

123456789101112131415161718192021222324252627
  1. package epson.print.screen;
  2. import android.app.Dialog;
  3. import android.content.Context;
  4. import android.os.Bundle;
  5. import android.widget.LinearLayout;
  6. import android.widget.ProgressBar;
  7. import epson.print.R;
  8. public class WorkingDialog extends Dialog {
  9. public WorkingDialog(Context context) {
  10. super(context, R.style.AppTheme_Translucent_Gray);
  11. }
  12. /* access modifiers changed from: protected */
  13. public void onCreate(Bundle bundle) {
  14. super.onCreate(bundle);
  15. LinearLayout linearLayout = new LinearLayout(getContext());
  16. linearLayout.setLayoutParams(new LinearLayout.LayoutParams(-1, -1));
  17. linearLayout.setGravity(17);
  18. setContentView(linearLayout);
  19. ProgressBar progressBar = new ProgressBar(getContext());
  20. progressBar.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));
  21. linearLayout.addView(progressBar);
  22. setCancelable(false);
  23. }
  24. }