public StringHolder(@StringRes int textRes) { super(textRes); } }
public StringAttributeData(@StringRes int defaultStringRes) { hasDefault = true; this.defaultStringRes = defaultStringRes; stringRes = defaultStringRes; defaultString = null; }
/** * 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; }
@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; }
public ProfileDrawerItem withName(@StringRes int nameRes) { this.name = new StringHolder(nameRes); return this; }
public SectionDrawerItem withName(@StringRes int nameRes) { this.name = new StringHolder(nameRes); return this; }
public T withDescription(@StringRes int descriptionRes) { this.description = new StringHolder(descriptionRes); return (T) this; }
public T withName(@StringRes int nameRes) { this.name = new StringHolder(nameRes); return (T) this; }
/** * @param resId the string resource to be used as a rationale * @see #setRationale(String) */ @NonNull public Builder setRationale(@StringRes int resId) { mRationale = mHelper.getContext().getString(resId); return this; }
/** * @see #setPositiveButtonText(String) */ @NonNull public Builder setPositiveButtonText(@StringRes int resId) { mPositiveButtonText = mHelper.getContext().getString(resId); return this; }
/** * @see #setNegativeButtonText(String) */ @NonNull public Builder setNegativeButtonText(@StringRes int resId) { mNegativeButtonText = mHelper.getContext().getString(resId); return this; }