@Override public void onClick(View v) { dismiss(); } });
@Override public void onClick(View v) { dismiss(); } });
/** * Create a dialog with two options * * @param context * @return */ public static TwoOptionsDialog createTwoOptionsDialog(Context context) { return new TwoOptionsDialog(context); }
@Override public void onClick(View v) { dismiss(); } });
/** * Create a customized dialog * * @param context * @return */ public static CustomizedDialog createCustomizedDialog(Context context) { return new CustomizedDialog(context); }
/** * Set a list of items to be displayed in the dialog as the content * * @param items the items to be displayed. * @param checkedItem specifies which item is checked. If -1 no items are checked. */ public SingleChoiceDialog setSingleChoiceItems(CharSequence[] items, int checkedItem) { hasDescription = false; setChoices(items, null, checkedItem); return this; }
/** * Create a normal dialog * * @param context * @return */ public static NormalDialog createNormalDialog(Context context) { return new NormalDialog(context); }
private void findViews() { mTvTitle = (TextView) findViewById(R.id.tvTitle); mTvCancel = (TextView) findViewById(R.id.tvCancel); mTvOp1 = (TextView) findViewById(R.id.tvOp1); mTvOp2 = (TextView) findViewById(R.id.tvOp2); mTvOp3 = (TextView) findViewById(R.id.tvOp3); }
private void findViews() { mTvTitle = (TextView) findViewById(R.id.tvTitle); mTvMsg = (TextView) findViewById(R.id.tvMsg); mTv1 = (TextView) findViewById(R.id.tv1); mTv2 = (TextView) findViewById(R.id.tv2); mDivider1 = findViewById(R.id.divider1); mDivider2 = findViewById(R.id.divider2); }
@Override public void onClick(View v) { if (mListener != null) { mListener.onLeftSelect(); } } });
/** * Create a dialog with three options * * @param context * @return */ public static ThreeOptionsDialog createThreeOptionsDialog(Context context) { return new ThreeOptionsDialog(context); }
/** * Create an Options List dialog * * @param context * @return */ public static OptionListDialog createOptionListDialog(Context context) { return new OptionListDialog(context); }
private void findViews() { mTvTitle = (TextView) findViewById(R.id.tvTitle); mTvCancel = (TextView) findViewById(R.id.tvCancel); mTvConfirm = (TextView) findViewById(R.id.tvConfirm); }
@Override public void onClick(View v) { if (mListener != null) { mListener.onOp1(); } } });
@Override public void onClick(View v) { if (mListener != null) { mListener.onLeftSelect(); } } });
@Override public void onClick(View v) { if (mListener != null) { mListener.onRightSelect(); } } });
@Override public void onClick(View v) { if (mBtnListener != null) { mBtnListener.onRightSelect(); } } });
/** * Create a warning dialog * * @param context * @return */ public static WarningDialog createWarningDialog(Context context) { return new WarningDialog(context); }
/** * Create a single choice dialog * * @param context * @return */ public static SingleChoiceDialog createSingleChoiceDialog(Context context) { return new SingleChoiceDialog(context); }
private void findViews() { mTvTitle = (TextView) findViewById(R.id.tvTitle); mFlContainer = (FrameLayout) findViewById(R.id.flContainer); mTv1 = (TextView) findViewById(R.id.tv1); mTv2 = (TextView) findViewById(R.id.tv2); mDivider1 = findViewById(R.id.divider1); mDivider2 = findViewById(R.id.divider2); }