0
我的代碼中有一個Dailog的進度。我想在最後一個組件(按鈕)垂直之前設置它的位置。請告訴我該怎麼做?如何設置進度對話框的垂直位置
代碼
progDailog = new ProgressDialog(activity);
//progDailog.setMessage("Loading...");
progDailog.setIndeterminate(false);
progDailog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
progDailog.setCancelable(false);
progDailog = new ProgressDialog(activity,R.style.MyTheme);
progDailog.setProgressStyle(android.R.style.Widget_ProgressBar_Small);
progDailog.getWindow().setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.WRAP_CONTENT);
progDailog.show();