public TvChannelNumDialog() { super(TvContext.context, R.style.dialog, TvConfigTypes.TV_DIALOG_CHANNEL_NUM); // TODO Auto-generated constructor stub tvChannelNumView = new TvChannelNumView(TvContext.context); tvChannelNumView.setParentDialog(this); setDialogAttributes(Gravity.RIGHT | Gravity.TOP, WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); setDialogContentView( tvChannelNumView, new LayoutParams( (int) (400 / TvUIControler.getInstance().getResolutionDiv()), (int) (200 / TvUIControler.getInstance().getResolutionDiv()))); }
public TvToastFocusDialog() { super(TvContext.context, R.style.dialog, TvConfigTypes.TV_DIALOG_TOAST_FOCUS); // TODO Auto-generated constructor stub toastFocusView = new TvToastFocusView(TvContext.context); toastFocusView.setParentDialog(this); setDialogAttributes(Gravity.CENTER, WindowManager.LayoutParams.TYPE_SYSTEM_ALERT); setDialogContentView( toastFocusView, new LayoutParams( (int) (802 / TvUIControler.getInstance().getResolutionDiv()), (int) (422 / TvUIControler.getInstance().getResolutionDiv()))); setAutoDismiss(false); }