RemoteViewsCompat


object 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 functions

Unit

Equivalent to calling android.widget.Chronometer.setBase.

Unit

Equivalent to calling android.widget.Chronometer.setFormat.

Unit
@RequiresApi(value = 31)
RemoteViews.setCompoundButtonDrawable(
    viewId: @IdRes Int,
    resId: @DrawableRes Int
)

Equivalent to calling android.widget.CompoundButton.setButtonDrawable.

Unit
@RequiresApi(value = 31)
RemoteViews.setCompoundButtonIcon(viewId: @IdRes Int, icon: Icon?)

Equivalent to calling android.widget.CompoundButton.setButtonIcon.

Unit
@RequiresApi(value = 31)
RemoteViews.setCompoundButtonTintBlendMode(
    viewId: @IdRes Int,
    tintMode: BlendMode?
)

Equivalent to calling android.widget.CompoundButton.setButtonTintBlendMode.

Unit
@RequiresApi(value = 31)
RemoteViews.setCompoundButtonTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setCompoundButtonTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
)

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setCompoundButtonTintList(
    viewId: @IdRes Int,
    notNight: ColorStateList?,
    night: ColorStateList?
)

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setCompoundButtonTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

Unit
RemoteViews.setFrameLayoutForegroundGravity(
    viewId: @IdRes Int,
    foregroundGravity: Int
)

Equivalent to calling android.widget.FrameLayout.setForegroundGravity.

Unit
RemoteViews.setFrameLayoutMeasureAllChildren(
    viewId: @IdRes Int,
    measureAll: Boolean
)

Equivalent to calling android.widget.FrameLayout.setMeasureAllChildren.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridLayoutAlignmentMode(
    viewId: @IdRes Int,
    alignmentMode: Int
)

Equivalent to calling android.widget.GridLayout.setAlignmentMode.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridLayoutColumnCount(viewId: @IdRes Int, columnCount: Int)

Equivalent to calling android.widget.GridLayout.setColumnCount.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridLayoutRowCount(viewId: @IdRes Int, rowCount: Int)

Equivalent to calling android.widget.GridLayout.setRowCount.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridViewColumnWidth(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.GridView.setColumnWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridViewColumnWidthDimen(
    viewId: @IdRes Int,
    columnWidth: @DimenRes Int
)

Equivalent to calling android.widget.GridView.setColumnWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridViewColumnWidthDimenAttr(
    viewId: @IdRes Int,
    columnWidth: @AttrRes Int
)

Equivalent to calling android.widget.GridView.setColumnWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridViewGravity(viewId: @IdRes Int, gravity: Int)

Equivalent to calling android.widget.GridView.setGravity.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridViewHorizontalSpacing(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.GridView.setHorizontalSpacing.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridViewHorizontalSpacingDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.widget.GridView.setHorizontalSpacing.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridViewHorizontalSpacingDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.GridView.setHorizontalSpacing.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridViewNumColumns(viewId: @IdRes Int, numColumns: Int)

Equivalent to calling android.widget.GridView.setNumColumns.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridViewStretchMode(viewId: @IdRes Int, stretchMode: Int)

Equivalent to calling android.widget.GridView.setStretchMode.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridViewVerticalSpacing(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.GridView.setVerticalSpacing.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridViewVerticalSpacingDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.widget.GridView.setVerticalSpacing.

Unit
@RequiresApi(value = 31)
RemoteViews.setGridViewVerticalSpacingDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.GridView.setVerticalSpacing.

Unit
RemoteViews.setImageViewAdjustViewBounds(
    viewId: @IdRes Int,
    adjustViewBounds: Boolean
)

Equivalent to calling android.widget.ImageView.setAdjustViewBounds.

Unit
RemoteViews.setImageViewColorFilter(
    viewId: @IdRes Int,
    color: @ColorInt Int
)

Equivalent to calling android.widget.ImageView.setColorFilter.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewColorFilter(
    viewId: @IdRes Int,
    notNight: @ColorInt Int,
    night: @ColorInt Int
)

Equivalent to calling android.widget.ImageView.setColorFilter.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewColorFilterAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.ImageView.setColorFilter.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewColorFilterResource(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.widget.ImageView.setColorFilter.

Unit

Equivalent to calling android.widget.ImageView.setImageAlpha.

Unit

Equivalent to calling android.widget.ImageView.setImageLevel.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewImageTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
)

Equivalent to calling android.widget.ImageView.setImageTintBlendMode.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewImageTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.widget.ImageView.setImageTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewImageTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
)

Equivalent to calling android.widget.ImageView.setImageTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewImageTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
)

Equivalent to calling android.widget.ImageView.setImageTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewImageTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.ImageView.setImageTintList.

Unit
RemoteViews.setImageViewMaxHeight(viewId: @IdRes Int, maxHeight: @Px Int)

Equivalent to calling android.widget.ImageView.setMaxHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewMaxHeight(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.ImageView.setMaxHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewMaxHeightDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.widget.ImageView.setMaxHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewMaxHeightDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.ImageView.setMaxHeight.

Unit
RemoteViews.setImageViewMaxWidth(viewId: @IdRes Int, maxWidth: @Px Int)

Equivalent to calling android.widget.ImageView.setMaxWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewMaxWidth(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.ImageView.setMaxWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewMaxWidthDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.widget.ImageView.setMaxWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setImageViewMaxWidthDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.ImageView.setMaxWidth.

Unit
RemoteViews.setLinearLayoutBaselineAligned(
    viewId: @IdRes Int,
    baselineAligned: Boolean
)

Equivalent to calling android.widget.LinearLayout.setBaselineAligned.

Unit

Equivalent to calling android.widget.LinearLayout.setBaselineAlignedChildIndex.

Unit

Equivalent to calling android.widget.LinearLayout.setGravity.

Unit
RemoteViews.setLinearLayoutHorizontalGravity(
    viewId: @IdRes Int,
    horizontalGravity: Int
)

Equivalent to calling android.widget.LinearLayout.setHorizontalGravity.

Unit

Equivalent to calling android.widget.LinearLayout.setMeasureWithLargestChildEnabled.

Unit
RemoteViews.setLinearLayoutVerticalGravity(
    viewId: @IdRes Int,
    verticalGravity: Int
)

Equivalent to calling android.widget.LinearLayout.setVerticalGravity.

Unit

Equivalent to calling android.widget.LinearLayout.setWeightSum.

Unit
RemoteViews.setProgressBarIndeterminate(
    viewId: @IdRes Int,
    indeterminate: Boolean
)

Equivalent to calling android.widget.ProgressBar.setIndeterminate.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarIndeterminateTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintBlendMode.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarIndeterminateTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarIndeterminateTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarIndeterminateTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarIndeterminateTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

Unit

Equivalent to calling android.widget.ProgressBar.setMax.

Unit
@RequiresApi(value = 26)
RemoteViews.setProgressBarMin(viewId: @IdRes Int, min: Int)

Equivalent to calling android.widget.ProgressBar.setMin.

Unit

Equivalent to calling android.widget.ProgressBar.setProgress.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarProgressBackgroundTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintBlendMode.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarProgressBackgroundTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

Unit

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarProgressBackgroundTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarProgressBackgroundTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarProgressTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
)

Equivalent to calling android.widget.ProgressBar.setProgressTintBlendMode.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarProgressTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarProgressTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
)

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarProgressTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
)

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarProgressTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

Unit
RemoteViews.setProgressBarSecondaryProgress(
    viewId: @IdRes Int,
    secondaryProgress: Int
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgress.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarSecondaryProgressTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintBlendMode.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarSecondaryProgressTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

Unit

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarSecondaryProgressTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarSecondaryProgressTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarStateDescription(
    viewId: @IdRes Int,
    resId: @StringRes Int
)

Equivalent to calling android.widget.ProgressBar.setStateDescription.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarStateDescription(
    viewId: @IdRes Int,
    stateDescription: CharSequence?
)

Equivalent to calling android.widget.ProgressBar.setStateDescription.

Unit
@RequiresApi(value = 31)
RemoteViews.setProgressBarStateDescriptionAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.ProgressBar.setStateDescription.

Unit

Equivalent to calling android.widget.RelativeLayout.setGravity.

Unit
RemoteViews.setRelativeLayoutHorizontalGravity(
    viewId: @IdRes Int,
    horizontalGravity: Int
)

Equivalent to calling android.widget.RelativeLayout.setHorizontalGravity.

Unit
RemoteViews.setRelativeLayoutIgnoreGravity(
    viewId: @IdRes Int,
    childViewId: @IdRes Int
)

Equivalent to calling android.widget.RelativeLayout.setIgnoreGravity.

Unit
RemoteViews.setRelativeLayoutVerticalGravity(
    viewId: @IdRes Int,
    verticalGravity: Int
)

Equivalent to calling android.widget.RelativeLayout.setVerticalGravity.

Unit
setRemoteAdapter(
    context: Context,
    remoteViews: RemoteViews,
    appWidgetId: Int,
    viewId: @IdRes Int,
    items: RemoteViewsCompat.RemoteCollectionItems
)

Creates a simple Adapter for the widgetId and viewId specified.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchMinWidth(viewId: @IdRes Int, value: Float, unit: Int)

Equivalent to calling android.widget.Switch.setSwitchMinWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchMinWidthDimen(viewId: @IdRes Int, resId: @DimenRes Int)

Equivalent to calling android.widget.Switch.setSwitchMinWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchMinWidthDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.Switch.setSwitchMinWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchPadding(viewId: @IdRes Int, value: Float, unit: Int)

Equivalent to calling android.widget.Switch.setSwitchPadding.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchPaddingDimen(viewId: @IdRes Int, resId: @DimenRes Int)

Equivalent to calling android.widget.Switch.setSwitchPadding.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchPaddingDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.Switch.setSwitchPadding.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchShowText(viewId: @IdRes Int, showText: Boolean)

Equivalent to calling android.widget.Switch.setShowText.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchSplitTrack(viewId: @IdRes Int, splitTrack: Boolean)

Equivalent to calling android.widget.Switch.setSplitTrack.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTextOff(viewId: @IdRes Int, resId: @StringRes Int)

Equivalent to calling android.widget.Switch.setTextOff.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTextOff(viewId: @IdRes Int, textOff: CharSequence?)

Equivalent to calling android.widget.Switch.setTextOff.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTextOffAttr(viewId: @IdRes Int, resId: @AttrRes Int)

Equivalent to calling android.widget.Switch.setTextOff.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTextOn(viewId: @IdRes Int, resId: @StringRes Int)

Equivalent to calling android.widget.Switch.setTextOn.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTextOn(viewId: @IdRes Int, textOn: CharSequence?)

Equivalent to calling android.widget.Switch.setTextOn.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTextOnAttr(viewId: @IdRes Int, resId: @AttrRes Int)

Equivalent to calling android.widget.Switch.setTextOn.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchThumbIcon(viewId: @IdRes Int, icon: Icon?)

Equivalent to calling android.widget.Switch.setThumbIcon.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchThumbIcon(
    viewId: @IdRes Int,
    notNight: Icon?,
    night: Icon?
)

Equivalent to calling android.widget.Switch.setThumbIcon.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchThumbResource(
    viewId: @IdRes Int,
    resId: @DrawableRes Int
)

Equivalent to calling android.widget.Switch.setThumbResource.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchThumbTextPadding(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.Switch.setThumbTextPadding.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchThumbTextPaddingDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.widget.Switch.setThumbTextPadding.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchThumbTextPaddingDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.Switch.setThumbTextPadding.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchThumbTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
)

Equivalent to calling android.widget.Switch.setThumbTintBlendMode.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchThumbTintList(viewId: @IdRes Int, resId: @ColorRes Int)

Equivalent to calling android.widget.Switch.setThumbTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchThumbTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
)

Equivalent to calling android.widget.Switch.setThumbTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchThumbTintList(
    viewId: @IdRes Int,
    notNight: ColorStateList?,
    night: ColorStateList?
)

Equivalent to calling android.widget.Switch.setThumbTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchThumbTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.Switch.setThumbTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTrackIcon(viewId: @IdRes Int, icon: Icon?)

Equivalent to calling android.widget.Switch.setTrackIcon.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTrackIcon(
    viewId: @IdRes Int,
    notNight: Icon?,
    night: Icon?
)

Equivalent to calling android.widget.Switch.setTrackIcon.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTrackResource(
    viewId: @IdRes Int,
    resId: @DrawableRes Int
)

Equivalent to calling android.widget.Switch.setTrackResource.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTrackTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
)

Equivalent to calling android.widget.Switch.setTrackTintBlendMode.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTrackTintList(viewId: @IdRes Int, resId: @ColorRes Int)

Equivalent to calling android.widget.Switch.setTrackTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTrackTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
)

Equivalent to calling android.widget.Switch.setTrackTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTrackTintList(
    viewId: @IdRes Int,
    notNight: ColorStateList?,
    night: ColorStateList?
)

Equivalent to calling android.widget.Switch.setTrackTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setSwitchTrackTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.Switch.setTrackTintList.

Unit
RemoteViews.setTextClockFormat12Hour(
    viewId: @IdRes Int,
    format: CharSequence?
)

Equivalent to calling android.widget.TextClock.setFormat12Hour.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextClockFormat12Hour(
    viewId: @IdRes Int,
    resId: @StringRes Int
)

Equivalent to calling android.widget.TextClock.setFormat12Hour.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextClockFormat12HourAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextClock.setFormat12Hour.

Unit
RemoteViews.setTextClockFormat24Hour(
    viewId: @IdRes Int,
    format: CharSequence?
)

Equivalent to calling android.widget.TextClock.setFormat24Hour.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextClockFormat24Hour(
    viewId: @IdRes Int,
    resId: @StringRes Int
)

Equivalent to calling android.widget.TextClock.setFormat24Hour.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextClockFormat24HourAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextClock.setFormat24Hour.

Unit

Equivalent to calling android.widget.TextClock.setTimeZone.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewAllCaps(viewId: @IdRes Int, allCaps: Boolean)

Equivalent to calling android.widget.TextView.setAllCaps.

Unit

Equivalent to calling android.widget.TextView.setAutoLinkMask.

Unit
RemoteViews.setTextViewCompoundDrawablePadding(
    viewId: @IdRes Int,
    pad: @Px Int
)

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewCompoundDrawablePadding(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewCompoundDrawablePaddingDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewCompoundDrawablePaddingDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

Unit

Equivalent to calling android.widget.TextView.setEms.

Unit

Equivalent to calling android.widget.TextView.setError.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewError(viewId: @IdRes Int, resId: @StringRes Int)

Equivalent to calling android.widget.TextView.setError.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewErrorAttr(viewId: @IdRes Int, resId: @AttrRes Int)

Equivalent to calling android.widget.TextView.setError.

Unit
@RequiresApi(value = 21)
RemoteViews.setTextViewFontFeatureSettings(
    viewId: @IdRes Int,
    fontFeatureSettings: String
)

Equivalent to calling android.widget.TextView.setFontFeatureSettings.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewGravity(viewId: @IdRes Int, gravity: Int)

Equivalent to calling android.widget.TextView.setGravity.

Unit
RemoteViews.setTextViewHeight(viewId: @IdRes Int, pixels: @Px Int)

Equivalent to calling android.widget.TextView.setHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewHeight(viewId: @IdRes Int, value: Float, unit: Int)

Equivalent to calling android.widget.TextView.setHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewHeightDimen(viewId: @IdRes Int, resId: @DimenRes Int)

Equivalent to calling android.widget.TextView.setHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewHeightDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setHeight.

Unit
RemoteViews.setTextViewHighlightColor(
    viewId: @IdRes Int,
    color: @ColorInt Int
)

Equivalent to calling android.widget.TextView.setHighlightColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewHighlightColor(
    viewId: @IdRes Int,
    notNight: @ColorInt Int,
    night: @ColorInt Int
)

Equivalent to calling android.widget.TextView.setHighlightColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewHighlightColorAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setHighlightColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewHighlightColorResource(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.widget.TextView.setHighlightColor.

Unit

Equivalent to calling android.widget.TextView.setHint.

Unit

Equivalent to calling android.widget.TextView.setHint.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewHintAttr(viewId: @IdRes Int, resId: @AttrRes Int)

Equivalent to calling android.widget.TextView.setHint.

Unit
RemoteViews.setTextViewHintTextColor(
    viewId: @IdRes Int,
    color: @ColorInt Int
)

Equivalent to calling android.widget.TextView.setHintTextColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewHintTextColor(
    viewId: @IdRes Int,
    notNight: @ColorInt Int,
    night: @ColorInt Int
)

Equivalent to calling android.widget.TextView.setHintTextColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewHintTextColorAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setHintTextColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewHintTextColorResource(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.widget.TextView.setHintTextColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewJustificationMode(
    viewId: @IdRes Int,
    justificationMode: Int
)

Equivalent to calling android.widget.TextView.setJustificationMode.

Unit
@RequiresApi(value = 21)
RemoteViews.setTextViewLetterSpacing(
    viewId: @IdRes Int,
    letterSpacing: Float
)

Equivalent to calling android.widget.TextView.setLetterSpacing.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewLineHeight(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.TextView.setLineHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewLineHeightDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.widget.TextView.setLineHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewLineHeightDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setLineHeight.

Unit

Equivalent to calling android.widget.TextView.setLines.

Unit
RemoteViews.setTextViewLinkTextColor(
    viewId: @IdRes Int,
    color: @ColorInt Int
)

Equivalent to calling android.widget.TextView.setLinkTextColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewLinkTextColor(
    viewId: @IdRes Int,
    notNight: @ColorInt Int,
    night: @ColorInt Int
)

Equivalent to calling android.widget.TextView.setLinkTextColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewLinkTextColorAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setLinkTextColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewLinkTextColorResource(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.widget.TextView.setLinkTextColor.

Unit
RemoteViews.setTextViewLinksClickable(
    viewId: @IdRes Int,
    whether: Boolean
)

Equivalent to calling android.widget.TextView.setLinksClickable.

Unit
RemoteViews.setTextViewMaxEms(viewId: @IdRes Int, maxems: Int)

Equivalent to calling android.widget.TextView.setMaxEms.

Unit
RemoteViews.setTextViewMaxHeight(viewId: @IdRes Int, maxHeight: @Px Int)

Equivalent to calling android.widget.TextView.setMaxHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewMaxHeight(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.TextView.setMaxHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewMaxHeightDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.widget.TextView.setMaxHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewMaxHeightDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setMaxHeight.

Unit
RemoteViews.setTextViewMaxLines(viewId: @IdRes Int, maxLines: Int)

Equivalent to calling android.widget.TextView.setMaxLines.

Unit
RemoteViews.setTextViewMaxWidth(viewId: @IdRes Int, maxWidth: @Px Int)

Equivalent to calling android.widget.TextView.setMaxWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewMaxWidth(viewId: @IdRes Int, value: Float, unit: Int)

Equivalent to calling android.widget.TextView.setMaxWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewMaxWidthDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.widget.TextView.setMaxWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewMaxWidthDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setMaxWidth.

Unit
RemoteViews.setTextViewMinEms(viewId: @IdRes Int, minems: Int)

Equivalent to calling android.widget.TextView.setMinEms.

Unit
RemoteViews.setTextViewMinHeight(viewId: @IdRes Int, minHeight: @Px Int)

Equivalent to calling android.widget.TextView.setMinHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewMinHeight(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.TextView.setMinHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewMinHeightDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.widget.TextView.setMinHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewMinHeightDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setMinHeight.

Unit
RemoteViews.setTextViewMinLines(viewId: @IdRes Int, minLines: Int)

Equivalent to calling android.widget.TextView.setMinLines.

Unit
RemoteViews.setTextViewMinWidth(viewId: @IdRes Int, minWidth: @Px Int)

Equivalent to calling android.widget.TextView.setMinWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewMinWidth(viewId: @IdRes Int, value: Float, unit: Int)

Equivalent to calling android.widget.TextView.setMinWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewMinWidthDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.widget.TextView.setMinWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewMinWidthDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setMinWidth.

Unit

Equivalent to calling android.widget.TextView.setPaintFlags.

Unit
RemoteViews.setTextViewSelectAllOnFocus(
    viewId: @IdRes Int,
    selectAllOnFocus: Boolean
)

Equivalent to calling android.widget.TextView.setSelectAllOnFocus.

Unit

Equivalent to calling android.widget.TextView.setSingleLine.

Unit

Equivalent to calling android.widget.TextView.setText.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewTextAttr(viewId: @IdRes Int, resId: @AttrRes Int)

Equivalent to calling android.widget.TextView.setText.

Unit

Equivalent to calling android.widget.TextView.setTextColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewTextColor(
    viewId: @IdRes Int,
    colors: ColorStateList
)

Equivalent to calling android.widget.TextView.setTextColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewTextColor(
    viewId: @IdRes Int,
    notNight: ColorStateList,
    night: ColorStateList
)

Equivalent to calling android.widget.TextView.setTextColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewTextColor(
    viewId: @IdRes Int,
    notNight: @ColorInt Int,
    night: @ColorInt Int
)

Equivalent to calling android.widget.TextView.setTextColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewTextColorAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setTextColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewTextColorResource(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.widget.TextView.setTextColor.

Unit

Equivalent to calling android.widget.TextView.setTextScaleX.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewTextSizeDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.widget.TextView.setTextSize.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewTextSizeDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setTextSize.

Unit
RemoteViews.setTextViewWidth(viewId: @IdRes Int, pixels: @Px Int)

Equivalent to calling android.widget.TextView.setWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewWidth(viewId: @IdRes Int, value: Float, unit: Int)

Equivalent to calling android.widget.TextView.setWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewWidthDimen(viewId: @IdRes Int, resId: @DimenRes Int)

Equivalent to calling android.widget.TextView.setWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setTextViewWidthDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.widget.TextView.setWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewAlpha(viewId: @IdRes Int, alpha: Float)

Equivalent to calling android.view.View.setAlpha.

Unit

Equivalent to calling android.view.View.setBackgroundColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewBackgroundColor(
    viewId: @IdRes Int,
    notNight: @ColorInt Int,
    night: @ColorInt Int
)

Equivalent to calling android.view.View.setBackgroundColor.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewBackgroundColorAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.view.View.setBackgroundColor.

Unit
RemoteViews.setViewBackgroundColorResource(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.view.View.setBackgroundColor.

Unit
RemoteViews.setViewBackgroundResource(
    viewId: @IdRes Int,
    resId: @DrawableRes Int
)

Equivalent to calling android.view.View.setBackgroundResource.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewBackgroundTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
)

Equivalent to calling android.view.View.setBackgroundTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewBackgroundTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.view.View.setBackgroundTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewBackgroundTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
)

Equivalent to calling android.view.View.setBackgroundTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewBackgroundTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
)

Equivalent to calling android.view.View.setBackgroundTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewBackgroundTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.view.View.setBackgroundTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewClipToOutline(
    viewId: @IdRes Int,
    clipToOutline: Boolean
)

Equivalent to calling android.view.View.setClipToOutline.

Unit
RemoteViews.setViewContentDescription(
    viewId: @IdRes Int,
    contentDescription: CharSequence?
)

Equivalent to calling android.view.View.setContentDescription.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewContentDescription(
    viewId: @IdRes Int,
    resId: @StringRes Int
)

Equivalent to calling android.view.View.setContentDescription.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewContentDescriptionAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.view.View.setContentDescription.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewElevationDimen(viewId: @IdRes Int, resId: @DimenRes Int)

Equivalent to calling android.view.View.setElevation.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewElevationDimen(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.view.View.setElevation.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewElevationDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.view.View.setElevation.

Unit
@RequiresApi(value = 24)
RemoteViews.setViewEnabled(viewId: @IdRes Int, enabled: Boolean)

Equivalent to calling android.view.View.setEnabled.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewFocusable(viewId: @IdRes Int, focusable: Boolean)

Equivalent to calling android.view.View.setFocusable.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewFocusable(viewId: @IdRes Int, focusable: Int)

Equivalent to calling android.view.View.setFocusable.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewFocusableInTouchMode(
    viewId: @IdRes Int,
    focusableInTouchMode: Boolean
)

Equivalent to calling android.view.View.setFocusableInTouchMode.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewFocusedByDefault(
    viewId: @IdRes Int,
    isFocusedByDefault: Boolean
)

Equivalent to calling android.view.View.setFocusedByDefault.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewForegroundTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
)

Equivalent to calling android.view.View.setForegroundTintBlendMode.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewForegroundTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
)

Equivalent to calling android.view.View.setForegroundTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewForegroundTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
)

Equivalent to calling android.view.View.setForegroundTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewForegroundTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
)

Equivalent to calling android.view.View.setForegroundTintList.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewForegroundTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.view.View.setForegroundTintList.

Unit
RemoteViews.setViewLayoutDirection(
    viewId: @IdRes Int,
    layoutDirection: Int
)

Equivalent to calling android.view.View.setLayoutDirection.

Unit
@RequiresApi(value = 24)
RemoteViews.setViewMinimumHeight(viewId: @IdRes Int, minHeight: @Px Int)

Equivalent to calling android.view.View.setMinimumHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewMinimumHeight(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.TextView.setMinimumHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewMinimumHeightDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.view.View.setMinimumHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewMinimumHeightDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.view.View.setMinimumHeight.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewMinimumWidth(viewId: @IdRes Int, value: Float, unit: Int)

Equivalent to calling android.widget.TextView.setMinimumWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewMinimumWidthDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.view.View.setMinimumWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewMinimumWidthDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.view.View.setMinimumWidth.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewPivotX(viewId: @IdRes Int, pivotX: Float)

Equivalent to calling android.view.View.setPivotX.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewPivotY(viewId: @IdRes Int, pivotY: Float)

Equivalent to calling android.view.View.setPivotY.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewRotation(viewId: @IdRes Int, rotation: Float)

Equivalent to calling android.view.View.setRotation.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewRotationX(viewId: @IdRes Int, rotationX: Float)

Equivalent to calling android.view.View.setRotationX.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewRotationY(viewId: @IdRes Int, rotationY: Float)

Equivalent to calling android.view.View.setRotationY.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewScaleX(viewId: @IdRes Int, scaleX: Float)

Equivalent to calling android.view.View.setScaleX.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewScaleY(viewId: @IdRes Int, scaleY: Float)

Equivalent to calling android.view.View.setScaleY.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewScrollIndicators(
    viewId: @IdRes Int,
    scrollIndicators: Int
)

Equivalent to calling android.view.View.setScrollIndicators.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewStateDescription(
    viewId: @IdRes Int,
    resId: @StringRes Int
)

Equivalent to calling android.view.View.setStateDescription.

Unit
@RequiresApi(value = 30)
RemoteViews.setViewStateDescription(
    viewId: @IdRes Int,
    stateDescription: CharSequence?
)

Equivalent to calling android.view.View.setStateDescription.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewStateDescriptionAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.view.View.setStateDescription.

Unit
RemoteViews.setViewStubInflatedId(viewId: @IdRes Int, inflatedId: Int)

Equivalent to calling android.view.ViewStub.setInflatedId.

Unit
RemoteViews.setViewStubLayoutResource(
    viewId: @IdRes Int,
    layoutResource: @LayoutRes Int
)

Equivalent to calling android.view.ViewStub.setLayoutResource.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewTranslationXDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.view.View.setTranslationX.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewTranslationXDimen(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.TextView.setTranslationX.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewTranslationXDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.view.View.setTranslationX.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewTranslationYDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.view.View.setTranslationY.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewTranslationYDimen(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.TextView.setTranslationY.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewTranslationYDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.view.View.setTranslationY.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewTranslationZDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
)

Equivalent to calling android.view.View.setTranslationZ.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewTranslationZDimen(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
)

Equivalent to calling android.widget.TextView.setTranslationZ.

Unit
@RequiresApi(value = 31)
RemoteViews.setViewTranslationZDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
)

Equivalent to calling android.view.View.setTranslationZ.

Public functions

setChronometerBase

fun RemoteViews.setChronometerBase(viewId: @IdRes Int, base: Long): Unit

Equivalent to calling android.widget.Chronometer.setBase.

Parameters
viewId: @IdRes Int

The id of the target view

base: Long

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

setChronometerFormat

fun RemoteViews.setChronometerFormat(viewId: @IdRes Int, format: String?): Unit

Equivalent to calling android.widget.Chronometer.setFormat.

Parameters
viewId: @IdRes Int

The id of the target view

format: String?

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

setCompoundButtonDrawable

@RequiresApi(value = 31)
fun RemoteViews.setCompoundButtonDrawable(
    viewId: @IdRes Int,
    resId: @DrawableRes Int
): Unit

Equivalent to calling android.widget.CompoundButton.setButtonDrawable.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DrawableRes Int

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

setCompoundButtonIcon

@RequiresApi(value = 31)
fun RemoteViews.setCompoundButtonIcon(viewId: @IdRes Int, icon: Icon?): Unit

Equivalent to calling android.widget.CompoundButton.setButtonIcon.

Parameters
viewId: @IdRes Int

The id of the target view

icon: Icon?

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

setCompoundButtonTintBlendMode

@RequiresApi(value = 31)
fun RemoteViews.setCompoundButtonTintBlendMode(
    viewId: @IdRes Int,
    tintMode: BlendMode?
): Unit

Equivalent to calling android.widget.CompoundButton.setButtonTintBlendMode.

Parameters
viewId: @IdRes Int

The id of the target view

tintMode: BlendMode?

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

setCompoundButtonTintList

@RequiresApi(value = 31)
fun RemoteViews.setCompoundButtonTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

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

setCompoundButtonTintList

@RequiresApi(value = 31)
fun RemoteViews.setCompoundButtonTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
): Unit

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

Parameters
viewId: @IdRes Int

The id of the target view

tint: ColorStateList?

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

setCompoundButtonTintList

@RequiresApi(value = 31)
fun RemoteViews.setCompoundButtonTintList(
    viewId: @IdRes Int,
    notNight: ColorStateList?,
    night: ColorStateList?
): Unit

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

Parameters
viewId: @IdRes Int

The id of the target view

notNight: ColorStateList?

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

night: ColorStateList?

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

setCompoundButtonTintListAttr

@RequiresApi(value = 31)
fun RemoteViews.setCompoundButtonTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.CompoundButton.setButtonTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setFrameLayoutForegroundGravity

fun RemoteViews.setFrameLayoutForegroundGravity(
    viewId: @IdRes Int,
    foregroundGravity: Int
): Unit

Equivalent to calling android.widget.FrameLayout.setForegroundGravity.

Parameters
viewId: @IdRes Int

The id of the target view

foregroundGravity: Int

See android.view.Gravity.

setFrameLayoutMeasureAllChildren

fun RemoteViews.setFrameLayoutMeasureAllChildren(
    viewId: @IdRes Int,
    measureAll: Boolean
): Unit

Equivalent to calling android.widget.FrameLayout.setMeasureAllChildren.

Parameters
viewId: @IdRes Int

The id of the target view

measureAll: Boolean

True to consider children marked GONE, false otherwise.

setGridLayoutAlignmentMode

@RequiresApi(value = 31)
fun RemoteViews.setGridLayoutAlignmentMode(
    viewId: @IdRes Int,
    alignmentMode: Int
): Unit

Equivalent to calling android.widget.GridLayout.setAlignmentMode.

Parameters
viewId: @IdRes Int

The id of the target view

alignmentMode: Int

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

setGridLayoutColumnCount

@RequiresApi(value = 31)
fun RemoteViews.setGridLayoutColumnCount(viewId: @IdRes Int, columnCount: Int): Unit

Equivalent to calling android.widget.GridLayout.setColumnCount.

Parameters
viewId: @IdRes Int

The id of the target view

columnCount: Int

The number of columns.

setGridLayoutRowCount

@RequiresApi(value = 31)
fun RemoteViews.setGridLayoutRowCount(viewId: @IdRes Int, rowCount: Int): Unit

Equivalent to calling android.widget.GridLayout.setRowCount.

Parameters
viewId: @IdRes Int

The id of the target view

rowCount: Int

The number of rows.

setGridViewColumnWidth

@RequiresApi(value = 31)
fun RemoteViews.setGridViewColumnWidth(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.GridView.setColumnWidth.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The column width.

unit: Int

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

setGridViewColumnWidthDimen

@RequiresApi(value = 31)
fun RemoteViews.setGridViewColumnWidthDimen(
    viewId: @IdRes Int,
    columnWidth: @DimenRes Int
): Unit

Equivalent to calling android.widget.GridView.setColumnWidth.

Parameters
viewId: @IdRes Int

The id of the target view

columnWidth: @DimenRes Int

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

setGridViewColumnWidthDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setGridViewColumnWidthDimenAttr(
    viewId: @IdRes Int,
    columnWidth: @AttrRes Int
): Unit

Equivalent to calling android.widget.GridView.setColumnWidth.

Parameters
viewId: @IdRes Int

The id of the target view

columnWidth: @AttrRes Int

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

setGridViewGravity

@RequiresApi(value = 31)
fun RemoteViews.setGridViewGravity(viewId: @IdRes Int, gravity: Int): Unit

Equivalent to calling android.widget.GridView.setGravity.

Parameters
viewId: @IdRes Int

The id of the target view

gravity: Int

The gravity to apply to this grid's children.

setGridViewHorizontalSpacing

@RequiresApi(value = 31)
fun RemoteViews.setGridViewHorizontalSpacing(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.GridView.setHorizontalSpacing.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The amount of horizontal space between items.

unit: Int

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

setGridViewHorizontalSpacingDimen

@RequiresApi(value = 31)
fun RemoteViews.setGridViewHorizontalSpacingDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.widget.GridView.setHorizontalSpacing.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setGridViewHorizontalSpacingDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setGridViewHorizontalSpacingDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.GridView.setHorizontalSpacing.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setGridViewNumColumns

@RequiresApi(value = 31)
fun RemoteViews.setGridViewNumColumns(viewId: @IdRes Int, numColumns: Int): Unit

Equivalent to calling android.widget.GridView.setNumColumns.

Parameters
viewId: @IdRes Int

The id of the target view

numColumns: Int

The desired number of columns.

setGridViewVerticalSpacing

@RequiresApi(value = 31)
fun RemoteViews.setGridViewVerticalSpacing(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.GridView.setVerticalSpacing.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The amount of vertical space between items.

unit: Int

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

setGridViewVerticalSpacingDimen

@RequiresApi(value = 31)
fun RemoteViews.setGridViewVerticalSpacingDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.widget.GridView.setVerticalSpacing.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setGridViewVerticalSpacingDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setGridViewVerticalSpacingDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.GridView.setVerticalSpacing.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setImageViewAdjustViewBounds

fun RemoteViews.setImageViewAdjustViewBounds(
    viewId: @IdRes Int,
    adjustViewBounds: Boolean
): Unit

Equivalent to calling android.widget.ImageView.setAdjustViewBounds.

Parameters
viewId: @IdRes Int

The id of the target view

adjustViewBounds: Boolean

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

setImageViewColorFilter

fun RemoteViews.setImageViewColorFilter(
    viewId: @IdRes Int,
    color: @ColorInt Int
): Unit

Equivalent to calling android.widget.ImageView.setColorFilter.

Parameters
viewId: @IdRes Int

The id of the target view

color: @ColorInt Int

Color tint to apply.

setImageViewColorFilter

@RequiresApi(value = 31)
fun RemoteViews.setImageViewColorFilter(
    viewId: @IdRes Int,
    notNight: @ColorInt Int,
    night: @ColorInt Int
): Unit

Equivalent to calling android.widget.ImageView.setColorFilter.

Parameters
viewId: @IdRes Int

The id of the target view

notNight: @ColorInt Int

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

night: @ColorInt Int

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

setImageViewColorFilterAttr

@RequiresApi(value = 31)
fun RemoteViews.setImageViewColorFilterAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.ImageView.setColorFilter.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

The attribute id of the color tint to apply.

setImageViewColorFilterResource

@RequiresApi(value = 31)
fun RemoteViews.setImageViewColorFilterResource(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.widget.ImageView.setColorFilter.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

The resource id of the color tint to apply.

setImageViewImageAlpha

fun RemoteViews.setImageViewImageAlpha(viewId: @IdRes Int, alpha: Int): Unit

Equivalent to calling android.widget.ImageView.setImageAlpha.

Parameters
viewId: @IdRes Int

The id of the target view

alpha: Int

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

setImageViewImageLevel

fun RemoteViews.setImageViewImageLevel(viewId: @IdRes Int, level: Int): Unit

Equivalent to calling android.widget.ImageView.setImageLevel.

Parameters
viewId: @IdRes Int

The id of the target view

level: Int

The new level for the image.

setImageViewImageTintBlendMode

@RequiresApi(value = 31)
fun RemoteViews.setImageViewImageTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
): Unit

Equivalent to calling android.widget.ImageView.setImageTintBlendMode.

Parameters
viewId: @IdRes Int

The id of the target view

blendMode: BlendMode?

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

setImageViewImageTintList

@RequiresApi(value = 31)
fun RemoteViews.setImageViewImageTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.widget.ImageView.setImageTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

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

setImageViewImageTintList

@RequiresApi(value = 31)
fun RemoteViews.setImageViewImageTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
): Unit

Equivalent to calling android.widget.ImageView.setImageTintList.

Parameters
viewId: @IdRes Int

The id of the target view

tint: ColorStateList?

The tint to apply, may be null to clear tint

setImageViewImageTintList

@RequiresApi(value = 31)
fun RemoteViews.setImageViewImageTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
): Unit

Equivalent to calling android.widget.ImageView.setImageTintList.

Parameters
viewId: @IdRes Int

The id of the target view

notNightTint: ColorStateList?

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

nightTint: ColorStateList?

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

setImageViewImageTintListAttr

@RequiresApi(value = 31)
fun RemoteViews.setImageViewImageTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.ImageView.setImageTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setImageViewMaxHeight

fun RemoteViews.setImageViewMaxHeight(viewId: @IdRes Int, maxHeight: @Px Int): Unit

Equivalent to calling android.widget.ImageView.setMaxHeight.

Parameters
viewId: @IdRes Int

The id of the target view

maxHeight: @Px Int

The maximum height of the view, in pixels.

setImageViewMaxHeight

@RequiresApi(value = 31)
fun RemoteViews.setImageViewMaxHeight(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.ImageView.setMaxHeight.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The maximum height of the view.

unit: Int

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

setImageViewMaxHeightDimen

@RequiresApi(value = 31)
fun RemoteViews.setImageViewMaxHeightDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.widget.ImageView.setMaxHeight.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

A dimension resource identifier for maximum height of the view.

setImageViewMaxHeightDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setImageViewMaxHeightDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.ImageView.setMaxHeight.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

A dimension resource attribute for maximum height of the view.

setImageViewMaxWidth

fun RemoteViews.setImageViewMaxWidth(viewId: @IdRes Int, maxWidth: @Px Int): Unit

Equivalent to calling android.widget.ImageView.setMaxWidth.

Parameters
viewId: @IdRes Int

The id of the target view

maxWidth: @Px Int

The maximum width of the view, in pixels.

setImageViewMaxWidth

@RequiresApi(value = 31)
fun RemoteViews.setImageViewMaxWidth(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.ImageView.setMaxWidth.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The maximum width of the view.

unit: Int

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

setImageViewMaxWidthDimen

@RequiresApi(value = 31)
fun RemoteViews.setImageViewMaxWidthDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.widget.ImageView.setMaxWidth.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

A dimension resource identifier for maximum width of the view.

setImageViewMaxWidthDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setImageViewMaxWidthDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.ImageView.setMaxWidth.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

A dimension resource attribute for maximum width of the view.

setLinearLayoutBaselineAligned

fun RemoteViews.setLinearLayoutBaselineAligned(
    viewId: @IdRes Int,
    baselineAligned: Boolean
): Unit

Equivalent to calling android.widget.LinearLayout.setBaselineAligned.

Parameters
viewId: @IdRes Int

The id of the target view

baselineAligned: Boolean

True to align widgets on their baseline, false otherwise.

setLinearLayoutBaselineAlignedChildIndex

fun RemoteViews.setLinearLayoutBaselineAlignedChildIndex(
    viewId: @IdRes Int,
    i: Int
): Unit

Equivalent to calling android.widget.LinearLayout.setBaselineAlignedChildIndex.

Parameters
viewId: @IdRes Int

The id of the target view

i: Int

True to align widgets on their baseline, false otherwise.

setLinearLayoutGravity

fun RemoteViews.setLinearLayoutGravity(viewId: @IdRes Int, gravity: Int): Unit

Equivalent to calling android.widget.LinearLayout.setGravity.

Parameters
viewId: @IdRes Int

The id of the target view

gravity: Int

See android.view.Gravity.

setLinearLayoutHorizontalGravity

fun RemoteViews.setLinearLayoutHorizontalGravity(
    viewId: @IdRes Int,
    horizontalGravity: Int
): Unit

Equivalent to calling android.widget.LinearLayout.setHorizontalGravity.

Parameters
viewId: @IdRes Int

The id of the target view

setLinearLayoutMeasureWithLargestChildEnabled

fun RemoteViews.setLinearLayoutMeasureWithLargestChildEnabled(
    viewId: @IdRes Int,
    enabled: Boolean
): Unit

Equivalent to calling android.widget.LinearLayout.setMeasureWithLargestChildEnabled.

Parameters
viewId: @IdRes Int

The id of the target view

enabled: Boolean

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

setLinearLayoutVerticalGravity

fun RemoteViews.setLinearLayoutVerticalGravity(
    viewId: @IdRes Int,
    verticalGravity: Int
): Unit

Equivalent to calling android.widget.LinearLayout.setVerticalGravity.

Parameters
viewId: @IdRes Int

The id of the target view

setLinearLayoutWeightSum

fun RemoteViews.setLinearLayoutWeightSum(viewId: @IdRes Int, weightSum: Float): Unit

Equivalent to calling android.widget.LinearLayout.setWeightSum.

Parameters
viewId: @IdRes Int

The id of the target view

weightSum: Float

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

fun RemoteViews.setProgressBarIndeterminate(
    viewId: @IdRes Int,
    indeterminate: Boolean
): Unit

Equivalent to calling android.widget.ProgressBar.setIndeterminate.

Parameters
viewId: @IdRes Int

The id of the target view

indeterminate: Boolean

True to enable the indeterminate mode.

setProgressBarIndeterminateTintBlendMode

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarIndeterminateTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
): Unit

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintBlendMode.

Parameters
viewId: @IdRes Int

The id of the target view

blendMode: BlendMode?

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

setProgressBarIndeterminateTintList

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarIndeterminateTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

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

setProgressBarIndeterminateTintList

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarIndeterminateTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
): Unit

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

Parameters
viewId: @IdRes Int

The id of the target view

tint: ColorStateList?

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

setProgressBarIndeterminateTintList

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarIndeterminateTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
): Unit

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

Parameters
viewId: @IdRes Int

The id of the target view

notNightTint: ColorStateList?

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

nightTint: ColorStateList?

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

setProgressBarIndeterminateTintListAttr

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarIndeterminateTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.ProgressBar.setIndeterminateTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setProgressBarMax

fun RemoteViews.setProgressBarMax(viewId: @IdRes Int, max: Int): Unit

Equivalent to calling android.widget.ProgressBar.setMax.

Parameters
viewId: @IdRes Int

The id of the target view

max: Int

The upper range of this progress bar.

setProgressBarMin

@RequiresApi(value = 26)
fun RemoteViews.setProgressBarMin(viewId: @IdRes Int, min: Int): Unit

Equivalent to calling android.widget.ProgressBar.setMin.

Parameters
viewId: @IdRes Int

The id of the target view

min: Int

The lower range of this progress bar.

setProgressBarProgress

fun RemoteViews.setProgressBarProgress(viewId: @IdRes Int, progress: Int): Unit

Equivalent to calling android.widget.ProgressBar.setProgress.

Parameters
viewId: @IdRes Int

The id of the target view

progress: Int

The new progress.

setProgressBarProgressBackgroundTintBlendMode

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarProgressBackgroundTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
): Unit

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintBlendMode.

Parameters
viewId: @IdRes Int

The id of the target view

blendMode: BlendMode?

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

setProgressBarProgressBackgroundTintList

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarProgressBackgroundTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

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

setProgressBarProgressBackgroundTintList

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarProgressBackgroundTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
): Unit

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

tint: ColorStateList?

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

setProgressBarProgressBackgroundTintList

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarProgressBackgroundTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
): Unit

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

notNightTint: ColorStateList?

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

nightTint: ColorStateList?

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

setProgressBarProgressBackgroundTintListAttr

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarProgressBackgroundTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.ProgressBar.setProgressBackgroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setProgressBarProgressTintBlendMode

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarProgressTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
): Unit

Equivalent to calling android.widget.ProgressBar.setProgressTintBlendMode.

Parameters
viewId: @IdRes Int

The id of the target view

blendMode: BlendMode?

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

setProgressBarProgressTintList

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarProgressTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

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

setProgressBarProgressTintList

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarProgressTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
): Unit

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

Parameters
viewId: @IdRes Int

The id of the target view

tint: ColorStateList?

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

setProgressBarProgressTintList

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarProgressTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
): Unit

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

Parameters
viewId: @IdRes Int

The id of the target view

notNightTint: ColorStateList?

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

nightTint: ColorStateList?

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

setProgressBarProgressTintListAttr

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarProgressTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.ProgressBar.setProgressTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setProgressBarSecondaryProgress

fun RemoteViews.setProgressBarSecondaryProgress(
    viewId: @IdRes Int,
    secondaryProgress: Int
): Unit

Equivalent to calling android.widget.ProgressBar.setSecondaryProgress.

Parameters
viewId: @IdRes Int

The id of the target view

secondaryProgress: Int

The new secondary progress.

setProgressBarSecondaryProgressTintBlendMode

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarSecondaryProgressTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
): Unit

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintBlendMode.

Parameters
viewId: @IdRes Int

The id of the target view

blendMode: BlendMode?

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

setProgressBarSecondaryProgressTintList

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarSecondaryProgressTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

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

setProgressBarSecondaryProgressTintList

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarSecondaryProgressTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
): Unit

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

Parameters
viewId: @IdRes Int

The id of the target view

tint: ColorStateList?

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

setProgressBarSecondaryProgressTintList

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarSecondaryProgressTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
): Unit

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

Parameters
viewId: @IdRes Int

The id of the target view

notNightTint: ColorStateList?

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

nightTint: ColorStateList?

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

setProgressBarSecondaryProgressTintListAttr

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarSecondaryProgressTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.ProgressBar.setSecondaryProgressTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setProgressBarStateDescription

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarStateDescription(
    viewId: @IdRes Int,
    resId: @StringRes Int
): Unit

Equivalent to calling android.widget.ProgressBar.setStateDescription.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @StringRes Int

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

setProgressBarStateDescription

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarStateDescription(
    viewId: @IdRes Int,
    stateDescription: CharSequence?
): Unit

Equivalent to calling android.widget.ProgressBar.setStateDescription.

Parameters
viewId: @IdRes Int

The id of the target view

stateDescription: CharSequence?

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

setProgressBarStateDescriptionAttr

@RequiresApi(value = 31)
fun RemoteViews.setProgressBarStateDescriptionAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.ProgressBar.setStateDescription.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setRelativeLayoutGravity

fun RemoteViews.setRelativeLayoutGravity(viewId: @IdRes Int, gravity: Int): Unit

Equivalent to calling android.widget.RelativeLayout.setGravity.

Parameters
viewId: @IdRes Int

The id of the target view

gravity: Int

See android.view.Gravity.

setRelativeLayoutHorizontalGravity

fun RemoteViews.setRelativeLayoutHorizontalGravity(
    viewId: @IdRes Int,
    horizontalGravity: Int
): Unit

Equivalent to calling android.widget.RelativeLayout.setHorizontalGravity.

Parameters
viewId: @IdRes Int

The id of the target view

setRelativeLayoutIgnoreGravity

fun RemoteViews.setRelativeLayoutIgnoreGravity(
    viewId: @IdRes Int,
    childViewId: @IdRes Int
): Unit

Equivalent to calling android.widget.RelativeLayout.setIgnoreGravity.

Parameters
viewId: @IdRes Int

The id of the target view

childViewId: @IdRes Int

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

setRelativeLayoutVerticalGravity

fun RemoteViews.setRelativeLayoutVerticalGravity(
    viewId: @IdRes Int,
    verticalGravity: Int
): Unit

Equivalent to calling android.widget.RelativeLayout.setVerticalGravity.

Parameters
viewId: @IdRes Int

The id of the target view

setRemoteAdapter

Added in 1.0.0
fun setRemoteAdapter(
    context: Context,
    remoteViews: RemoteViews,
    appWidgetId: Int,
    viewId: @IdRes Int,
    items: RemoteViewsCompat.RemoteCollectionItems
): Unit

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
context: Context

The Context of the app providing the widget.

remoteViews: RemoteViews

The RemoteViews to receive the adapter.

appWidgetId: Int

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

viewId: @IdRes Int

The id of the android.widget.AdapterView.

items: RemoteViewsCompat.RemoteCollectionItems

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

setSwitchMinWidth

@RequiresApi(value = 31)
fun RemoteViews.setSwitchMinWidth(viewId: @IdRes Int, value: Float, unit: Int): Unit

Equivalent to calling android.widget.Switch.setSwitchMinWidth.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

Minimum width of the switch.

unit: Int

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

setSwitchMinWidthDimen

@RequiresApi(value = 31)
fun RemoteViews.setSwitchMinWidthDimen(viewId: @IdRes Int, resId: @DimenRes Int): Unit

Equivalent to calling android.widget.Switch.setSwitchMinWidth.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setSwitchMinWidthDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setSwitchMinWidthDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.Switch.setSwitchMinWidth.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setSwitchPadding

@RequiresApi(value = 31)
fun RemoteViews.setSwitchPadding(viewId: @IdRes Int, value: Float, unit: Int): Unit

Equivalent to calling android.widget.Switch.setSwitchPadding.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

Amount of padding.

unit: Int

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

setSwitchPaddingDimen

@RequiresApi(value = 31)
fun RemoteViews.setSwitchPaddingDimen(viewId: @IdRes Int, resId: @DimenRes Int): Unit

Equivalent to calling android.widget.Switch.setSwitchPadding.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setSwitchPaddingDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setSwitchPaddingDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.Switch.setSwitchPadding.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setSwitchShowText

@RequiresApi(value = 31)
fun RemoteViews.setSwitchShowText(viewId: @IdRes Int, showText: Boolean): Unit

Equivalent to calling android.widget.Switch.setShowText.

Parameters
viewId: @IdRes Int

The id of the target view

showText: Boolean

True to display on/off text.

setSwitchSplitTrack

@RequiresApi(value = 31)
fun RemoteViews.setSwitchSplitTrack(viewId: @IdRes Int, splitTrack: Boolean): Unit

Equivalent to calling android.widget.Switch.setSplitTrack.

Parameters
viewId: @IdRes Int

The id of the target view

splitTrack: Boolean

Whether the track should be split by the thumb.

setSwitchTextOff

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTextOff(viewId: @IdRes Int, resId: @StringRes Int): Unit

Equivalent to calling android.widget.Switch.setTextOff.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @StringRes Int

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

setSwitchTextOff

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTextOff(viewId: @IdRes Int, textOff: CharSequence?): Unit

Equivalent to calling android.widget.Switch.setTextOff.

Parameters
viewId: @IdRes Int

The id of the target view

textOff: CharSequence?

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

setSwitchTextOffAttr

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTextOffAttr(viewId: @IdRes Int, resId: @AttrRes Int): Unit

Equivalent to calling android.widget.Switch.setTextOff.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setSwitchTextOn

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTextOn(viewId: @IdRes Int, resId: @StringRes Int): Unit

Equivalent to calling android.widget.Switch.setTextOn.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @StringRes Int

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

setSwitchTextOn

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTextOn(viewId: @IdRes Int, textOn: CharSequence?): Unit

Equivalent to calling android.widget.Switch.setTextOn.

Parameters
viewId: @IdRes Int

The id of the target view

textOn: CharSequence?

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

setSwitchTextOnAttr

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTextOnAttr(viewId: @IdRes Int, resId: @AttrRes Int): Unit

Equivalent to calling android.widget.Switch.setTextOn.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setSwitchThumbIcon

@RequiresApi(value = 31)
fun RemoteViews.setSwitchThumbIcon(viewId: @IdRes Int, icon: Icon?): Unit

Equivalent to calling android.widget.Switch.setThumbIcon.

Parameters
viewId: @IdRes Int

The id of the target view

icon: Icon?

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

setSwitchThumbIcon

@RequiresApi(value = 31)
fun RemoteViews.setSwitchThumbIcon(
    viewId: @IdRes Int,
    notNight: Icon?,
    night: Icon?
): Unit

Equivalent to calling android.widget.Switch.setThumbIcon.

Parameters
viewId: @IdRes Int

The id of the target view

notNight: Icon?

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

notNight: Icon?

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

setSwitchThumbResource

@RequiresApi(value = 31)
fun RemoteViews.setSwitchThumbResource(
    viewId: @IdRes Int,
    resId: @DrawableRes Int
): Unit

Equivalent to calling android.widget.Switch.setThumbResource.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DrawableRes Int

Resource id of a thumb drawable.

setSwitchThumbTextPadding

@RequiresApi(value = 31)
fun RemoteViews.setSwitchThumbTextPadding(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.Switch.setThumbTextPadding.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

Horizontal padding for switch thumb text.

unit: Int

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

setSwitchThumbTextPaddingDimen

@RequiresApi(value = 31)
fun RemoteViews.setSwitchThumbTextPaddingDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.widget.Switch.setThumbTextPadding.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setSwitchThumbTextPaddingDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setSwitchThumbTextPaddingDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.Switch.setThumbTextPadding.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setSwitchThumbTintBlendMode

@RequiresApi(value = 31)
fun RemoteViews.setSwitchThumbTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
): Unit

Equivalent to calling android.widget.Switch.setThumbTintBlendMode.

Parameters
viewId: @IdRes Int

The id of the target view

blendMode: BlendMode?

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

setSwitchThumbTintList

@RequiresApi(value = 31)
fun RemoteViews.setSwitchThumbTintList(viewId: @IdRes Int, resId: @ColorRes Int): Unit

Equivalent to calling android.widget.Switch.setThumbTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

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

setSwitchThumbTintList

@RequiresApi(value = 31)
fun RemoteViews.setSwitchThumbTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
): Unit

Equivalent to calling android.widget.Switch.setThumbTintList.

Parameters
viewId: @IdRes Int

The id of the target view

tint: ColorStateList?

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

setSwitchThumbTintList

@RequiresApi(value = 31)
fun RemoteViews.setSwitchThumbTintList(
    viewId: @IdRes Int,
    notNight: ColorStateList?,
    night: ColorStateList?
): Unit

Equivalent to calling android.widget.Switch.setThumbTintList.

Parameters
viewId: @IdRes Int

The id of the target view

notNight: ColorStateList?

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

night: ColorStateList?

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

setSwitchThumbTintListAttr

@RequiresApi(value = 31)
fun RemoteViews.setSwitchThumbTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.Switch.setThumbTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setSwitchTrackIcon

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTrackIcon(viewId: @IdRes Int, icon: Icon?): Unit

Equivalent to calling android.widget.Switch.setTrackIcon.

Parameters
viewId: @IdRes Int

The id of the target view

icon: Icon?

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

setSwitchTrackIcon

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTrackIcon(
    viewId: @IdRes Int,
    notNight: Icon?,
    night: Icon?
): Unit

Equivalent to calling android.widget.Switch.setTrackIcon.

Parameters
viewId: @IdRes Int

The id of the target view

notNight: Icon?

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

notNight: Icon?

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

setSwitchTrackResource

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTrackResource(
    viewId: @IdRes Int,
    resId: @DrawableRes Int
): Unit

Equivalent to calling android.widget.Switch.setTrackResource.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DrawableRes Int

Resource id of a track drawable.

setSwitchTrackTintBlendMode

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTrackTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
): Unit

Equivalent to calling android.widget.Switch.setTrackTintBlendMode.

Parameters
viewId: @IdRes Int

The id of the target view

blendMode: BlendMode?

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

setSwitchTrackTintList

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTrackTintList(viewId: @IdRes Int, resId: @ColorRes Int): Unit

Equivalent to calling android.widget.Switch.setTrackTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

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

setSwitchTrackTintList

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTrackTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
): Unit

Equivalent to calling android.widget.Switch.setTrackTintList.

Parameters
viewId: @IdRes Int

The id of the target view

tint: ColorStateList?

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

setSwitchTrackTintList

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTrackTintList(
    viewId: @IdRes Int,
    notNight: ColorStateList?,
    night: ColorStateList?
): Unit

Equivalent to calling android.widget.Switch.setTrackTintList.

Parameters
viewId: @IdRes Int

The id of the target view

notNight: ColorStateList?

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

night: ColorStateList?

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

setSwitchTrackTintListAttr

@RequiresApi(value = 31)
fun RemoteViews.setSwitchTrackTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.Switch.setTrackTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setTextClockFormat12Hour

fun RemoteViews.setTextClockFormat12Hour(
    viewId: @IdRes Int,
    format: CharSequence?
): Unit

Equivalent to calling android.widget.TextClock.setFormat12Hour.

Parameters
viewId: @IdRes Int

The id of the target view

format: CharSequence?

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

setTextClockFormat12Hour

@RequiresApi(value = 31)
fun RemoteViews.setTextClockFormat12Hour(
    viewId: @IdRes Int,
    resId: @StringRes Int
): Unit

Equivalent to calling android.widget.TextClock.setFormat12Hour.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @StringRes Int

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

setTextClockFormat12HourAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextClockFormat12HourAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextClock.setFormat12Hour.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setTextClockFormat24Hour

fun RemoteViews.setTextClockFormat24Hour(
    viewId: @IdRes Int,
    format: CharSequence?
): Unit

Equivalent to calling android.widget.TextClock.setFormat24Hour.

Parameters
viewId: @IdRes Int

The id of the target view

format: CharSequence?

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

setTextClockFormat24Hour

@RequiresApi(value = 31)
fun RemoteViews.setTextClockFormat24Hour(
    viewId: @IdRes Int,
    resId: @StringRes Int
): Unit

Equivalent to calling android.widget.TextClock.setFormat24Hour.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @StringRes Int

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

setTextClockFormat24HourAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextClockFormat24HourAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextClock.setFormat24Hour.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setTextClockTimeZone

fun RemoteViews.setTextClockTimeZone(viewId: @IdRes Int, timeZone: String?): Unit

Equivalent to calling android.widget.TextClock.setTimeZone.

Parameters
viewId: @IdRes Int

The id of the target view

timeZone: String?

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

@RequiresApi(value = 31)
fun RemoteViews.setTextViewAllCaps(viewId: @IdRes Int, allCaps: Boolean): Unit

Equivalent to calling android.widget.TextView.setAllCaps.

Parameters
viewId: @IdRes Int

The id of the target view

allCaps: Boolean

Whether the text should display in all caps.

setTextViewAutoLinkMask

fun RemoteViews.setTextViewAutoLinkMask(viewId: @IdRes Int, mask: Int): Unit

Equivalent to calling android.widget.TextView.setAutoLinkMask.

Parameters
viewId: @IdRes Int

The id of the target view

mask: Int

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

setTextViewCompoundDrawablePadding

fun RemoteViews.setTextViewCompoundDrawablePadding(
    viewId: @IdRes Int,
    pad: @Px Int
): Unit

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

Parameters
viewId: @IdRes Int

The id of the target view

pad: @Px Int

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

setTextViewCompoundDrawablePadding

@RequiresApi(value = 31)
fun RemoteViews.setTextViewCompoundDrawablePadding(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The padding between the compound drawables and the text.

unit: Int

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

setTextViewCompoundDrawablePaddingDimen

@RequiresApi(value = 31)
fun RemoteViews.setTextViewCompoundDrawablePaddingDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setTextViewCompoundDrawablePaddingDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewCompoundDrawablePaddingDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setCompoundDrawablePadding.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setTextViewEms

fun RemoteViews.setTextViewEms(viewId: @IdRes Int, ems: Int): Unit

Equivalent to calling android.widget.TextView.setEms.

Parameters
viewId: @IdRes Int

The id of the target view

ems: Int

The width of the TextView, in ems.

setTextViewError

fun RemoteViews.setTextViewError(viewId: @IdRes Int, error: CharSequence?): Unit

Equivalent to calling android.widget.TextView.setError.

Parameters
viewId: @IdRes Int

The id of the target view

error: CharSequence?

The error message for the TextView.

setTextViewError

@RequiresApi(value = 31)
fun RemoteViews.setTextViewError(viewId: @IdRes Int, resId: @StringRes Int): Unit

Equivalent to calling android.widget.TextView.setError.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @StringRes Int

A string resource for the error.

setTextViewErrorAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewErrorAttr(viewId: @IdRes Int, resId: @AttrRes Int): Unit

Equivalent to calling android.widget.TextView.setError.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

A string attribute for the error.

setTextViewFontFeatureSettings

@RequiresApi(value = 21)
fun RemoteViews.setTextViewFontFeatureSettings(
    viewId: @IdRes Int,
    fontFeatureSettings: String
): Unit

Equivalent to calling android.widget.TextView.setFontFeatureSettings.

Parameters
viewId: @IdRes Int

The id of the target view

fontFeatureSettings: String

Font feature settings represented as CSS compatible string.

setTextViewGravity

@RequiresApi(value = 31)
fun RemoteViews.setTextViewGravity(viewId: @IdRes Int, gravity: Int): Unit

Equivalent to calling android.widget.TextView.setGravity.

Parameters
viewId: @IdRes Int

The id of the target view

gravity: Int

The gravity value, from android.view.Gravity.

setTextViewHeight

fun RemoteViews.setTextViewHeight(viewId: @IdRes Int, pixels: @Px Int): Unit

Equivalent to calling android.widget.TextView.setHeight.

Parameters
viewId: @IdRes Int

The id of the target view

pixels: @Px Int

The height of the TextView, in pixels.

setTextViewHeight

@RequiresApi(value = 31)
fun RemoteViews.setTextViewHeight(viewId: @IdRes Int, value: Float, unit: Int): Unit

Equivalent to calling android.widget.TextView.setHeight.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The height of the TextView.

unit: Int

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

setTextViewHeightDimen

@RequiresApi(value = 31)
fun RemoteViews.setTextViewHeightDimen(viewId: @IdRes Int, resId: @DimenRes Int): Unit

Equivalent to calling android.widget.TextView.setHeight.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setTextViewHeightDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewHeightDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setHeight.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setTextViewHighlightColor

fun RemoteViews.setTextViewHighlightColor(
    viewId: @IdRes Int,
    color: @ColorInt Int
): Unit

Equivalent to calling android.widget.TextView.setHighlightColor.

Parameters
viewId: @IdRes Int

The id of the target view

color: @ColorInt Int

The highlight color to use.

setTextViewHighlightColor

@RequiresApi(value = 31)
fun RemoteViews.setTextViewHighlightColor(
    viewId: @IdRes Int,
    notNight: @ColorInt Int,
    night: @ColorInt Int
): Unit

Equivalent to calling android.widget.TextView.setHighlightColor.

Parameters
viewId: @IdRes Int

The id of the target view

notNight: @ColorInt Int

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

night: @ColorInt Int

The highlight color to use when night mode is active.

setTextViewHighlightColorAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewHighlightColorAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setHighlightColor.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

The attribute id for the highlight color.

setTextViewHighlightColorResource

@RequiresApi(value = 31)
fun RemoteViews.setTextViewHighlightColorResource(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.widget.TextView.setHighlightColor.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

The resource id for the highlight color.

setTextViewHint

fun RemoteViews.setTextViewHint(viewId: @IdRes Int, hint: CharSequence?): Unit

Equivalent to calling android.widget.TextView.setHint.

Parameters
viewId: @IdRes Int

The id of the target view

hint: CharSequence?

The hint for the TextView.

setTextViewHint

fun RemoteViews.setTextViewHint(viewId: @IdRes Int, resId: @StringRes Int): Unit

Equivalent to calling android.widget.TextView.setHint.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @StringRes Int

A string resource for the hint.

setTextViewHintAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewHintAttr(viewId: @IdRes Int, resId: @AttrRes Int): Unit

Equivalent to calling android.widget.TextView.setHint.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

A string attribute for the hint.

setTextViewHintTextColor

fun RemoteViews.setTextViewHintTextColor(
    viewId: @IdRes Int,
    color: @ColorInt Int
): Unit

Equivalent to calling android.widget.TextView.setHintTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

color: @ColorInt Int

The hint text color to use.

setTextViewHintTextColor

@RequiresApi(value = 31)
fun RemoteViews.setTextViewHintTextColor(
    viewId: @IdRes Int,
    notNight: @ColorInt Int,
    night: @ColorInt Int
): Unit

Equivalent to calling android.widget.TextView.setHintTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

notNight: @ColorInt Int

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

night: @ColorInt Int

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

setTextViewHintTextColorAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewHintTextColorAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setHintTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

The attribute id for the hint text color.

setTextViewHintTextColorResource

@RequiresApi(value = 31)
fun RemoteViews.setTextViewHintTextColorResource(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.widget.TextView.setHintTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

The resource id for the hint text color.

setTextViewJustificationMode

@RequiresApi(value = 31)
fun RemoteViews.setTextViewJustificationMode(
    viewId: @IdRes Int,
    justificationMode: Int
): Unit

Equivalent to calling android.widget.TextView.setJustificationMode.

Parameters
viewId: @IdRes Int

The id of the target view

justificationMode: Int

The justification mode to set.

setTextViewLetterSpacing

@RequiresApi(value = 21)
fun RemoteViews.setTextViewLetterSpacing(
    viewId: @IdRes Int,
    letterSpacing: Float
): Unit

Equivalent to calling android.widget.TextView.setLetterSpacing.

Parameters
viewId: @IdRes Int

The id of the target view

letterSpacing: Float

A text letter-space value in ems.

setTextViewLineHeight

@RequiresApi(value = 31)
fun RemoteViews.setTextViewLineHeight(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.TextView.setLineHeight.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The value of the dimension for the line height.

unit: Int

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

setTextViewLineHeightDimen

@RequiresApi(value = 31)
fun RemoteViews.setTextViewLineHeightDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.widget.TextView.setLineHeight.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

The id of a dimension resource for the line height.

setTextViewLineHeightDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewLineHeightDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setLineHeight.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

The id of a dimension attribute for the line height.

setTextViewLines

fun RemoteViews.setTextViewLines(viewId: @IdRes Int, lines: Int): Unit

Equivalent to calling android.widget.TextView.setLines.

Parameters
viewId: @IdRes Int

The id of the target view

lines: Int

The number of lines for the height of the TextView.

setTextViewLinkTextColor

fun RemoteViews.setTextViewLinkTextColor(
    viewId: @IdRes Int,
    color: @ColorInt Int
): Unit

Equivalent to calling android.widget.TextView.setLinkTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

color: @ColorInt Int

The link text color to use.

setTextViewLinkTextColor

@RequiresApi(value = 31)
fun RemoteViews.setTextViewLinkTextColor(
    viewId: @IdRes Int,
    notNight: @ColorInt Int,
    night: @ColorInt Int
): Unit

Equivalent to calling android.widget.TextView.setLinkTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

notNight: @ColorInt Int

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

night: @ColorInt Int

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

setTextViewLinkTextColorAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewLinkTextColorAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setLinkTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

The attribute id for the link text color.

setTextViewLinkTextColorResource

@RequiresApi(value = 31)
fun RemoteViews.setTextViewLinkTextColorResource(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.widget.TextView.setLinkTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

The resource id for the link text color.

setTextViewLinksClickable

fun RemoteViews.setTextViewLinksClickable(
    viewId: @IdRes Int,
    whether: Boolean
): Unit

Equivalent to calling android.widget.TextView.setLinksClickable.

Parameters
viewId: @IdRes Int

The id of the target view

whether: Boolean

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

setTextViewMaxEms

fun RemoteViews.setTextViewMaxEms(viewId: @IdRes Int, maxems: Int): Unit

Equivalent to calling android.widget.TextView.setMaxEms.

Parameters
viewId: @IdRes Int

The id of the target view

maxems: Int

The maximum width of the TextView, in ems.

setTextViewMaxHeight

fun RemoteViews.setTextViewMaxHeight(viewId: @IdRes Int, maxHeight: @Px Int): Unit

Equivalent to calling android.widget.TextView.setMaxHeight.

Parameters
viewId: @IdRes Int

The id of the target view

maxHeight: @Px Int

The maximum height of the TextView, in pixels.

setTextViewMaxHeight

@RequiresApi(value = 31)
fun RemoteViews.setTextViewMaxHeight(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.TextView.setMaxHeight.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The maximum height of the TextView.

unit: Int

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

setTextViewMaxHeightDimen

@RequiresApi(value = 31)
fun RemoteViews.setTextViewMaxHeightDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.widget.TextView.setMaxHeight.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setTextViewMaxHeightDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewMaxHeightDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setMaxHeight.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setTextViewMaxLines

fun RemoteViews.setTextViewMaxLines(viewId: @IdRes Int, maxLines: Int): Unit

Equivalent to calling android.widget.TextView.setMaxLines.

Parameters
viewId: @IdRes Int

The id of the target view

maxLines: Int

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

setTextViewMaxWidth

fun RemoteViews.setTextViewMaxWidth(viewId: @IdRes Int, maxWidth: @Px Int): Unit

Equivalent to calling android.widget.TextView.setMaxWidth.

Parameters
viewId: @IdRes Int

The id of the target view

maxWidth: @Px Int

The maximum width of the TextView, in pixels.

setTextViewMaxWidth

@RequiresApi(value = 31)
fun RemoteViews.setTextViewMaxWidth(viewId: @IdRes Int, value: Float, unit: Int): Unit

Equivalent to calling android.widget.TextView.setMaxWidth.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The maximum width of the TextView.

unit: Int

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

setTextViewMaxWidthDimen

@RequiresApi(value = 31)
fun RemoteViews.setTextViewMaxWidthDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.widget.TextView.setMaxWidth.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setTextViewMaxWidthDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewMaxWidthDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setMaxWidth.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setTextViewMinEms

fun RemoteViews.setTextViewMinEms(viewId: @IdRes Int, minems: Int): Unit

Equivalent to calling android.widget.TextView.setMinEms.

Parameters
viewId: @IdRes Int

The id of the target view

minems: Int

The minimum width of the TextView, in ems.

setTextViewMinHeight

fun RemoteViews.setTextViewMinHeight(viewId: @IdRes Int, minHeight: @Px Int): Unit

Equivalent to calling android.widget.TextView.setMinHeight.

Parameters
viewId: @IdRes Int

The id of the target view

minHeight: @Px Int

The minimum height of the TextView, in pixels.

setTextViewMinHeight

@RequiresApi(value = 31)
fun RemoteViews.setTextViewMinHeight(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.TextView.setMinHeight.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The minimum height of the TextView.

unit: Int

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

setTextViewMinHeightDimen

@RequiresApi(value = 31)
fun RemoteViews.setTextViewMinHeightDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.widget.TextView.setMinHeight.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setTextViewMinHeightDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewMinHeightDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setMinHeight.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setTextViewMinLines

fun RemoteViews.setTextViewMinLines(viewId: @IdRes Int, minLines: Int): Unit

Equivalent to calling android.widget.TextView.setMinLines.

Parameters
viewId: @IdRes Int

The id of the target view

minLines: Int

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

setTextViewMinWidth

fun RemoteViews.setTextViewMinWidth(viewId: @IdRes Int, minWidth: @Px Int): Unit

Equivalent to calling android.widget.TextView.setMinWidth.

Parameters
viewId: @IdRes Int

The id of the target view

minWidth: @Px Int

The minimum width of the TextView, in pixels.

setTextViewMinWidth

@RequiresApi(value = 31)
fun RemoteViews.setTextViewMinWidth(viewId: @IdRes Int, value: Float, unit: Int): Unit

Equivalent to calling android.widget.TextView.setMinWidth.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The minimum width of the TextView.

unit: Int

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

setTextViewMinWidthDimen

@RequiresApi(value = 31)
fun RemoteViews.setTextViewMinWidthDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.widget.TextView.setMinWidth.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setTextViewMinWidthDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewMinWidthDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setMinWidth.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setTextViewPaintFlags

fun RemoteViews.setTextViewPaintFlags(viewId: @IdRes Int, flags: Int): Unit

Equivalent to calling android.widget.TextView.setPaintFlags.

Parameters
viewId: @IdRes Int

The id of the target view

flags: Int

The flags for the text paint.

setTextViewSelectAllOnFocus

fun RemoteViews.setTextViewSelectAllOnFocus(
    viewId: @IdRes Int,
    selectAllOnFocus: Boolean
): Unit

Equivalent to calling android.widget.TextView.setSelectAllOnFocus.

Parameters
viewId: @IdRes Int

The id of the target view

selectAllOnFocus: Boolean

Whether to select all text when the TextView is focused.

setTextViewSingleLine

fun RemoteViews.setTextViewSingleLine(viewId: @IdRes Int, singleLine: Boolean): Unit

Equivalent to calling android.widget.TextView.setSingleLine.

Parameters
viewId: @IdRes Int

The id of the target view

singleLine: Boolean

Whether the TextView is single-line.

setTextViewText

fun RemoteViews.setTextViewText(viewId: @IdRes Int, resId: @StringRes Int): Unit

Equivalent to calling android.widget.TextView.setText.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @StringRes Int

A string resource for the text.

setTextViewTextAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewTextAttr(viewId: @IdRes Int, resId: @AttrRes Int): Unit

Equivalent to calling android.widget.TextView.setText.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

A string attribute for the text.

setTextViewTextColor

fun RemoteViews.setTextViewTextColor(viewId: @IdRes Int, color: @ColorInt Int): Unit

Equivalent to calling android.widget.TextView.setTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

color: @ColorInt Int

The text color to use.

setTextViewTextColor

@RequiresApi(value = 31)
fun RemoteViews.setTextViewTextColor(
    viewId: @IdRes Int,
    colors: ColorStateList
): Unit

Equivalent to calling android.widget.TextView.setTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

colors: ColorStateList

The text colors to use.

setTextViewTextColor

@RequiresApi(value = 31)
fun RemoteViews.setTextViewTextColor(
    viewId: @IdRes Int,
    notNight: ColorStateList,
    night: ColorStateList
): Unit

Equivalent to calling android.widget.TextView.setTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

notNight: ColorStateList

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

night: ColorStateList

The text colors to use when night mode is active.

setTextViewTextColor

@RequiresApi(value = 31)
fun RemoteViews.setTextViewTextColor(
    viewId: @IdRes Int,
    notNight: @ColorInt Int,
    night: @ColorInt Int
): Unit

Equivalent to calling android.widget.TextView.setTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

notNight: @ColorInt Int

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

night: @ColorInt Int

The text color to use when night mode is active.

setTextViewTextColorAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewTextColorAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

The attribute id for the text color.

setTextViewTextColorResource

@RequiresApi(value = 31)
fun RemoteViews.setTextViewTextColorResource(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.widget.TextView.setTextColor.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

The resource id for the text color.

setTextViewTextScaleX

fun RemoteViews.setTextViewTextScaleX(viewId: @IdRes Int, size: Float): Unit

Equivalent to calling android.widget.TextView.setTextScaleX.

Parameters
viewId: @IdRes Int

The id of the target view

size: Float

The horizontal scale factor.

setTextViewTextSizeDimen

@RequiresApi(value = 31)
fun RemoteViews.setTextViewTextSizeDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.widget.TextView.setTextSize.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

The id of a dimension resource for the text size.

setTextViewTextSizeDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewTextSizeDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setTextSize.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

The id of a dimension attribute for the text size.

setTextViewWidth

fun RemoteViews.setTextViewWidth(viewId: @IdRes Int, pixels: @Px Int): Unit

Equivalent to calling android.widget.TextView.setWidth.

Parameters
viewId: @IdRes Int

The id of the target view

pixels: @Px Int

The width of the TextView, in pixels.

setTextViewWidth

@RequiresApi(value = 31)
fun RemoteViews.setTextViewWidth(viewId: @IdRes Int, value: Float, unit: Int): Unit

Equivalent to calling android.widget.TextView.setWidth.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The width of the TextView.

unit: Int

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

setTextViewWidthDimen

@RequiresApi(value = 31)
fun RemoteViews.setTextViewWidthDimen(viewId: @IdRes Int, resId: @DimenRes Int): Unit

Equivalent to calling android.widget.TextView.setWidth.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setTextViewWidthDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setTextViewWidthDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.widget.TextView.setWidth.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setViewAlpha

@RequiresApi(value = 31)
fun RemoteViews.setViewAlpha(viewId: @IdRes Int, alpha: Float): Unit

Equivalent to calling android.view.View.setAlpha.

Parameters
viewId: @IdRes Int

The id of the target view

alpha: Float

The opacity of the view.

setViewBackgroundColor

fun RemoteViews.setViewBackgroundColor(viewId: @IdRes Int, color: @ColorInt Int): Unit

Equivalent to calling android.view.View.setBackgroundColor.

Parameters
viewId: @IdRes Int

The id of the target view

color: @ColorInt Int

The color of the background.

setViewBackgroundColor

@RequiresApi(value = 31)
fun RemoteViews.setViewBackgroundColor(
    viewId: @IdRes Int,
    notNight: @ColorInt Int,
    night: @ColorInt Int
): Unit

Equivalent to calling android.view.View.setBackgroundColor.

Parameters
viewId: @IdRes Int

The id of the target view

notNight: @ColorInt Int

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

night: @ColorInt Int

The color of the background when night mode is active.

setViewBackgroundColorAttr

@RequiresApi(value = 31)
fun RemoteViews.setViewBackgroundColorAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.view.View.setBackgroundColor.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

A color attribute for the background.

setViewBackgroundColorResource

fun RemoteViews.setViewBackgroundColorResource(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.view.View.setBackgroundColor.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

A color resource for the background.

setViewBackgroundResource

fun RemoteViews.setViewBackgroundResource(
    viewId: @IdRes Int,
    resId: @DrawableRes Int
): Unit

Equivalent to calling android.view.View.setBackgroundResource.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DrawableRes Int

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

setViewBackgroundTintBlendMode

@RequiresApi(value = 31)
fun RemoteViews.setViewBackgroundTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
): Unit

Equivalent to calling android.view.View.setBackgroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

blendMode: BlendMode?

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

setViewBackgroundTintList

@RequiresApi(value = 31)
fun RemoteViews.setViewBackgroundTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.view.View.setBackgroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

The resource id of the tint to apply.

setViewBackgroundTintList

@RequiresApi(value = 31)
fun RemoteViews.setViewBackgroundTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
): Unit

Equivalent to calling android.view.View.setBackgroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

tint: ColorStateList?

The tint to apply, may be null to clear tint

setViewBackgroundTintList

@RequiresApi(value = 31)
fun RemoteViews.setViewBackgroundTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
): Unit

Equivalent to calling android.view.View.setBackgroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

notNightTint: ColorStateList?

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

nightTint: ColorStateList?

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

setViewBackgroundTintListAttr

@RequiresApi(value = 31)
fun RemoteViews.setViewBackgroundTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.view.View.setBackgroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

The attribute of the tint to apply.

setViewClipToOutline

@RequiresApi(value = 31)
fun RemoteViews.setViewClipToOutline(
    viewId: @IdRes Int,
    clipToOutline: Boolean
): Unit

Equivalent to calling android.view.View.setClipToOutline.

Parameters
viewId: @IdRes Int

The id of the target view

clipToOutline: Boolean

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

setViewContentDescription

fun RemoteViews.setViewContentDescription(
    viewId: @IdRes Int,
    contentDescription: CharSequence?
): Unit

Equivalent to calling android.view.View.setContentDescription.

Parameters
viewId: @IdRes Int

The id of the target view

contentDescription: CharSequence?

The content description.

setViewContentDescription

@RequiresApi(value = 31)
fun RemoteViews.setViewContentDescription(
    viewId: @IdRes Int,
    resId: @StringRes Int
): Unit

Equivalent to calling android.view.View.setContentDescription.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @StringRes Int

The resource id for the content description.

setViewContentDescriptionAttr

@RequiresApi(value = 31)
fun RemoteViews.setViewContentDescriptionAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.view.View.setContentDescription.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

The attribute id for the content description.

setViewElevationDimen

@RequiresApi(value = 31)
fun RemoteViews.setViewElevationDimen(viewId: @IdRes Int, resId: @DimenRes Int): Unit

Equivalent to calling android.view.View.setElevation.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setViewElevationDimen

@RequiresApi(value = 31)
fun RemoteViews.setViewElevationDimen(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.view.View.setElevation.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The base elevation of this view.

unit: Int

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

setViewElevationDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setViewElevationDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.view.View.setElevation.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setViewEnabled

@RequiresApi(value = 24)
fun RemoteViews.setViewEnabled(viewId: @IdRes Int, enabled: Boolean): Unit

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
viewId: @IdRes Int

The id of the target view

enabled: Boolean

True if this view is enabled, false otherwise.

setViewFocusable

@RequiresApi(value = 31)
fun RemoteViews.setViewFocusable(viewId: @IdRes Int, focusable: Boolean): Unit

Equivalent to calling android.view.View.setFocusable.

Parameters
viewId: @IdRes Int

The id of the target view

focusable: Boolean

If true, this view can receive the focus.

setViewFocusable

@RequiresApi(value = 31)
fun RemoteViews.setViewFocusable(viewId: @IdRes Int, focusable: Int): Unit

Equivalent to calling android.view.View.setFocusable.

Parameters
viewId: @IdRes Int

The id of the target view

focusable: Int

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

setViewFocusableInTouchMode

@RequiresApi(value = 31)
fun RemoteViews.setViewFocusableInTouchMode(
    viewId: @IdRes Int,
    focusableInTouchMode: Boolean
): Unit

Equivalent to calling android.view.View.setFocusableInTouchMode.

Parameters
viewId: @IdRes Int

The id of the target view

focusableInTouchMode: Boolean

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

setViewFocusedByDefault

@RequiresApi(value = 31)
fun RemoteViews.setViewFocusedByDefault(
    viewId: @IdRes Int,
    isFocusedByDefault: Boolean
): Unit

Equivalent to calling android.view.View.setFocusedByDefault.

Parameters
viewId: @IdRes Int

The id of the target view

isFocusedByDefault: Boolean

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

setViewForegroundTintBlendMode

@RequiresApi(value = 31)
fun RemoteViews.setViewForegroundTintBlendMode(
    viewId: @IdRes Int,
    blendMode: BlendMode?
): Unit

Equivalent to calling android.view.View.setForegroundTintBlendMode.

Parameters
viewId: @IdRes Int

The id of the target view

blendMode: BlendMode?

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

setViewForegroundTintList

@RequiresApi(value = 31)
fun RemoteViews.setViewForegroundTintList(
    viewId: @IdRes Int,
    resId: @ColorRes Int
): Unit

Equivalent to calling android.view.View.setForegroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @ColorRes Int

The resource id of the tint to apply.

setViewForegroundTintList

@RequiresApi(value = 31)
fun RemoteViews.setViewForegroundTintList(
    viewId: @IdRes Int,
    tint: ColorStateList?
): Unit

Equivalent to calling android.view.View.setForegroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

tint: ColorStateList?

The tint to apply, may be null to clear tint

setViewForegroundTintList

@RequiresApi(value = 31)
fun RemoteViews.setViewForegroundTintList(
    viewId: @IdRes Int,
    notNightTint: ColorStateList?,
    nightTint: ColorStateList?
): Unit

Equivalent to calling android.view.View.setForegroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

notNightTint: ColorStateList?

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

nightTint: ColorStateList?

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

setViewForegroundTintListAttr

@RequiresApi(value = 31)
fun RemoteViews.setViewForegroundTintListAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.view.View.setForegroundTintList.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

The attribute of the tint to apply.

setViewLayoutDirection

fun RemoteViews.setViewLayoutDirection(
    viewId: @IdRes Int,
    layoutDirection: Int
): Unit

Equivalent to calling android.view.View.setLayoutDirection.

setViewMinimumHeight

@RequiresApi(value = 24)
fun RemoteViews.setViewMinimumHeight(viewId: @IdRes Int, minHeight: @Px Int): Unit

Equivalent to calling android.view.View.setMinimumHeight.

Parameters
viewId: @IdRes Int

The id of the target view

minHeight: @Px Int

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

setViewMinimumHeight

@RequiresApi(value = 31)
fun RemoteViews.setViewMinimumHeight(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.TextView.setMinimumHeight.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The minimum height the view will try to be.

unit: Int

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

setViewMinimumHeightDimen

@RequiresApi(value = 31)
fun RemoteViews.setViewMinimumHeightDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.view.View.setMinimumHeight.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setViewMinimumHeightDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setViewMinimumHeightDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.view.View.setMinimumHeight.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setViewMinimumWidth

@RequiresApi(value = 31)
fun RemoteViews.setViewMinimumWidth(viewId: @IdRes Int, value: Float, unit: Int): Unit

Equivalent to calling android.widget.TextView.setMinimumWidth.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The minimum width the view will try to be.

unit: Int

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

setViewMinimumWidthDimen

@RequiresApi(value = 31)
fun RemoteViews.setViewMinimumWidthDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.view.View.setMinimumWidth.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setViewMinimumWidthDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setViewMinimumWidthDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.view.View.setMinimumWidth.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setViewPivotX

@RequiresApi(value = 31)
fun RemoteViews.setViewPivotX(viewId: @IdRes Int, pivotX: Float): Unit

Equivalent to calling android.view.View.setPivotX.

Parameters
viewId: @IdRes Int

The id of the target view

pivotX: Float

The x location of the pivot point.

setViewPivotY

@RequiresApi(value = 31)
fun RemoteViews.setViewPivotY(viewId: @IdRes Int, pivotY: Float): Unit

Equivalent to calling android.view.View.setPivotY.

Parameters
viewId: @IdRes Int

The id of the target view

pivotY: Float

The y location of the pivot point.

setViewRotation

@RequiresApi(value = 31)
fun RemoteViews.setViewRotation(viewId: @IdRes Int, rotation: Float): Unit

Equivalent to calling android.view.View.setRotation.

Parameters
viewId: @IdRes Int

The id of the target view

rotation: Float

The degrees of rotation.

setViewRotationX

@RequiresApi(value = 31)
fun RemoteViews.setViewRotationX(viewId: @IdRes Int, rotationX: Float): Unit

Equivalent to calling android.view.View.setRotationX.

Parameters
viewId: @IdRes Int

The id of the target view

rotationX: Float

The degrees of X rotation.

setViewRotationY

@RequiresApi(value = 31)
fun RemoteViews.setViewRotationY(viewId: @IdRes Int, rotationY: Float): Unit

Equivalent to calling android.view.View.setRotationY.

Parameters
viewId: @IdRes Int

The id of the target view

rotationY: Float

The degrees of Y rotation.

setViewScaleX

@RequiresApi(value = 31)
fun RemoteViews.setViewScaleX(viewId: @IdRes Int, scaleX: Float): Unit

Equivalent to calling android.view.View.setScaleX.

Parameters
viewId: @IdRes Int

The id of the target view

scaleX: Float

The scaling factor.

setViewScaleY

@RequiresApi(value = 31)
fun RemoteViews.setViewScaleY(viewId: @IdRes Int, scaleY: Float): Unit

Equivalent to calling android.view.View.setScaleY.

Parameters
viewId: @IdRes Int

The id of the target view

scaleY: Float

The scaling factor.

setViewScrollIndicators

@RequiresApi(value = 31)
fun RemoteViews.setViewScrollIndicators(
    viewId: @IdRes Int,
    scrollIndicators: Int
): Unit

Equivalent to calling android.view.View.setScrollIndicators.

Parameters
viewId: @IdRes Int

The id of the target view

scrollIndicators: Int

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

setViewStateDescription

@RequiresApi(value = 31)
fun RemoteViews.setViewStateDescription(
    viewId: @IdRes Int,
    resId: @StringRes Int
): Unit

Equivalent to calling android.view.View.setStateDescription.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @StringRes Int

The resource id for the state description.

setViewStateDescription

@RequiresApi(value = 30)
fun RemoteViews.setViewStateDescription(
    viewId: @IdRes Int,
    stateDescription: CharSequence?
): Unit

Equivalent to calling android.view.View.setStateDescription.

Parameters
viewId: @IdRes Int

The id of the target view

stateDescription: CharSequence?

The state description.

setViewStateDescriptionAttr

@RequiresApi(value = 31)
fun RemoteViews.setViewStateDescriptionAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.view.View.setStateDescription.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

The attribute id for the state description.

setViewStubInflatedId

fun RemoteViews.setViewStubInflatedId(viewId: @IdRes Int, inflatedId: Int): Unit

Equivalent to calling android.view.ViewStub.setInflatedId.

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

Parameters
viewId: @IdRes Int

The id of the target view

inflatedId: Int

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

setViewStubLayoutResource

fun RemoteViews.setViewStubLayoutResource(
    viewId: @IdRes Int,
    layoutResource: @LayoutRes Int
): Unit

Equivalent to calling android.view.ViewStub.setLayoutResource.

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

Parameters
viewId: @IdRes Int

The id of the target view

layoutResource: @LayoutRes Int

A valid layout resource identifier (different from 0).

setViewTranslationXDimen

@RequiresApi(value = 31)
fun RemoteViews.setViewTranslationXDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.view.View.setTranslationX.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setViewTranslationXDimen

@RequiresApi(value = 31)
fun RemoteViews.setViewTranslationXDimen(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.TextView.setTranslationX.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

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

unit: Int

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

setViewTranslationXDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setViewTranslationXDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.view.View.setTranslationX.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setViewTranslationYDimen

@RequiresApi(value = 31)
fun RemoteViews.setViewTranslationYDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.view.View.setTranslationY.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setViewTranslationYDimen

@RequiresApi(value = 31)
fun RemoteViews.setViewTranslationYDimen(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.TextView.setTranslationY.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

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

unit: Int

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

setViewTranslationYDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setViewTranslationYDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.view.View.setTranslationY.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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

setViewTranslationZDimen

@RequiresApi(value = 31)
fun RemoteViews.setViewTranslationZDimen(
    viewId: @IdRes Int,
    resId: @DimenRes Int
): Unit

Equivalent to calling android.view.View.setTranslationZ.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @DimenRes Int

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

setViewTranslationZDimen

@RequiresApi(value = 31)
fun RemoteViews.setViewTranslationZDimen(
    viewId: @IdRes Int,
    value: Float,
    unit: Int
): Unit

Equivalent to calling android.widget.TextView.setTranslationZ.

Parameters
viewId: @IdRes Int

The id of the target view

value: Float

The depth of this view relative to its elevation.

unit: Int

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

setViewTranslationZDimenAttr

@RequiresApi(value = 31)
fun RemoteViews.setViewTranslationZDimenAttr(
    viewId: @IdRes Int,
    resId: @AttrRes Int
): Unit

Equivalent to calling android.view.View.setTranslationZ.

Parameters
viewId: @IdRes Int

The id of the target view

resId: @AttrRes Int

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