RemoteViewsCompat


public static class RemoteViewsCompat


Helper for accessing features in RemoteViews.

Summary

Nested types

Representation of a fixed list of items to be displayed in a RemoteViews collection.

Builder class for RemoteCollectionItems objects.

Public fields

static @NonNull RemoteViewsCompat

Public methods

static final void
setChronometerBase(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    long base
)

Equivalent to calling android.widget.Chronometer.setBase.

static final void
setChronometerFormat(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    String format
)

Equivalent to calling android.widget.Chronometer.setFormat.

static final void
@RequiresApi(value = 31)
setCompoundButtonDrawable(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DrawableRes int resId
)

Equivalent to calling android.widget.CompoundButton.setButtonDrawable.

static final void
@RequiresApi(value = 31)
setCompoundButtonIcon(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    Icon icon
)

Equivalent to calling android.widget.CompoundButton.setButtonIcon.

static final void
@RequiresApi(value = 31)
setCompoundButtonTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode tintMode
)

Equivalent to calling android.widget.CompoundButton.setButtonTintBlendMode.

static final void
@RequiresApi(value = 31)
setCompoundButtonTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

static final void
@RequiresApi(value = 31)
setCompoundButtonTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

static final void
@RequiresApi(value = 31)
setCompoundButtonTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNight,
    ColorStateList night
)

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

static final void
@RequiresApi(value = 31)
setCompoundButtonTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

static final void
setFrameLayoutForegroundGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int foregroundGravity
)

Equivalent to calling android.widget.FrameLayout.setForegroundGravity.

static final void
setFrameLayoutMeasureAllChildren(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean measureAll
)

Equivalent to calling android.widget.FrameLayout.setMeasureAllChildren.

static final void
@RequiresApi(value = 31)
setGridLayoutAlignmentMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int alignmentMode
)

Equivalent to calling android.widget.GridLayout.setAlignmentMode.

static final void
@RequiresApi(value = 31)
setGridLayoutColumnCount(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int columnCount
)

Equivalent to calling android.widget.GridLayout.setColumnCount.

static final void
@RequiresApi(value = 31)
setGridLayoutRowCount(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int rowCount
)

Equivalent to calling android.widget.GridLayout.setRowCount.

static final void
@RequiresApi(value = 31)
setGridViewColumnWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.GridView.setColumnWidth.

static final void
@RequiresApi(value = 31)
setGridViewColumnWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int columnWidth
)

Equivalent to calling android.widget.GridView.setColumnWidth.

static final void
@RequiresApi(value = 31)
setGridViewColumnWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int columnWidth
)

Equivalent to calling android.widget.GridView.setColumnWidth.

static final void
@RequiresApi(value = 31)
setGridViewGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int gravity
)

Equivalent to calling android.widget.GridView.setGravity.

static final void
@RequiresApi(value = 31)
setGridViewHorizontalSpacing(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.GridView.setHorizontalSpacing.

static final void
@RequiresApi(value = 31)
setGridViewHorizontalSpacingDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.GridView.setHorizontalSpacing.

static final void
@RequiresApi(value = 31)
setGridViewHorizontalSpacingDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.GridView.setHorizontalSpacing.

static final void
@RequiresApi(value = 31)
setGridViewNumColumns(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int numColumns
)

Equivalent to calling android.widget.GridView.setNumColumns.

static final void
@RequiresApi(value = 31)
setGridViewStretchMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int stretchMode
)

Equivalent to calling android.widget.GridView.setStretchMode.

static final void
@RequiresApi(value = 31)
setGridViewVerticalSpacing(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.GridView.setVerticalSpacing.

static final void
@RequiresApi(value = 31)
setGridViewVerticalSpacingDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.GridView.setVerticalSpacing.

static final void
@RequiresApi(value = 31)
setGridViewVerticalSpacingDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.GridView.setVerticalSpacing.

static final void
setImageViewAdjustViewBounds(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean adjustViewBounds
)

Equivalent to calling android.widget.ImageView.setAdjustViewBounds.

static final void
setImageViewColorFilter(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int color
)

Equivalent to calling android.widget.ImageView.setColorFilter.

static final void
@RequiresApi(value = 31)
setImageViewColorFilter(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int notNight,
    @ColorInt int night
)

Equivalent to calling android.widget.ImageView.setColorFilter.

static final void
@RequiresApi(value = 31)
setImageViewColorFilterAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ImageView.setColorFilter.

static final void
@RequiresApi(value = 31)
setImageViewColorFilterResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.ImageView.setColorFilter.

static final void
setImageViewImageAlpha(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int alpha
)

Equivalent to calling android.widget.ImageView.setImageAlpha.

static final void
setImageViewImageLevel(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int level
)

Equivalent to calling android.widget.ImageView.setImageLevel.

static final void
@RequiresApi(value = 31)
setImageViewImageTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.ImageView.setImageTintBlendMode.

static final void
@RequiresApi(value = 31)
setImageViewImageTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.ImageView.setImageTintList.

static final void
@RequiresApi(value = 31)
setImageViewImageTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.ImageView.setImageTintList.

static final void
@RequiresApi(value = 31)
setImageViewImageTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.widget.ImageView.setImageTintList.

static final void
@RequiresApi(value = 31)
setImageViewImageTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ImageView.setImageTintList.

static final void
setImageViewMaxHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int maxHeight
)

Equivalent to calling android.widget.ImageView.setMaxHeight.

static final void
@RequiresApi(value = 31)
setImageViewMaxHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.ImageView.setMaxHeight.

static final void
@RequiresApi(value = 31)
setImageViewMaxHeightDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.ImageView.setMaxHeight.

static final void
@RequiresApi(value = 31)
setImageViewMaxHeightDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ImageView.setMaxHeight.

static final void
setImageViewMaxWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int maxWidth
)

Equivalent to calling android.widget.ImageView.setMaxWidth.

static final void
@RequiresApi(value = 31)
setImageViewMaxWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.ImageView.setMaxWidth.

static final void
@RequiresApi(value = 31)
setImageViewMaxWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.ImageView.setMaxWidth.

static final void
@RequiresApi(value = 31)
setImageViewMaxWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ImageView.setMaxWidth.

static final void
setLinearLayoutBaselineAligned(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean baselineAligned
)

Equivalent to calling android.widget.LinearLayout.setBaselineAligned.

static final void
setLinearLayoutBaselineAlignedChildIndex(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int i
)

Equivalent to calling android.widget.LinearLayout.setBaselineAlignedChildIndex.

static final void
setLinearLayoutGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int gravity
)

Equivalent to calling android.widget.LinearLayout.setGravity.

static final void
setLinearLayoutHorizontalGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int horizontalGravity
)

Equivalent to calling android.widget.LinearLayout.setHorizontalGravity.

static final void
setLinearLayoutMeasureWithLargestChildEnabled(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean enabled
)

Equivalent to calling android.widget.LinearLayout.setMeasureWithLargestChildEnabled.

static final void
setLinearLayoutVerticalGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int verticalGravity
)

Equivalent to calling android.widget.LinearLayout.setVerticalGravity.

static final void
setLinearLayoutWeightSum(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float weightSum
)

Equivalent to calling android.widget.LinearLayout.setWeightSum.

static final void
setProgressBarIndeterminate(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean indeterminate
)

Equivalent to calling android.widget.ProgressBar.setIndeterminate.

static final void
@RequiresApi(value = 31)
setProgressBarIndeterminateTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintBlendMode.

static final void
@RequiresApi(value = 31)
setProgressBarIndeterminateTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

static final void
@RequiresApi(value = 31)
setProgressBarIndeterminateTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

static final void
@RequiresApi(value = 31)
setProgressBarIndeterminateTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

static final void
@RequiresApi(value = 31)
setProgressBarIndeterminateTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

static final void
setProgressBarMax(@NonNull RemoteViews receiver, @IdRes int viewId, int max)

Equivalent to calling android.widget.ProgressBar.setMax.

static final void
@RequiresApi(value = 26)
setProgressBarMin(@NonNull RemoteViews receiver, @IdRes int viewId, int min)

Equivalent to calling android.widget.ProgressBar.setMin.

static final void
setProgressBarProgress(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int progress
)

Equivalent to calling android.widget.ProgressBar.setProgress.

static final void
@RequiresApi(value = 31)
setProgressBarProgressBackgroundTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintBlendMode.

static final void
@RequiresApi(value = 31)
setProgressBarProgressBackgroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

static final void
@RequiresApi(value = 31)
setProgressBarProgressBackgroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

static final void
@RequiresApi(value = 31)
setProgressBarProgressBackgroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

static final void
@RequiresApi(value = 31)
setProgressBarProgressBackgroundTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

static final void
@RequiresApi(value = 31)
setProgressBarProgressTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.ProgressBar.setProgressTintBlendMode.

static final void
@RequiresApi(value = 31)
setProgressBarProgressTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

static final void
@RequiresApi(value = 31)
setProgressBarProgressTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

static final void
@RequiresApi(value = 31)
setProgressBarProgressTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

static final void
@RequiresApi(value = 31)
setProgressBarProgressTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

static final void
setProgressBarSecondaryProgress(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int secondaryProgress
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgress.

static final void
@RequiresApi(value = 31)
setProgressBarSecondaryProgressTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintBlendMode.

static final void
@RequiresApi(value = 31)
setProgressBarSecondaryProgressTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

static final void
@RequiresApi(value = 31)
setProgressBarSecondaryProgressTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

static final void
@RequiresApi(value = 31)
setProgressBarSecondaryProgressTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

static final void
@RequiresApi(value = 31)
setProgressBarSecondaryProgressTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

static final void
@RequiresApi(value = 31)
setProgressBarStateDescription(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.ProgressBar.setStateDescription.

static final void
@RequiresApi(value = 31)
setProgressBarStateDescription(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence stateDescription
)

Equivalent to calling android.widget.ProgressBar.setStateDescription.

static final void
@RequiresApi(value = 31)
setProgressBarStateDescriptionAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ProgressBar.setStateDescription.

static final void
setRelativeLayoutGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int gravity
)

Equivalent to calling android.widget.RelativeLayout.setGravity.

static final void
setRelativeLayoutHorizontalGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int horizontalGravity
)

Equivalent to calling android.widget.RelativeLayout.setHorizontalGravity.

static final void
setRelativeLayoutIgnoreGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @IdRes int childViewId
)

Equivalent to calling android.widget.RelativeLayout.setIgnoreGravity.

static final void
setRelativeLayoutVerticalGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int verticalGravity
)

Equivalent to calling android.widget.RelativeLayout.setVerticalGravity.

static final void
setRemoteAdapter(
    @NonNull Context context,
    @NonNull RemoteViews remoteViews,
    int appWidgetId,
    @IdRes int viewId,
    @NonNull RemoteViewsCompat.RemoteCollectionItems items
)

Creates a simple Adapter for the widgetId and viewId specified.

static final void
@RequiresApi(value = 31)
setSwitchMinWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.Switch.setSwitchMinWidth.

static final void
@RequiresApi(value = 31)
setSwitchMinWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.Switch.setSwitchMinWidth.

static final void
@RequiresApi(value = 31)
setSwitchMinWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setSwitchMinWidth.

static final void
@RequiresApi(value = 31)
setSwitchPadding(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.Switch.setSwitchPadding.

static final void
@RequiresApi(value = 31)
setSwitchPaddingDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.Switch.setSwitchPadding.

static final void
@RequiresApi(value = 31)
setSwitchPaddingDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setSwitchPadding.

static final void
@RequiresApi(value = 31)
setSwitchShowText(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean showText
)

Equivalent to calling android.widget.Switch.setShowText.

static final void
@RequiresApi(value = 31)
setSwitchSplitTrack(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean splitTrack
)

Equivalent to calling android.widget.Switch.setSplitTrack.

static final void
@RequiresApi(value = 31)
setSwitchTextOff(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.Switch.setTextOff.

static final void
@RequiresApi(value = 31)
setSwitchTextOff(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence textOff
)

Equivalent to calling android.widget.Switch.setTextOff.

static final void
@RequiresApi(value = 31)
setSwitchTextOffAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setTextOff.

static final void
@RequiresApi(value = 31)
setSwitchTextOn(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.Switch.setTextOn.

static final void
@RequiresApi(value = 31)
setSwitchTextOn(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence textOn
)

Equivalent to calling android.widget.Switch.setTextOn.

static final void
@RequiresApi(value = 31)
setSwitchTextOnAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setTextOn.

static final void
@RequiresApi(value = 31)
setSwitchThumbIcon(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    Icon icon
)

Equivalent to calling android.widget.Switch.setThumbIcon.

static final void
@RequiresApi(value = 31)
setSwitchThumbIcon(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    Icon notNight,
    Icon night
)

Equivalent to calling android.widget.Switch.setThumbIcon.

static final void
@RequiresApi(value = 31)
setSwitchThumbResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DrawableRes int resId
)

Equivalent to calling android.widget.Switch.setThumbResource.

static final void
@RequiresApi(value = 31)
setSwitchThumbTextPadding(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.Switch.setThumbTextPadding.

static final void
@RequiresApi(value = 31)
setSwitchThumbTextPaddingDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.Switch.setThumbTextPadding.

static final void
@RequiresApi(value = 31)
setSwitchThumbTextPaddingDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setThumbTextPadding.

static final void
@RequiresApi(value = 31)
setSwitchThumbTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.Switch.setThumbTintBlendMode.

static final void
@RequiresApi(value = 31)
setSwitchThumbTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.Switch.setThumbTintList.

static final void
@RequiresApi(value = 31)
setSwitchThumbTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.Switch.setThumbTintList.

static final void
@RequiresApi(value = 31)
setSwitchThumbTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNight,
    ColorStateList night
)

Equivalent to calling android.widget.Switch.setThumbTintList.

static final void
@RequiresApi(value = 31)
setSwitchThumbTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setThumbTintList.

static final void
@RequiresApi(value = 31)
setSwitchTrackIcon(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    Icon icon
)

Equivalent to calling android.widget.Switch.setTrackIcon.

static final void
@RequiresApi(value = 31)
setSwitchTrackIcon(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    Icon notNight,
    Icon night
)

Equivalent to calling android.widget.Switch.setTrackIcon.

static final void
@RequiresApi(value = 31)
setSwitchTrackResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DrawableRes int resId
)

Equivalent to calling android.widget.Switch.setTrackResource.

static final void
@RequiresApi(value = 31)
setSwitchTrackTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.Switch.setTrackTintBlendMode.

static final void
@RequiresApi(value = 31)
setSwitchTrackTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.Switch.setTrackTintList.

static final void
@RequiresApi(value = 31)
setSwitchTrackTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.Switch.setTrackTintList.

static final void
@RequiresApi(value = 31)
setSwitchTrackTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNight,
    ColorStateList night
)

Equivalent to calling android.widget.Switch.setTrackTintList.

static final void
@RequiresApi(value = 31)
setSwitchTrackTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setTrackTintList.

static final void
setTextClockFormat12Hour(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence format
)

Equivalent to calling android.widget.TextClock.setFormat12Hour.

static final void
@RequiresApi(value = 31)
setTextClockFormat12Hour(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.TextClock.setFormat12Hour.

static final void
@RequiresApi(value = 31)
setTextClockFormat12HourAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextClock.setFormat12Hour.

static final void
setTextClockFormat24Hour(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence format
)

Equivalent to calling android.widget.TextClock.setFormat24Hour.

static final void
@RequiresApi(value = 31)
setTextClockFormat24Hour(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.TextClock.setFormat24Hour.

static final void
@RequiresApi(value = 31)
setTextClockFormat24HourAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextClock.setFormat24Hour.

static final void
setTextClockTimeZone(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    String timeZone
)

Equivalent to calling android.widget.TextClock.setTimeZone.

static final void
@RequiresApi(value = 31)
setTextViewAllCaps(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean allCaps
)

Equivalent to calling android.widget.TextView.setAllCaps.

static final void
setTextViewAutoLinkMask(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int mask
)

Equivalent to calling android.widget.TextView.setAutoLinkMask.

static final void
setTextViewCompoundDrawablePadding(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int pad
)

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

static final void
@RequiresApi(value = 31)
setTextViewCompoundDrawablePadding(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

static final void
@RequiresApi(value = 31)
setTextViewCompoundDrawablePaddingDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

static final void
@RequiresApi(value = 31)
setTextViewCompoundDrawablePaddingDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

static final void
setTextViewEms(@NonNull RemoteViews receiver, @IdRes int viewId, int ems)

Equivalent to calling android.widget.TextView.setEms.

static final void
setTextViewError(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence error
)

Equivalent to calling android.widget.TextView.setError.

static final void
@RequiresApi(value = 31)
setTextViewError(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.TextView.setError.

static final void
@RequiresApi(value = 31)
setTextViewErrorAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setError.

static final void
@RequiresApi(value = 21)
setTextViewFontFeatureSettings(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @NonNull String fontFeatureSettings
)

Equivalent to calling android.widget.TextView.setFontFeatureSettings.

static final void
@RequiresApi(value = 31)
setTextViewGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int gravity
)

Equivalent to calling android.widget.TextView.setGravity.

static final void
setTextViewHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int pixels
)

Equivalent to calling android.widget.TextView.setHeight.

static final void
@RequiresApi(value = 31)
setTextViewHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setHeight.

static final void
@RequiresApi(value = 31)
setTextViewHeightDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setHeight.

static final void
@RequiresApi(value = 31)
setTextViewHeightDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setHeight.

static final void
setTextViewHighlightColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int color
)

Equivalent to calling android.widget.TextView.setHighlightColor.

static final void
@RequiresApi(value = 31)
setTextViewHighlightColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int notNight,
    @ColorInt int night
)

Equivalent to calling android.widget.TextView.setHighlightColor.

static final void
@RequiresApi(value = 31)
setTextViewHighlightColorAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setHighlightColor.

static final void
@RequiresApi(value = 31)
setTextViewHighlightColorResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.TextView.setHighlightColor.

static final void
setTextViewHint(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence hint
)

Equivalent to calling android.widget.TextView.setHint.

static final void
setTextViewHint(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.TextView.setHint.

static final void
@RequiresApi(value = 31)
setTextViewHintAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setHint.

static final void
setTextViewHintTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int color
)

Equivalent to calling android.widget.TextView.setHintTextColor.

static final void
@RequiresApi(value = 31)
setTextViewHintTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int notNight,
    @ColorInt int night
)

Equivalent to calling android.widget.TextView.setHintTextColor.

static final void
@RequiresApi(value = 31)
setTextViewHintTextColorAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setHintTextColor.

static final void
@RequiresApi(value = 31)
setTextViewHintTextColorResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.TextView.setHintTextColor.

static final void
@RequiresApi(value = 31)
setTextViewJustificationMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int justificationMode
)

Equivalent to calling android.widget.TextView.setJustificationMode.

static final void
@RequiresApi(value = 21)
setTextViewLetterSpacing(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float letterSpacing
)

Equivalent to calling android.widget.TextView.setLetterSpacing.

static final void
@RequiresApi(value = 31)
setTextViewLineHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setLineHeight.

static final void
@RequiresApi(value = 31)
setTextViewLineHeightDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setLineHeight.

static final void
@RequiresApi(value = 31)
setTextViewLineHeightDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setLineHeight.

static final void
setTextViewLines(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int lines
)

Equivalent to calling android.widget.TextView.setLines.

static final void
setTextViewLinkTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int color
)

Equivalent to calling android.widget.TextView.setLinkTextColor.

static final void
@RequiresApi(value = 31)
setTextViewLinkTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int notNight,
    @ColorInt int night
)

Equivalent to calling android.widget.TextView.setLinkTextColor.

static final void
@RequiresApi(value = 31)
setTextViewLinkTextColorAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setLinkTextColor.

static final void
@RequiresApi(value = 31)
setTextViewLinkTextColorResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.TextView.setLinkTextColor.

static final void
setTextViewLinksClickable(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean whether
)

Equivalent to calling android.widget.TextView.setLinksClickable.

static final void
setTextViewMaxEms(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int maxems
)

Equivalent to calling android.widget.TextView.setMaxEms.

static final void
setTextViewMaxHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int maxHeight
)

Equivalent to calling android.widget.TextView.setMaxHeight.

static final void
@RequiresApi(value = 31)
setTextViewMaxHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setMaxHeight.

static final void
@RequiresApi(value = 31)
setTextViewMaxHeightDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setMaxHeight.

static final void
@RequiresApi(value = 31)
setTextViewMaxHeightDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setMaxHeight.

static final void
setTextViewMaxLines(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int maxLines
)

Equivalent to calling android.widget.TextView.setMaxLines.

static final void
setTextViewMaxWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int maxWidth
)

Equivalent to calling android.widget.TextView.setMaxWidth.

static final void
@RequiresApi(value = 31)
setTextViewMaxWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setMaxWidth.

static final void
@RequiresApi(value = 31)
setTextViewMaxWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setMaxWidth.

static final void
@RequiresApi(value = 31)
setTextViewMaxWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setMaxWidth.

static final void
setTextViewMinEms(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int minems
)

Equivalent to calling android.widget.TextView.setMinEms.

static final void
setTextViewMinHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int minHeight
)

Equivalent to calling android.widget.TextView.setMinHeight.

static final void
@RequiresApi(value = 31)
setTextViewMinHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setMinHeight.

static final void
@RequiresApi(value = 31)
setTextViewMinHeightDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setMinHeight.

static final void
@RequiresApi(value = 31)
setTextViewMinHeightDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setMinHeight.

static final void
setTextViewMinLines(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int minLines
)

Equivalent to calling android.widget.TextView.setMinLines.

static final void
setTextViewMinWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int minWidth
)

Equivalent to calling android.widget.TextView.setMinWidth.

static final void
@RequiresApi(value = 31)
setTextViewMinWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setMinWidth.

static final void
@RequiresApi(value = 31)
setTextViewMinWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setMinWidth.

static final void
@RequiresApi(value = 31)
setTextViewMinWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setMinWidth.

static final void
setTextViewPaintFlags(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int flags
)

Equivalent to calling android.widget.TextView.setPaintFlags.

static final void
setTextViewSelectAllOnFocus(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean selectAllOnFocus
)

Equivalent to calling android.widget.TextView.setSelectAllOnFocus.

static final void
setTextViewSingleLine(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean singleLine
)

Equivalent to calling android.widget.TextView.setSingleLine.

static final void
setTextViewText(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.TextView.setText.

static final void
@RequiresApi(value = 31)
setTextViewTextAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setText.

static final void
setTextViewTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int color
)

Equivalent to calling android.widget.TextView.setTextColor.

static final void
@RequiresApi(value = 31)
setTextViewTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @NonNull ColorStateList colors
)

Equivalent to calling android.widget.TextView.setTextColor.

static final void
@RequiresApi(value = 31)
setTextViewTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @NonNull ColorStateList notNight,
    @NonNull ColorStateList night
)

Equivalent to calling android.widget.TextView.setTextColor.

static final void
@RequiresApi(value = 31)
setTextViewTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int notNight,
    @ColorInt int night
)

Equivalent to calling android.widget.TextView.setTextColor.

static final void
@RequiresApi(value = 31)
setTextViewTextColorAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setTextColor.

static final void
@RequiresApi(value = 31)
setTextViewTextColorResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.TextView.setTextColor.

static final void
setTextViewTextScaleX(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float size
)

Equivalent to calling android.widget.TextView.setTextScaleX.

static final void
@RequiresApi(value = 31)
setTextViewTextSizeDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setTextSize.

static final void
@RequiresApi(value = 31)
setTextViewTextSizeDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setTextSize.

static final void
setTextViewWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int pixels
)

Equivalent to calling android.widget.TextView.setWidth.

static final void
@RequiresApi(value = 31)
setTextViewWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setWidth.

static final void
@RequiresApi(value = 31)
setTextViewWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setWidth.

static final void
@RequiresApi(value = 31)
setTextViewWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setWidth.

static final void
@RequiresApi(value = 31)
setViewAlpha(@NonNull RemoteViews receiver, @IdRes int viewId, float alpha)

Equivalent to calling android.view.View.setAlpha.

static final void
setViewBackgroundColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int color
)

Equivalent to calling android.view.View.setBackgroundColor.

static final void
@RequiresApi(value = 31)
setViewBackgroundColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int notNight,
    @ColorInt int night
)

Equivalent to calling android.view.View.setBackgroundColor.

static final void
@RequiresApi(value = 31)
setViewBackgroundColorAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setBackgroundColor.

static final void
setViewBackgroundColorResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.view.View.setBackgroundColor.

static final void
setViewBackgroundResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DrawableRes int resId
)

Equivalent to calling android.view.View.setBackgroundResource.

static final void
@RequiresApi(value = 31)
setViewBackgroundTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.view.View.setBackgroundTintList.

static final void
@RequiresApi(value = 31)
setViewBackgroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.view.View.setBackgroundTintList.

static final void
@RequiresApi(value = 31)
setViewBackgroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.view.View.setBackgroundTintList.

static final void
@RequiresApi(value = 31)
setViewBackgroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.view.View.setBackgroundTintList.

static final void
@RequiresApi(value = 31)
setViewBackgroundTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setBackgroundTintList.

static final void
@RequiresApi(value = 31)
setViewClipToOutline(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean clipToOutline
)

Equivalent to calling android.view.View.setClipToOutline.

static final void
setViewContentDescription(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence contentDescription
)

Equivalent to calling android.view.View.setContentDescription.

static final void
@RequiresApi(value = 31)
setViewContentDescription(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.view.View.setContentDescription.

static final void
@RequiresApi(value = 31)
setViewContentDescriptionAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setContentDescription.

static final void
@RequiresApi(value = 31)
setViewElevationDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.view.View.setElevation.

static final void
@RequiresApi(value = 31)
setViewElevationDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.view.View.setElevation.

static final void
@RequiresApi(value = 31)
setViewElevationDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setElevation.

static final void
@RequiresApi(value = 24)
setViewEnabled(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean enabled
)

Equivalent to calling android.view.View.setEnabled.

static final void
@RequiresApi(value = 31)
setViewFocusable(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean focusable
)

Equivalent to calling android.view.View.setFocusable.

static final void
@RequiresApi(value = 31)
setViewFocusable(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int focusable
)

Equivalent to calling android.view.View.setFocusable.

static final void
@RequiresApi(value = 31)
setViewFocusableInTouchMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean focusableInTouchMode
)

Equivalent to calling android.view.View.setFocusableInTouchMode.

static final void
@RequiresApi(value = 31)
setViewFocusedByDefault(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean isFocusedByDefault
)

Equivalent to calling android.view.View.setFocusedByDefault.

static final void
@RequiresApi(value = 31)
setViewForegroundTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.view.View.setForegroundTintBlendMode.

static final void
@RequiresApi(value = 31)
setViewForegroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.view.View.setForegroundTintList.

static final void
@RequiresApi(value = 31)
setViewForegroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.view.View.setForegroundTintList.

static final void
@RequiresApi(value = 31)
setViewForegroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.view.View.setForegroundTintList.

static final void
@RequiresApi(value = 31)
setViewForegroundTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setForegroundTintList.

static final void
setViewLayoutDirection(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int layoutDirection
)

Equivalent to calling android.view.View.setLayoutDirection.

static final void
@RequiresApi(value = 24)
setViewMinimumHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int minHeight
)

Equivalent to calling android.view.View.setMinimumHeight.

static final void
@RequiresApi(value = 31)
setViewMinimumHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setMinimumHeight.

static final void
@RequiresApi(value = 31)
setViewMinimumHeightDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.view.View.setMinimumHeight.

static final void
@RequiresApi(value = 31)
setViewMinimumHeightDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setMinimumHeight.

static final void
@RequiresApi(value = 31)
setViewMinimumWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setMinimumWidth.

static final void
@RequiresApi(value = 31)
setViewMinimumWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.view.View.setMinimumWidth.

static final void
@RequiresApi(value = 31)
setViewMinimumWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setMinimumWidth.

static final void
@RequiresApi(value = 31)
setViewPivotX(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float pivotX
)

Equivalent to calling android.view.View.setPivotX.

static final void
@RequiresApi(value = 31)
setViewPivotY(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float pivotY
)

Equivalent to calling android.view.View.setPivotY.

static final void
@RequiresApi(value = 31)
setViewRotation(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float rotation
)

Equivalent to calling android.view.View.setRotation.

static final void
@RequiresApi(value = 31)
setViewRotationX(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float rotationX
)

Equivalent to calling android.view.View.setRotationX.

static final void
@RequiresApi(value = 31)
setViewRotationY(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float rotationY
)

Equivalent to calling android.view.View.setRotationY.

static final void
@RequiresApi(value = 31)
setViewScaleX(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float scaleX
)

Equivalent to calling android.view.View.setScaleX.

static final void
@RequiresApi(value = 31)
setViewScaleY(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float scaleY
)

Equivalent to calling android.view.View.setScaleY.

static final void
@RequiresApi(value = 31)
setViewScrollIndicators(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int scrollIndicators
)

Equivalent to calling android.view.View.setScrollIndicators.

static final void
@RequiresApi(value = 31)
setViewStateDescription(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.view.View.setStateDescription.

static final void
@RequiresApi(value = 30)
setViewStateDescription(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence stateDescription
)

Equivalent to calling android.view.View.setStateDescription.

static final void
@RequiresApi(value = 31)
setViewStateDescriptionAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setStateDescription.

static final void
setViewStubInflatedId(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int inflatedId
)

Equivalent to calling android.view.ViewStub.setInflatedId.

static final void
setViewStubLayoutResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @LayoutRes int layoutResource
)

Equivalent to calling android.view.ViewStub.setLayoutResource.

static final void
@RequiresApi(value = 31)
setViewTranslationXDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.view.View.setTranslationX.

static final void
@RequiresApi(value = 31)
setViewTranslationXDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setTranslationX.

static final void
@RequiresApi(value = 31)
setViewTranslationXDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setTranslationX.

static final void
@RequiresApi(value = 31)
setViewTranslationYDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.view.View.setTranslationY.

static final void
@RequiresApi(value = 31)
setViewTranslationYDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setTranslationY.

static final void
@RequiresApi(value = 31)
setViewTranslationYDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setTranslationY.

static final void
@RequiresApi(value = 31)
setViewTranslationZDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.view.View.setTranslationZ.

static final void
@RequiresApi(value = 31)
setViewTranslationZDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setTranslationZ.

static final void
@RequiresApi(value = 31)
setViewTranslationZDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setTranslationZ.

Public fields

INSTANCE

Added in 1.0.0
public static @NonNull RemoteViewsCompat INSTANCE

Public methods

setChronometerBase

Added in 1.0.0
public static final void setChronometerBase(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    long base
)

Equivalent to calling android.widget.Chronometer.setBase.

Parameters
@IdRes int viewId

The id of the target view

long base

The time at which the timer would have read 0:00. This time should be based off of android.os.SystemClock.elapsedRealtime.

setChronometerFormat

Added in 1.0.0
public static final void setChronometerFormat(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    String format
)

Equivalent to calling android.widget.Chronometer.setFormat.

Parameters
@IdRes int viewId

The id of the target view

String format

The Chronometer format string, or null to simply display the timer value.

setCompoundButtonDrawable

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setCompoundButtonDrawable(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DrawableRes int resId
)

Equivalent to calling android.widget.CompoundButton.setButtonDrawable.

Parameters
@IdRes int viewId

The id of the target view

@DrawableRes int resId

The resource identifier of the drawable, or 0 to clear the button.

setCompoundButtonIcon

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setCompoundButtonIcon(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    Icon icon
)

Equivalent to calling android.widget.CompoundButton.setButtonIcon.

Parameters
@IdRes int viewId

The id of the target view

Icon icon

An Icon holding the desired button, or null to clear the button.

setCompoundButtonTintBlendMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setCompoundButtonTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode tintMode
)

Equivalent to calling android.widget.CompoundButton.setButtonTintBlendMode.

Parameters
@IdRes int viewId

The id of the target view

BlendMode tintMode

The blending mode used to apply the tint, may be null to clear tint.

setCompoundButtonTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setCompoundButtonTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id for the tint to apply, may be 0 to clear tint.

setCompoundButtonTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setCompoundButtonTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList tint

The tint to apply, may be null to clear tint.

setCompoundButtonTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setCompoundButtonTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNight,
    ColorStateList night
)

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList notNight

The tint to apply when the UI is not in night mode, may be null to clear tint.

ColorStateList night

The tint to apply when the UI is in night mode, may be null to clear tint.

setCompoundButtonTintListAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setCompoundButtonTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id for the tint to apply, may be 0 to clear tint.

setFrameLayoutForegroundGravity

Added in 1.0.0
public static final void setFrameLayoutForegroundGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int foregroundGravity
)

Equivalent to calling android.widget.FrameLayout.setForegroundGravity.

Parameters
@IdRes int viewId

The id of the target view

int foregroundGravity

See android.view.Gravity.

setFrameLayoutMeasureAllChildren

Added in 1.0.0
public static final void setFrameLayoutMeasureAllChildren(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean measureAll
)

Equivalent to calling android.widget.FrameLayout.setMeasureAllChildren.

Parameters
@IdRes int viewId

The id of the target view

boolean measureAll

True to consider children marked GONE, false otherwise.

setGridLayoutAlignmentMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridLayoutAlignmentMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int alignmentMode
)

Equivalent to calling android.widget.GridLayout.setAlignmentMode.

Parameters
@IdRes int viewId

The id of the target view

int alignmentMode

Either android.widget.GridLayout.ALIGN_BOUNDS or android.widget.GridLayout.ALIGN_MARGINS.

setGridLayoutColumnCount

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridLayoutColumnCount(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int columnCount
)

Equivalent to calling android.widget.GridLayout.setColumnCount.

Parameters
@IdRes int viewId

The id of the target view

int columnCount

The number of columns.

setGridLayoutRowCount

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridLayoutRowCount(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int rowCount
)

Equivalent to calling android.widget.GridLayout.setRowCount.

Parameters
@IdRes int viewId

The id of the target view

int rowCount

The number of rows.

setGridViewColumnWidth

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridViewColumnWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.GridView.setColumnWidth.

Parameters
@IdRes int viewId

The id of the target view

float value

The column width.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setGridViewColumnWidthDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridViewColumnWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int columnWidth
)

Equivalent to calling android.widget.GridView.setColumnWidth.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int columnWidth

The resource id of a dimension resource for the column width.

setGridViewColumnWidthDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridViewColumnWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int columnWidth
)

Equivalent to calling android.widget.GridView.setColumnWidth.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int columnWidth

The resource id of a dimension resource for the column width.

setGridViewGravity

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridViewGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int gravity
)

Equivalent to calling android.widget.GridView.setGravity.

Parameters
@IdRes int viewId

The id of the target view

int gravity

The gravity to apply to this grid's children.

setGridViewHorizontalSpacing

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridViewHorizontalSpacing(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.GridView.setHorizontalSpacing.

Parameters
@IdRes int viewId

The id of the target view

float value

The amount of horizontal space between items.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setGridViewHorizontalSpacingDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridViewHorizontalSpacingDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.GridView.setHorizontalSpacing.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The resource id of a dimension resource for the amount of horizontal space between items.

setGridViewHorizontalSpacingDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridViewHorizontalSpacingDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.GridView.setHorizontalSpacing.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The resource id of a dimension attribute for the amount of horizontal space between items.

setGridViewNumColumns

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridViewNumColumns(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int numColumns
)

Equivalent to calling android.widget.GridView.setNumColumns.

Parameters
@IdRes int viewId

The id of the target view

int numColumns

The desired number of columns.

setGridViewStretchMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridViewStretchMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int stretchMode
)

Equivalent to calling android.widget.GridView.setStretchMode.

setGridViewVerticalSpacing

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridViewVerticalSpacing(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.GridView.setVerticalSpacing.

Parameters
@IdRes int viewId

The id of the target view

float value

The amount of vertical space between items.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setGridViewVerticalSpacingDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridViewVerticalSpacingDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.GridView.setVerticalSpacing.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The resource id of a dimension resource for the amount of vertical space between items.

setGridViewVerticalSpacingDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setGridViewVerticalSpacingDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.GridView.setVerticalSpacing.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The resource id of a dimension attribute for the amount of vertical space between items.

setImageViewAdjustViewBounds

Added in 1.0.0
public static final void setImageViewAdjustViewBounds(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean adjustViewBounds
)

Equivalent to calling android.widget.ImageView.setAdjustViewBounds.

Parameters
@IdRes int viewId

The id of the target view

boolean adjustViewBounds

Whether to adjust the bounds of this view to preserve the original aspect ratio of the drawable.

setImageViewColorFilter

Added in 1.0.0
public static final void setImageViewColorFilter(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int color
)

Equivalent to calling android.widget.ImageView.setColorFilter.

Parameters
@IdRes int viewId

The id of the target view

@ColorInt int color

Color tint to apply.

setImageViewColorFilter

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewColorFilter(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int notNight,
    @ColorInt int night
)

Equivalent to calling android.widget.ImageView.setColorFilter.

Parameters
@IdRes int viewId

The id of the target view

@ColorInt int notNight

The color tint to apply when the UI is not in night mode.

@ColorInt int night

The color tint to apply when the UI is in night mode.

setImageViewColorFilterAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewColorFilterAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ImageView.setColorFilter.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id of the color tint to apply.

setImageViewColorFilterResource

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewColorFilterResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.ImageView.setColorFilter.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id of the color tint to apply.

setImageViewImageAlpha

Added in 1.0.0
public static final void setImageViewImageAlpha(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int alpha
)

Equivalent to calling android.widget.ImageView.setImageAlpha.

Parameters
@IdRes int viewId

The id of the target view

int alpha

The alpha value that should be applied to the image (between 0 and 255 inclusive, with 0 being transparent and 255 being opaque)

setImageViewImageLevel

Added in 1.0.0
public static final void setImageViewImageLevel(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int level
)

Equivalent to calling android.widget.ImageView.setImageLevel.

Parameters
@IdRes int viewId

The id of the target view

int level

The new level for the image.

setImageViewImageTintBlendMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewImageTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.ImageView.setImageTintBlendMode.

Parameters
@IdRes int viewId

The id of the target view

BlendMode blendMode

The blending mode used to apply the tint, may be null to clear.

setImageViewImageTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewImageTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.ImageView.setImageTintList.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id of the tint to apply, may be 0 to clear tint.

setImageViewImageTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewImageTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.ImageView.setImageTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList tint

The tint to apply, may be null to clear tint

setImageViewImageTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewImageTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.widget.ImageView.setImageTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList notNightTint

The tint to apply when the UI is not in night mode, may be null to clear tint.

ColorStateList nightTint

The tint to apply when the UI is in night mode, may be null to clear tint.

setImageViewImageTintListAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewImageTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ImageView.setImageTintList.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute of the tint to apply, may be 0 to clear tint.

setImageViewMaxHeight

Added in 1.0.0
public static final void setImageViewMaxHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int maxHeight
)

Equivalent to calling android.widget.ImageView.setMaxHeight.

Parameters
@IdRes int viewId

The id of the target view

@Px int maxHeight

The maximum height of the view, in pixels.

setImageViewMaxHeight

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewMaxHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.ImageView.setMaxHeight.

Parameters
@IdRes int viewId

The id of the target view

float value

The maximum height of the view.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setImageViewMaxHeightDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewMaxHeightDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.ImageView.setMaxHeight.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

A dimension resource identifier for maximum height of the view.

setImageViewMaxHeightDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewMaxHeightDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ImageView.setMaxHeight.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

A dimension resource attribute for maximum height of the view.

setImageViewMaxWidth

Added in 1.0.0
public static final void setImageViewMaxWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int maxWidth
)

Equivalent to calling android.widget.ImageView.setMaxWidth.

Parameters
@IdRes int viewId

The id of the target view

@Px int maxWidth

The maximum width of the view, in pixels.

setImageViewMaxWidth

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewMaxWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.ImageView.setMaxWidth.

Parameters
@IdRes int viewId

The id of the target view

float value

The maximum width of the view.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setImageViewMaxWidthDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewMaxWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.ImageView.setMaxWidth.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

A dimension resource identifier for maximum width of the view.

setImageViewMaxWidthDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setImageViewMaxWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ImageView.setMaxWidth.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

A dimension resource attribute for maximum width of the view.

setLinearLayoutBaselineAligned

Added in 1.0.0
public static final void setLinearLayoutBaselineAligned(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean baselineAligned
)

Equivalent to calling android.widget.LinearLayout.setBaselineAligned.

Parameters
@IdRes int viewId

The id of the target view

boolean baselineAligned

True to align widgets on their baseline, false otherwise.

setLinearLayoutBaselineAlignedChildIndex

Added in 1.0.0
public static final void setLinearLayoutBaselineAlignedChildIndex(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int i
)

Equivalent to calling android.widget.LinearLayout.setBaselineAlignedChildIndex.

Parameters
@IdRes int viewId

The id of the target view

int i

True to align widgets on their baseline, false otherwise.

setLinearLayoutGravity

Added in 1.0.0
public static final void setLinearLayoutGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int gravity
)

Equivalent to calling android.widget.LinearLayout.setGravity.

Parameters
@IdRes int viewId

The id of the target view

int gravity

See android.view.Gravity.

setLinearLayoutHorizontalGravity

Added in 1.0.0
public static final void setLinearLayoutHorizontalGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int horizontalGravity
)

Equivalent to calling android.widget.LinearLayout.setHorizontalGravity.

Parameters
@IdRes int viewId

The id of the target view

setLinearLayoutMeasureWithLargestChildEnabled

Added in 1.0.0
public static final void setLinearLayoutMeasureWithLargestChildEnabled(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean enabled
)

Equivalent to calling android.widget.LinearLayout.setMeasureWithLargestChildEnabled.

Parameters
@IdRes int viewId

The id of the target view

boolean enabled

True to measure children with a weight using the minimum size of the largest child, false otherwise.

setLinearLayoutVerticalGravity

Added in 1.0.0
public static final void setLinearLayoutVerticalGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int verticalGravity
)

Equivalent to calling android.widget.LinearLayout.setVerticalGravity.

Parameters
@IdRes int viewId

The id of the target view

setLinearLayoutWeightSum

Added in 1.0.0
public static final void setLinearLayoutWeightSum(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float weightSum
)

Equivalent to calling android.widget.LinearLayout.setWeightSum.

Parameters
@IdRes int viewId

The id of the target view

float weightSum

A number greater than 0.0f, or a number lower than or equals to 0.0f if the weight sum should be computed from the children's layout_weight

setProgressBarIndeterminate

Added in 1.0.0
public static final void setProgressBarIndeterminate(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean indeterminate
)

Equivalent to calling android.widget.ProgressBar.setIndeterminate.

Parameters
@IdRes int viewId

The id of the target view

boolean indeterminate

True to enable the indeterminate mode.

setProgressBarIndeterminateTintBlendMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarIndeterminateTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintBlendMode.

Parameters
@IdRes int viewId

The id of the target view

BlendMode blendMode

The blending mode used to apply the tint, may be null to clear.

setProgressBarIndeterminateTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarIndeterminateTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id of the tint to apply, may be 0 to clear tint.

setProgressBarIndeterminateTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarIndeterminateTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList tint

The tint to apply, may be null to clear tint.

setProgressBarIndeterminateTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarIndeterminateTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList notNightTint

The tint to apply when the UI is not in night mode, may be null to clear tint.

ColorStateList nightTint

The tint to apply when the UI is in night mode, may be null to clear tint.

setProgressBarIndeterminateTintListAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarIndeterminateTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id of the tint to apply, may be 0 to clear tint.

setProgressBarMax

Added in 1.0.0
public static final void setProgressBarMax(@NonNull RemoteViews receiver, @IdRes int viewId, int max)

Equivalent to calling android.widget.ProgressBar.setMax.

Parameters
@IdRes int viewId

The id of the target view

int max

The upper range of this progress bar.

setProgressBarMin

Added in 1.0.0
@RequiresApi(value = 26)
public static final void setProgressBarMin(@NonNull RemoteViews receiver, @IdRes int viewId, int min)

Equivalent to calling android.widget.ProgressBar.setMin.

Parameters
@IdRes int viewId

The id of the target view

int min

The lower range of this progress bar.

setProgressBarProgress

Added in 1.0.0
public static final void setProgressBarProgress(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int progress
)

Equivalent to calling android.widget.ProgressBar.setProgress.

Parameters
@IdRes int viewId

The id of the target view

int progress

The new progress.

setProgressBarProgressBackgroundTintBlendMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarProgressBackgroundTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintBlendMode.

Parameters
@IdRes int viewId

The id of the target view

BlendMode blendMode

The blending mode used to apply the tint, may be null to clear.

setProgressBarProgressBackgroundTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarProgressBackgroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id of the tint to apply, may be 0 to clear tint.

setProgressBarProgressBackgroundTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarProgressBackgroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList tint

The tint to apply, may be null to clear tint.

setProgressBarProgressBackgroundTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarProgressBackgroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList notNightTint

The tint to apply when the UI is not in night mode, may be null to clear tint.

ColorStateList nightTint

The tint to apply when the UI is in night mode, may be null to clear tint.

setProgressBarProgressBackgroundTintListAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarProgressBackgroundTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute of the tint to apply, may be 0 to clear tint.

setProgressBarProgressTintBlendMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarProgressTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.ProgressBar.setProgressTintBlendMode.

Parameters
@IdRes int viewId

The id of the target view

BlendMode blendMode

The blending mode used to apply the tint, may be null to clear.

setProgressBarProgressTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarProgressTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id of the tint to apply, may be 0 to clear tint.

setProgressBarProgressTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarProgressTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList tint

The tint to apply, may be null to clear tint.

setProgressBarProgressTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarProgressTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList notNightTint

The tint to apply when the UI is not in night mode, may be null to clear tint.

ColorStateList nightTint

The tint to apply when the UI is in night mode, may be null to clear tint.

setProgressBarProgressTintListAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarProgressTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id of the tint to apply, may be 0 to clear tint.

setProgressBarSecondaryProgress

Added in 1.0.0
public static final void setProgressBarSecondaryProgress(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int secondaryProgress
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgress.

Parameters
@IdRes int viewId

The id of the target view

int secondaryProgress

The new secondary progress.

setProgressBarSecondaryProgressTintBlendMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarSecondaryProgressTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintBlendMode.

Parameters
@IdRes int viewId

The id of the target view

BlendMode blendMode

The blending mode used to apply the tint, may be null to clear.

setProgressBarSecondaryProgressTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarSecondaryProgressTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id of the tint to apply, may be 0 to clear tint.

setProgressBarSecondaryProgressTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarSecondaryProgressTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList tint

The tint to apply, may be null to clear tint.

setProgressBarSecondaryProgressTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarSecondaryProgressTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList notNightTint

The tint to apply when the UI is not in night mode, may be null to clear tint.

ColorStateList nightTint

The tint to apply when the UI is in night mode, may be null to clear tint.

setProgressBarSecondaryProgressTintListAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarSecondaryProgressTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute of the tint to apply, may be 0 to clear tint.

setProgressBarStateDescription

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarStateDescription(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.ProgressBar.setStateDescription.

Parameters
@IdRes int viewId

The id of the target view

@StringRes int resId

The resource id of the state description, or 0 to reset to the default ProgressBar state description.

setProgressBarStateDescription

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarStateDescription(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence stateDescription
)

Equivalent to calling android.widget.ProgressBar.setStateDescription.

Parameters
@IdRes int viewId

The id of the target view

CharSequence stateDescription

The state description, or null to reset to the default ProgressBar state description.

setProgressBarStateDescriptionAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setProgressBarStateDescriptionAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.ProgressBar.setStateDescription.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id of the state description, or 0 to reset to the default ProgressBar state description.

setRelativeLayoutGravity

Added in 1.0.0
public static final void setRelativeLayoutGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int gravity
)

Equivalent to calling android.widget.RelativeLayout.setGravity.

Parameters
@IdRes int viewId

The id of the target view

int gravity

See android.view.Gravity.

setRelativeLayoutHorizontalGravity

Added in 1.0.0
public static final void setRelativeLayoutHorizontalGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int horizontalGravity
)

Equivalent to calling android.widget.RelativeLayout.setHorizontalGravity.

Parameters
@IdRes int viewId

The id of the target view

setRelativeLayoutIgnoreGravity

Added in 1.0.0
public static final void setRelativeLayoutIgnoreGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @IdRes int childViewId
)

Equivalent to calling android.widget.RelativeLayout.setIgnoreGravity.

Parameters
@IdRes int viewId

The id of the target view

@IdRes int childViewId

The id of the child View to be ignored by gravity, or 0 if no View should be ignored.

setRelativeLayoutVerticalGravity

Added in 1.0.0
public static final void setRelativeLayoutVerticalGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int verticalGravity
)

Equivalent to calling android.widget.RelativeLayout.setVerticalGravity.

Parameters
@IdRes int viewId

The id of the target view

setRemoteAdapter

Added in 1.0.0
public static final void setRemoteAdapter(
    @NonNull Context context,
    @NonNull RemoteViews remoteViews,
    int appWidgetId,
    @IdRes int viewId,
    @NonNull RemoteViewsCompat.RemoteCollectionItems items
)

Creates a simple Adapter for the widgetId and viewId specified. The viewId must point to an AdapterView, ie. android.widget.ListView, android.widget.GridView, android.widget.StackView, or android.widget.AdapterViewAnimator.

This is a simpler but less flexible approach to populating collection widgets. Its use is encouraged for most scenarios, as long as the total memory within the list of RemoteViews is relatively small (ie. doesn't contain large or numerous Bitmaps, see RemoteViews.setImageViewBitmap). In the case of numerous images, the use of API is still possible by setting image URIs instead of Bitmaps, see RemoteViews.setImageViewUri.

If you use this API, you should not call AppWidgetManager.notifyAppWidgetViewDataChanged and should instead update your app widget, calling this method with the new RemoteCollectionItems.

Parameters
@NonNull Context context

The Context of the app providing the widget.

@NonNull RemoteViews remoteViews

The RemoteViews to receive the adapter.

int appWidgetId

the id of the widget for which the adapter is being set.

@IdRes int viewId

The id of the android.widget.AdapterView.

@NonNull RemoteViewsCompat.RemoteCollectionItems items

The items to display in the android.widget.AdapterView.

setSwitchMinWidth

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchMinWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.Switch.setSwitchMinWidth.

Parameters
@IdRes int viewId

The id of the target view

float value

Minimum width of the switch.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setSwitchMinWidthDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchMinWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.Switch.setSwitchMinWidth.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the minimum width of the switch.

setSwitchMinWidthDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchMinWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setSwitchMinWidth.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the minimum width of the switch.

setSwitchPadding

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchPadding(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.Switch.setSwitchPadding.

Parameters
@IdRes int viewId

The id of the target view

float value

Amount of padding.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setSwitchPaddingDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchPaddingDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.Switch.setSwitchPadding.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the amount of padding.

setSwitchPaddingDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchPaddingDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setSwitchPadding.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the amount of padding.

setSwitchShowText

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchShowText(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean showText
)

Equivalent to calling android.widget.Switch.setShowText.

Parameters
@IdRes int viewId

The id of the target view

boolean showText

True to display on/off text.

setSwitchSplitTrack

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchSplitTrack(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean splitTrack
)

Equivalent to calling android.widget.Switch.setSplitTrack.

Parameters
@IdRes int viewId

The id of the target view

boolean splitTrack

Whether the track should be split by the thumb.

setSwitchTextOff

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTextOff(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.Switch.setTextOff.

Parameters
@IdRes int viewId

The id of the target view

@StringRes int resId

The resource id for the text displayed when the button is not in the checked state.

setSwitchTextOff

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTextOff(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence textOff
)

Equivalent to calling android.widget.Switch.setTextOff.

Parameters
@IdRes int viewId

The id of the target view

CharSequence textOff

The text displayed when the button is not in the checked state.

setSwitchTextOffAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTextOffAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setTextOff.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id for the text displayed when the button is not in the checked state.

setSwitchTextOn

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTextOn(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.Switch.setTextOn.

Parameters
@IdRes int viewId

The id of the target view

@StringRes int resId

The resource id for the text displayed when the button is in the checked state.

setSwitchTextOn

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTextOn(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence textOn
)

Equivalent to calling android.widget.Switch.setTextOn.

Parameters
@IdRes int viewId

The id of the target view

CharSequence textOn

The text displayed when the button is in the checked state.

setSwitchTextOnAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTextOnAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setTextOn.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id for the text displayed when the button is in the checked state.

setSwitchThumbIcon

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchThumbIcon(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    Icon icon
)

Equivalent to calling android.widget.Switch.setThumbIcon.

Parameters
@IdRes int viewId

The id of the target view

Icon icon

An Icon holding the desired thumb, or null to clear the thumb.

setSwitchThumbIcon

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchThumbIcon(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    Icon notNight,
    Icon night
)

Equivalent to calling android.widget.Switch.setThumbIcon.

Parameters
@IdRes int viewId

The id of the target view

Icon notNight

An Icon holding the desired thumb when the UI is not in night mode, or null to clear the thumb.

Icon notNight

An Icon holding the desired thumb when the UI is in night mode, or null to clear the thumb.

setSwitchThumbResource

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchThumbResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DrawableRes int resId
)

Equivalent to calling android.widget.Switch.setThumbResource.

Parameters
@IdRes int viewId

The id of the target view

@DrawableRes int resId

Resource id of a thumb drawable.

setSwitchThumbTextPadding

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchThumbTextPadding(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.Switch.setThumbTextPadding.

Parameters
@IdRes int viewId

The id of the target view

float value

Horizontal padding for switch thumb text.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setSwitchThumbTextPaddingDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchThumbTextPaddingDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.Switch.setThumbTextPadding.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the horizontal padding for switch thumb text.

setSwitchThumbTextPaddingDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchThumbTextPaddingDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setThumbTextPadding.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the horizontal padding for switch thumb text.

setSwitchThumbTintBlendMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchThumbTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.Switch.setThumbTintBlendMode.

Parameters
@IdRes int viewId

The id of the target view

BlendMode blendMode

The blending mode used to apply the tint, may be null to clear tint.

setSwitchThumbTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchThumbTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.Switch.setThumbTintList.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id for the tint to apply, may be 0 to clear tint.

setSwitchThumbTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchThumbTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.Switch.setThumbTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList tint

The tint to apply, may be null to clear tint.

setSwitchThumbTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchThumbTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNight,
    ColorStateList night
)

Equivalent to calling android.widget.Switch.setThumbTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList notNight

The tint to apply when the UI is not in night mode, may be null to clear tint.

ColorStateList night

The tint to apply when the UI is in night mode, may be null to clear tint.

setSwitchThumbTintListAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchThumbTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setThumbTintList.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id for the tint to apply, may be 0 to clear tint.

setSwitchTrackIcon

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTrackIcon(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    Icon icon
)

Equivalent to calling android.widget.Switch.setTrackIcon.

Parameters
@IdRes int viewId

The id of the target view

Icon icon

An Icon holding the desired track, or null to clear the track.

setSwitchTrackIcon

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTrackIcon(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    Icon notNight,
    Icon night
)

Equivalent to calling android.widget.Switch.setTrackIcon.

Parameters
@IdRes int viewId

The id of the target view

Icon notNight

An Icon holding the desired track when the UI is not in night mode, or null to clear the track.

Icon notNight

An Icon holding the desired track when the UI is in night mode, or null to clear the track.

setSwitchTrackResource

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTrackResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DrawableRes int resId
)

Equivalent to calling android.widget.Switch.setTrackResource.

Parameters
@IdRes int viewId

The id of the target view

@DrawableRes int resId

Resource id of a track drawable.

setSwitchTrackTintBlendMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTrackTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.widget.Switch.setTrackTintBlendMode.

Parameters
@IdRes int viewId

The id of the target view

BlendMode blendMode

The blending mode used to apply the tint, may be null to clear tint.

setSwitchTrackTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTrackTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.Switch.setTrackTintList.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id for the tint to apply, may be 0 to clear tint.

setSwitchTrackTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTrackTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.widget.Switch.setTrackTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList tint

The tint to apply, may be null to clear tint.

setSwitchTrackTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTrackTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNight,
    ColorStateList night
)

Equivalent to calling android.widget.Switch.setTrackTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList notNight

The tint to apply when the UI is not in night mode, may be null to clear tint.

ColorStateList night

The tint to apply when the UI is in night mode, may be null to clear tint.

setSwitchTrackTintListAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setSwitchTrackTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.Switch.setTrackTintList.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id for the tint to apply, may be 0 to clear tint.

setTextClockFormat12Hour

Added in 1.0.0
public static final void setTextClockFormat12Hour(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence format
)

Equivalent to calling android.widget.TextClock.setFormat12Hour.

Parameters
@IdRes int viewId

The id of the target view

CharSequence format

A date/time formatting pattern as described in android.text.format.DateFormat.

setTextClockFormat12Hour

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextClockFormat12Hour(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.TextClock.setFormat12Hour.

Parameters
@IdRes int viewId

The id of the target view

@StringRes int resId

A resource id for a date/time formatting pattern as described in android.text.format.DateFormat.

setTextClockFormat12HourAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextClockFormat12HourAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextClock.setFormat12Hour.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

An attribute id for a date/time formatting pattern as described in android.text.format.DateFormat.

setTextClockFormat24Hour

Added in 1.0.0
public static final void setTextClockFormat24Hour(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence format
)

Equivalent to calling android.widget.TextClock.setFormat24Hour.

Parameters
@IdRes int viewId

The id of the target view

CharSequence format

A date/time formatting pattern as described in android.text.format.DateFormat.

setTextClockFormat24Hour

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextClockFormat24Hour(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.TextClock.setFormat24Hour.

Parameters
@IdRes int viewId

The id of the target view

@StringRes int resId

A resource id for a date/time formatting pattern as described in android.text.format.DateFormat.

setTextClockFormat24HourAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextClockFormat24HourAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextClock.setFormat24Hour.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

An attribute id for a date/time formatting pattern as described in android.text.format.DateFormat.

setTextClockTimeZone

Added in 1.0.0
public static final void setTextClockTimeZone(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    String timeZone
)

Equivalent to calling android.widget.TextClock.setTimeZone.

Parameters
@IdRes int viewId

The id of the target view

String timeZone

The desired time zone's ID as specified in java.util.TimeZone or null to use the time zone specified by the user (system time zone).

setTextViewAllCaps

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewAllCaps(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean allCaps
)

Equivalent to calling android.widget.TextView.setAllCaps.

Parameters
@IdRes int viewId

The id of the target view

boolean allCaps

Whether the text should display in all caps.

setTextViewAutoLinkMask

Added in 1.0.0
public static final void setTextViewAutoLinkMask(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int mask
)

Equivalent to calling android.widget.TextView.setAutoLinkMask.

Parameters
@IdRes int viewId

The id of the target view

int mask

See android.text.util.Linkify.ALL and peers for possible values.

setTextViewCompoundDrawablePadding

Added in 1.0.0
public static final void setTextViewCompoundDrawablePadding(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int pad
)

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

Parameters
@IdRes int viewId

The id of the target view

@Px int pad

The padding between the compound drawables and the text, in pixels.

setTextViewCompoundDrawablePadding

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewCompoundDrawablePadding(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

Parameters
@IdRes int viewId

The id of the target view

float value

The padding between the compound drawables and the text.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setTextViewCompoundDrawablePaddingDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewCompoundDrawablePaddingDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the padding between the compound drawables and the text.

setTextViewCompoundDrawablePaddingDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewCompoundDrawablePaddingDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the padding between the compound drawables and the text.

setTextViewEms

Added in 1.0.0
public static final void setTextViewEms(@NonNull RemoteViews receiver, @IdRes int viewId, int ems)

Equivalent to calling android.widget.TextView.setEms.

Parameters
@IdRes int viewId

The id of the target view

int ems

The width of the TextView, in ems.

setTextViewError

Added in 1.0.0
public static final void setTextViewError(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence error
)

Equivalent to calling android.widget.TextView.setError.

Parameters
@IdRes int viewId

The id of the target view

CharSequence error

The error message for the TextView.

setTextViewError

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewError(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.TextView.setError.

Parameters
@IdRes int viewId

The id of the target view

@StringRes int resId

A string resource for the error.

setTextViewErrorAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewErrorAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setError.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

A string attribute for the error.

setTextViewFontFeatureSettings

Added in 1.0.0
@RequiresApi(value = 21)
public static final void setTextViewFontFeatureSettings(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @NonNull String fontFeatureSettings
)

Equivalent to calling android.widget.TextView.setFontFeatureSettings.

Parameters
@IdRes int viewId

The id of the target view

@NonNull String fontFeatureSettings

Font feature settings represented as CSS compatible string.

setTextViewGravity

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewGravity(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int gravity
)

Equivalent to calling android.widget.TextView.setGravity.

Parameters
@IdRes int viewId

The id of the target view

int gravity

The gravity value, from android.view.Gravity.

setTextViewHeight

Added in 1.0.0
public static final void setTextViewHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int pixels
)

Equivalent to calling android.widget.TextView.setHeight.

Parameters
@IdRes int viewId

The id of the target view

@Px int pixels

The height of the TextView, in pixels.

setTextViewHeight

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setHeight.

Parameters
@IdRes int viewId

The id of the target view

float value

The height of the TextView.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setTextViewHeightDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewHeightDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setHeight.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the height of the TextView.

setTextViewHeightDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewHeightDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setHeight.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the height of the TextView.

setTextViewHighlightColor

Added in 1.0.0
public static final void setTextViewHighlightColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int color
)

Equivalent to calling android.widget.TextView.setHighlightColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorInt int color

The highlight color to use.

setTextViewHighlightColor

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewHighlightColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int notNight,
    @ColorInt int night
)

Equivalent to calling android.widget.TextView.setHighlightColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorInt int notNight

The highlight color to use when night mode is not active.

@ColorInt int night

The highlight color to use when night mode is active.

setTextViewHighlightColorAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewHighlightColorAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setHighlightColor.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id for the highlight color.

setTextViewHighlightColorResource

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewHighlightColorResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.TextView.setHighlightColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id for the highlight color.

setTextViewHint

Added in 1.0.0
public static final void setTextViewHint(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence hint
)

Equivalent to calling android.widget.TextView.setHint.

Parameters
@IdRes int viewId

The id of the target view

CharSequence hint

The hint for the TextView.

setTextViewHint

Added in 1.0.0
public static final void setTextViewHint(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.TextView.setHint.

Parameters
@IdRes int viewId

The id of the target view

@StringRes int resId

A string resource for the hint.

setTextViewHintAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewHintAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setHint.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

A string attribute for the hint.

setTextViewHintTextColor

Added in 1.0.0
public static final void setTextViewHintTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int color
)

Equivalent to calling android.widget.TextView.setHintTextColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorInt int color

The hint text color to use.

setTextViewHintTextColor

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewHintTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int notNight,
    @ColorInt int night
)

Equivalent to calling android.widget.TextView.setHintTextColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorInt int notNight

The hint text color to use when night mode is not active.

@ColorInt int night

The hint text color to use when night mode is active.

setTextViewHintTextColorAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewHintTextColorAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setHintTextColor.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id for the hint text color.

setTextViewHintTextColorResource

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewHintTextColorResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.TextView.setHintTextColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id for the hint text color.

setTextViewJustificationMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewJustificationMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int justificationMode
)

Equivalent to calling android.widget.TextView.setJustificationMode.

Parameters
@IdRes int viewId

The id of the target view

int justificationMode

The justification mode to set.

setTextViewLetterSpacing

Added in 1.0.0
@RequiresApi(value = 21)
public static final void setTextViewLetterSpacing(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float letterSpacing
)

Equivalent to calling android.widget.TextView.setLetterSpacing.

Parameters
@IdRes int viewId

The id of the target view

float letterSpacing

A text letter-space value in ems.

setTextViewLineHeight

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewLineHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setLineHeight.

Parameters
@IdRes int viewId

The id of the target view

float value

The value of the dimension for the line height.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setTextViewLineHeightDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewLineHeightDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setLineHeight.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the line height.

setTextViewLineHeightDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewLineHeightDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setLineHeight.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the line height.

setTextViewLines

Added in 1.0.0
public static final void setTextViewLines(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int lines
)

Equivalent to calling android.widget.TextView.setLines.

Parameters
@IdRes int viewId

The id of the target view

int lines

The number of lines for the height of the TextView.

setTextViewLinkTextColor

Added in 1.0.0
public static final void setTextViewLinkTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int color
)

Equivalent to calling android.widget.TextView.setLinkTextColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorInt int color

The link text color to use.

setTextViewLinkTextColor

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewLinkTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int notNight,
    @ColorInt int night
)

Equivalent to calling android.widget.TextView.setLinkTextColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorInt int notNight

The link text color to use when night mode is not active.

@ColorInt int night

The link text color to use when night mode is active.

setTextViewLinkTextColorAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewLinkTextColorAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setLinkTextColor.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id for the link text color.

setTextViewLinkTextColorResource

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewLinkTextColorResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.TextView.setLinkTextColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id for the link text color.

setTextViewLinksClickable

Added in 1.0.0
public static final void setTextViewLinksClickable(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean whether
)

Equivalent to calling android.widget.TextView.setLinksClickable.

Parameters
@IdRes int viewId

The id of the target view

boolean whether

Whether detected links will be clickable (see TextView documentation).

setTextViewMaxEms

Added in 1.0.0
public static final void setTextViewMaxEms(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int maxems
)

Equivalent to calling android.widget.TextView.setMaxEms.

Parameters
@IdRes int viewId

The id of the target view

int maxems

The maximum width of the TextView, in ems.

setTextViewMaxHeight

Added in 1.0.0
public static final void setTextViewMaxHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int maxHeight
)

Equivalent to calling android.widget.TextView.setMaxHeight.

Parameters
@IdRes int viewId

The id of the target view

@Px int maxHeight

The maximum height of the TextView, in pixels.

setTextViewMaxHeight

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewMaxHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setMaxHeight.

Parameters
@IdRes int viewId

The id of the target view

float value

The maximum height of the TextView.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setTextViewMaxHeightDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewMaxHeightDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setMaxHeight.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the maximum height of the TextView.

setTextViewMaxHeightDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewMaxHeightDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setMaxHeight.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the maximum height of the TextView.

setTextViewMaxLines

Added in 1.0.0
public static final void setTextViewMaxLines(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int maxLines
)

Equivalent to calling android.widget.TextView.setMaxLines.

Parameters
@IdRes int viewId

The id of the target view

int maxLines

The maximum number of lines for the height of the TextView.

setTextViewMaxWidth

Added in 1.0.0
public static final void setTextViewMaxWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int maxWidth
)

Equivalent to calling android.widget.TextView.setMaxWidth.

Parameters
@IdRes int viewId

The id of the target view

@Px int maxWidth

The maximum width of the TextView, in pixels.

setTextViewMaxWidth

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewMaxWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setMaxWidth.

Parameters
@IdRes int viewId

The id of the target view

float value

The maximum width of the TextView.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setTextViewMaxWidthDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewMaxWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setMaxWidth.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the maximum width of the TextView.

setTextViewMaxWidthDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewMaxWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setMaxWidth.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the maximum width of the TextView.

setTextViewMinEms

Added in 1.0.0
public static final void setTextViewMinEms(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int minems
)

Equivalent to calling android.widget.TextView.setMinEms.

Parameters
@IdRes int viewId

The id of the target view

int minems

The minimum width of the TextView, in ems.

setTextViewMinHeight

Added in 1.0.0
public static final void setTextViewMinHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int minHeight
)

Equivalent to calling android.widget.TextView.setMinHeight.

Parameters
@IdRes int viewId

The id of the target view

@Px int minHeight

The minimum height of the TextView, in pixels.

setTextViewMinHeight

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewMinHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setMinHeight.

Parameters
@IdRes int viewId

The id of the target view

float value

The minimum height of the TextView.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setTextViewMinHeightDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewMinHeightDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setMinHeight.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the minimum height of the TextView.

setTextViewMinHeightDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewMinHeightDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setMinHeight.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the minimum height of the TextView.

setTextViewMinLines

Added in 1.0.0
public static final void setTextViewMinLines(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int minLines
)

Equivalent to calling android.widget.TextView.setMinLines.

Parameters
@IdRes int viewId

The id of the target view

int minLines

The minimum number of lines for the height of the TextView.

setTextViewMinWidth

Added in 1.0.0
public static final void setTextViewMinWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int minWidth
)

Equivalent to calling android.widget.TextView.setMinWidth.

Parameters
@IdRes int viewId

The id of the target view

@Px int minWidth

The minimum width of the TextView, in pixels.

setTextViewMinWidth

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewMinWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setMinWidth.

Parameters
@IdRes int viewId

The id of the target view

float value

The minimum width of the TextView.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setTextViewMinWidthDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewMinWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setMinWidth.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the minimum width of the TextView.

setTextViewMinWidthDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewMinWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setMinWidth.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the minimum width of the TextView.

setTextViewPaintFlags

Added in 1.0.0
public static final void setTextViewPaintFlags(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int flags
)

Equivalent to calling android.widget.TextView.setPaintFlags.

Parameters
@IdRes int viewId

The id of the target view

int flags

The flags for the text paint.

setTextViewSelectAllOnFocus

Added in 1.0.0
public static final void setTextViewSelectAllOnFocus(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean selectAllOnFocus
)

Equivalent to calling android.widget.TextView.setSelectAllOnFocus.

Parameters
@IdRes int viewId

The id of the target view

boolean selectAllOnFocus

Whether to select all text when the TextView is focused.

setTextViewSingleLine

Added in 1.0.0
public static final void setTextViewSingleLine(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean singleLine
)

Equivalent to calling android.widget.TextView.setSingleLine.

Parameters
@IdRes int viewId

The id of the target view

boolean singleLine

Whether the TextView is single-line.

setTextViewText

Added in 1.0.0
public static final void setTextViewText(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.widget.TextView.setText.

Parameters
@IdRes int viewId

The id of the target view

@StringRes int resId

A string resource for the text.

setTextViewTextAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewTextAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setText.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

A string attribute for the text.

setTextViewTextColor

Added in 1.0.0
public static final void setTextViewTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int color
)

Equivalent to calling android.widget.TextView.setTextColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorInt int color

The text color to use.

setTextViewTextColor

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @NonNull ColorStateList colors
)

Equivalent to calling android.widget.TextView.setTextColor.

Parameters
@IdRes int viewId

The id of the target view

@NonNull ColorStateList colors

The text colors to use.

setTextViewTextColor

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @NonNull ColorStateList notNight,
    @NonNull ColorStateList night
)

Equivalent to calling android.widget.TextView.setTextColor.

Parameters
@IdRes int viewId

The id of the target view

@NonNull ColorStateList notNight

The text colors to use when night mode is not active.

@NonNull ColorStateList night

The text colors to use when night mode is active.

setTextViewTextColor

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewTextColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int notNight,
    @ColorInt int night
)

Equivalent to calling android.widget.TextView.setTextColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorInt int notNight

The text color to use when night mode is not active.

@ColorInt int night

The text color to use when night mode is active.

setTextViewTextColorAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewTextColorAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setTextColor.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id for the text color.

setTextViewTextColorResource

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewTextColorResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.widget.TextView.setTextColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id for the text color.

setTextViewTextScaleX

Added in 1.0.0
public static final void setTextViewTextScaleX(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float size
)

Equivalent to calling android.widget.TextView.setTextScaleX.

Parameters
@IdRes int viewId

The id of the target view

float size

The horizontal scale factor.

setTextViewTextSizeDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewTextSizeDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setTextSize.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the text size.

setTextViewTextSizeDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewTextSizeDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setTextSize.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the text size.

setTextViewWidth

Added in 1.0.0
public static final void setTextViewWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int pixels
)

Equivalent to calling android.widget.TextView.setWidth.

Parameters
@IdRes int viewId

The id of the target view

@Px int pixels

The width of the TextView, in pixels.

setTextViewWidth

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setWidth.

Parameters
@IdRes int viewId

The id of the target view

float value

The width of the TextView.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setTextViewWidthDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.widget.TextView.setWidth.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the width of the TextView.

setTextViewWidthDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setTextViewWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.widget.TextView.setWidth.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the width of the TextView.

setViewAlpha

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewAlpha(@NonNull RemoteViews receiver, @IdRes int viewId, float alpha)

Equivalent to calling android.view.View.setAlpha.

Parameters
@IdRes int viewId

The id of the target view

float alpha

The opacity of the view.

setViewBackgroundColor

Added in 1.0.0
public static final void setViewBackgroundColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int color
)

Equivalent to calling android.view.View.setBackgroundColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorInt int color

The color of the background.

setViewBackgroundColor

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewBackgroundColor(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorInt int notNight,
    @ColorInt int night
)

Equivalent to calling android.view.View.setBackgroundColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorInt int notNight

The color of the background when night mode is not active.

@ColorInt int night

The color of the background when night mode is active.

setViewBackgroundColorAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewBackgroundColorAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setBackgroundColor.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

A color attribute for the background.

setViewBackgroundColorResource

Added in 1.0.0
public static final void setViewBackgroundColorResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.view.View.setBackgroundColor.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

A color resource for the background.

setViewBackgroundResource

Added in 1.0.0
public static final void setViewBackgroundResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DrawableRes int resId
)

Equivalent to calling android.view.View.setBackgroundResource.

Parameters
@IdRes int viewId

The id of the target view

@DrawableRes int resId

The identifier of the resource, or 0 to remove the background.

setViewBackgroundTintBlendMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewBackgroundTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.view.View.setBackgroundTintList.

Parameters
@IdRes int viewId

The id of the target view

BlendMode blendMode

The blending mode used to apply the tint, may be null to clear.

setViewBackgroundTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewBackgroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.view.View.setBackgroundTintList.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id of the tint to apply.

setViewBackgroundTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewBackgroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.view.View.setBackgroundTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList tint

The tint to apply, may be null to clear tint

setViewBackgroundTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewBackgroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.view.View.setBackgroundTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList notNightTint

The tint to apply when the UI is not in night mode.

ColorStateList nightTint

The tint to apply when the UI is in night mode.

setViewBackgroundTintListAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewBackgroundTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setBackgroundTintList.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute of the tint to apply.

setViewClipToOutline

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewClipToOutline(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean clipToOutline
)

Equivalent to calling android.view.View.setClipToOutline.

Parameters
@IdRes int viewId

The id of the target view

boolean clipToOutline

Whether the View's Outline should be used to clip the contents of the View.

setViewContentDescription

Added in 1.0.0
public static final void setViewContentDescription(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence contentDescription
)

Equivalent to calling android.view.View.setContentDescription.

Parameters
@IdRes int viewId

The id of the target view

CharSequence contentDescription

The content description.

setViewContentDescription

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewContentDescription(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.view.View.setContentDescription.

Parameters
@IdRes int viewId

The id of the target view

@StringRes int resId

The resource id for the content description.

setViewContentDescriptionAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewContentDescriptionAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setContentDescription.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id for the content description.

setViewElevationDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewElevationDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.view.View.setElevation.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the base elevation of this view.

setViewElevationDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewElevationDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.view.View.setElevation.

Parameters
@IdRes int viewId

The id of the target view

float value

The base elevation of this view.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setViewElevationDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewElevationDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setElevation.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the base elevation of this view.

setViewEnabled

Added in 1.0.0
@RequiresApi(value = 24)
public static final void setViewEnabled(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean enabled
)

Equivalent to calling android.view.View.setEnabled.

Note: setEnabled can only be called on TextView and its descendants from API 24, but is safe to call on other Views on older SDKs using RemoteViews.setBoolean directly.

Parameters
@IdRes int viewId

The id of the target view

boolean enabled

True if this view is enabled, false otherwise.

setViewFocusable

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewFocusable(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean focusable
)

Equivalent to calling android.view.View.setFocusable.

Parameters
@IdRes int viewId

The id of the target view

boolean focusable

If true, this view can receive the focus.

setViewFocusable

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewFocusable(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int focusable
)

Equivalent to calling android.view.View.setFocusable.

Parameters
@IdRes int viewId

The id of the target view

int focusable

One of android.view.View.NOT_FOCUSABLE, android.view.View.FOCUSABLE, or android.view.View.FOCUSABLE_AUTO.

setViewFocusableInTouchMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewFocusableInTouchMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean focusableInTouchMode
)

Equivalent to calling android.view.View.setFocusableInTouchMode.

Parameters
@IdRes int viewId

The id of the target view

boolean focusableInTouchMode

If true, this view can receive the focus while in touch mode.

setViewFocusedByDefault

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewFocusedByDefault(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    boolean isFocusedByDefault
)

Equivalent to calling android.view.View.setFocusedByDefault.

Parameters
@IdRes int viewId

The id of the target view

boolean isFocusedByDefault

true to set this view as the default-focus view, false otherwise.

setViewForegroundTintBlendMode

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewForegroundTintBlendMode(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    BlendMode blendMode
)

Equivalent to calling android.view.View.setForegroundTintBlendMode.

Parameters
@IdRes int viewId

The id of the target view

BlendMode blendMode

The blending mode used to apply the tint, may be null to clear.

setViewForegroundTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewForegroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @ColorRes int resId
)

Equivalent to calling android.view.View.setForegroundTintList.

Parameters
@IdRes int viewId

The id of the target view

@ColorRes int resId

The resource id of the tint to apply.

setViewForegroundTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewForegroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList tint
)

Equivalent to calling android.view.View.setForegroundTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList tint

The tint to apply, may be null to clear tint

setViewForegroundTintList

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewForegroundTintList(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    ColorStateList notNightTint,
    ColorStateList nightTint
)

Equivalent to calling android.view.View.setForegroundTintList.

Parameters
@IdRes int viewId

The id of the target view

ColorStateList notNightTint

The tint to apply when the UI is not in night mode.

ColorStateList nightTint

The tint to apply when the UI is in night mode.

setViewForegroundTintListAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewForegroundTintListAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setForegroundTintList.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute of the tint to apply.

setViewLayoutDirection

Added in 1.0.0
public static final void setViewLayoutDirection(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int layoutDirection
)

Equivalent to calling android.view.View.setLayoutDirection.

setViewMinimumHeight

Added in 1.0.0
@RequiresApi(value = 24)
public static final void setViewMinimumHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @Px int minHeight
)

Equivalent to calling android.view.View.setMinimumHeight.

Parameters
@IdRes int viewId

The id of the target view

@Px int minHeight

The minimum height the view will try to be, in pixels.

setViewMinimumHeight

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewMinimumHeight(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setMinimumHeight.

Parameters
@IdRes int viewId

The id of the target view

float value

The minimum height the view will try to be.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setViewMinimumHeightDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewMinimumHeightDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.view.View.setMinimumHeight.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the minimum height the view will try to be.

setViewMinimumHeightDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewMinimumHeightDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setMinimumHeight.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the minimum height the view will try to be.

setViewMinimumWidth

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewMinimumWidth(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setMinimumWidth.

Parameters
@IdRes int viewId

The id of the target view

float value

The minimum width the view will try to be.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setViewMinimumWidthDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewMinimumWidthDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.view.View.setMinimumWidth.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the minimum width the view will try to be.

setViewMinimumWidthDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewMinimumWidthDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setMinimumWidth.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the minimum width the view will try to be.

setViewPivotX

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewPivotX(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float pivotX
)

Equivalent to calling android.view.View.setPivotX.

Parameters
@IdRes int viewId

The id of the target view

float pivotX

The x location of the pivot point.

setViewPivotY

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewPivotY(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float pivotY
)

Equivalent to calling android.view.View.setPivotY.

Parameters
@IdRes int viewId

The id of the target view

float pivotY

The y location of the pivot point.

setViewRotation

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewRotation(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float rotation
)

Equivalent to calling android.view.View.setRotation.

Parameters
@IdRes int viewId

The id of the target view

float rotation

The degrees of rotation.

setViewRotationX

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewRotationX(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float rotationX
)

Equivalent to calling android.view.View.setRotationX.

Parameters
@IdRes int viewId

The id of the target view

float rotationX

The degrees of X rotation.

setViewRotationY

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewRotationY(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float rotationY
)

Equivalent to calling android.view.View.setRotationY.

Parameters
@IdRes int viewId

The id of the target view

float rotationY

The degrees of Y rotation.

setViewScaleX

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewScaleX(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float scaleX
)

Equivalent to calling android.view.View.setScaleX.

Parameters
@IdRes int viewId

The id of the target view

float scaleX

The scaling factor.

setViewScaleY

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewScaleY(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float scaleY
)

Equivalent to calling android.view.View.setScaleY.

Parameters
@IdRes int viewId

The id of the target view

float scaleY

The scaling factor.

setViewScrollIndicators

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewScrollIndicators(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int scrollIndicators
)

Equivalent to calling android.view.View.setScrollIndicators.

Parameters
@IdRes int viewId

The id of the target view

int scrollIndicators

A bitmask of indicators that should be enabled, or 0 to disable all indicators.

setViewStateDescription

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewStateDescription(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @StringRes int resId
)

Equivalent to calling android.view.View.setStateDescription.

Parameters
@IdRes int viewId

The id of the target view

@StringRes int resId

The resource id for the state description.

setViewStateDescription

Added in 1.0.0
@RequiresApi(value = 30)
public static final void setViewStateDescription(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    CharSequence stateDescription
)

Equivalent to calling android.view.View.setStateDescription.

Parameters
@IdRes int viewId

The id of the target view

CharSequence stateDescription

The state description.

setViewStateDescriptionAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewStateDescriptionAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setStateDescription.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The attribute id for the state description.

setViewStubInflatedId

Added in 1.0.0
public static final void setViewStubInflatedId(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    int inflatedId
)

Equivalent to calling android.view.ViewStub.setInflatedId.

Note that ViewStub may be used in RemoteViews layouts as of API 16.

Parameters
@IdRes int viewId

The id of the target view

int inflatedId

A positive integer used to identify the inflated view or android.view.View.NO_ID if the inflated view should keep its id.

setViewStubLayoutResource

Added in 1.0.0
public static final void setViewStubLayoutResource(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @LayoutRes int layoutResource
)

Equivalent to calling android.view.ViewStub.setLayoutResource.

Note that ViewStub may be used in RemoteViews layouts as of API 16.

Parameters
@IdRes int viewId

The id of the target view

@LayoutRes int layoutResource

A valid layout resource identifier (different from 0).

setViewTranslationXDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewTranslationXDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.view.View.setTranslationX.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the horizontal position of this view relative to its left position.

setViewTranslationXDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewTranslationXDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setTranslationX.

Parameters
@IdRes int viewId

The id of the target view

float value

The horizontal position of this view relative to its left position.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setViewTranslationXDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewTranslationXDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setTranslationX.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the horizontal position of this view relative to its left position.

setViewTranslationYDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewTranslationYDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.view.View.setTranslationY.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the vertical position of this view relative to its top position.

setViewTranslationYDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewTranslationYDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setTranslationY.

Parameters
@IdRes int viewId

The id of the target view

float value

The vertical position of this view relative to its top position.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setViewTranslationYDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewTranslationYDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setTranslationY.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the vertical position of this view relative to its top position.

setViewTranslationZDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewTranslationZDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @DimenRes int resId
)

Equivalent to calling android.view.View.setTranslationZ.

Parameters
@IdRes int viewId

The id of the target view

@DimenRes int resId

The id of a dimension resource for the depth of this view relative to its elevation.

setViewTranslationZDimen

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewTranslationZDimen(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    float value,
    int unit
)

Equivalent to calling android.widget.TextView.setTranslationZ.

Parameters
@IdRes int viewId

The id of the target view

float value

The depth of this view relative to its elevation.

int unit

The unit for value, e.g. android.util.TypedValue.COMPLEX_UNIT_DIP.

setViewTranslationZDimenAttr

Added in 1.0.0
@RequiresApi(value = 31)
public static final void setViewTranslationZDimenAttr(
    @NonNull RemoteViews receiver,
    @IdRes int viewId,
    @AttrRes int resId
)

Equivalent to calling android.view.View.setTranslationZ.

Parameters
@IdRes int viewId

The id of the target view

@AttrRes int resId

The id of a dimension attribute for the depth of this view relative to its elevation.