public StringHolder(@StringRes int textRes) { super(textRes); } }
public StringAttributeData(@StringRes int defaultStringRes) { hasDefault = true; this.defaultStringRes = defaultStringRes; stringRes = defaultStringRes; defaultString = null; }
/** * Set the label for the Cancel button (max 12 characters) * @param cancelResid A resource ID to be used as the Cancel button label */ @SuppressWarnings("unused") public void setCancelText(@StringRes int cancelResid) { mCancelString = null; mCancelResid = cancelResid; }
/** * Set the label for the Ok button (max 12 characters) * * @param okResid A resource ID to be used as the Ok button label */ @SuppressWarnings("unused") public void setOkText(@StringRes int okResid) { mOkString = null; mOkResid = okResid; }
/** * Set the label for the Ok button (max 12 characters) * @param okResid A resource ID to be used as the Ok button label */ @SuppressWarnings("unused") public void setOkText(@StringRes int okResid) { mOkString = null; mOkResid = okResid; }
/** * Set the label for the Cancel button (max 12 characters) * * @param cancelResid A resource ID to be used as the Cancel button label */ @SuppressWarnings("unused") public void setCancelText(@StringRes int cancelResid) { mCancelString = null; mCancelResid = cancelResid; }
@Override public android.view.MenuItem setTitle(@StringRes int titleRes) { this.titleRes = titleRes; return this; }
public void setTitle(@StringRes int titleRes) { this.titleRes = titleRes; this.title = ""; }
/** * Set the positive button text, default is {@link android.R.string#ok}. */ @NonNull public Builder setPositiveButton(@StringRes int textId) { mPositiveButtonText = mContext.getString(textId); return this; }
/** * Set the negative button text, default is {@link android.R.string#cancel}. */ @NonNull public Builder setNegativeButton(@StringRes int textId) { mNegativeButtonText = mContext.getString(textId); return this; }
/** * Set the rationale dialog. Default is * "This app may not work correctly without the requested permissions. * Open the app settings screen to modify app permissions." */ @NonNull public Builder setRationale(@StringRes int rationale) { mRationale = mContext.getString(rationale); return this; }
/** * Set the title dialog. Default is "Permissions Required". */ @NonNull public Builder setTitle(@StringRes int title) { mTitle = mContext.getString(title); return this; }
public HeaderItem(@StringRes int titleStringResId, @StringRes int subtitleResId, @DrawableRes int iconResId, View.OnClickListener onIconClickListener) { this.titleStringResId = titleStringResId; this.subtitleResId = subtitleResId; this.iconResId = iconResId; this.onIconClickListener = onIconClickListener; }
@Override public CustomUrlPrimaryDrawerItem withBadge(@StringRes int badgeRes) { this.mBadge = new StringHolder(badgeRes); return this; }
@Override public Item withBadge(@StringRes int badgeRes) { this.mBadge = new StringHolder(badgeRes); return (Item) this; }
@Override public ExpandableBadgeDrawerItem withBadge(@StringRes int badgeRes) { this.mBadge = new StringHolder(badgeRes); return (ExpandableBadgeDrawerItem) this; }
public ProfileDrawerItem withEmail(@StringRes int emailRes) { this.email = new StringHolder(emailRes); return this; }
public T withDescription(@StringRes int descriptionRes) { this.description = new StringHolder(descriptionRes); return (T) this; }
public ProfileSettingDrawerItem withName(@StringRes int nameRes) { this.name = new StringHolder(nameRes); return this; }
public ProfileSettingDrawerItem withDescription(@StringRes int descriptionRes) { this.description = new StringHolder(descriptionRes); return this; }