Java android.appwidget AppWidgetHostView fields, constructors, methods, implement or subclass

Example usage for Java android.appwidget AppWidgetHostView fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.appwidget AppWidgetHostView.

The text is from its open source code.

Subclass

android.appwidget.AppWidgetHostView has subclasses.
Click this link to see all its subclasses.

Method

intgetAppWidgetId()
AppWidgetProviderInfogetAppWidgetInfo()
RectgetDefaultPaddingForWidget(Context context, ComponentName component, Rect padding)
As of ICE_CREAM_SANDWICH we are automatically adding padding to widgets targeting ICE_CREAM_SANDWICH and higher.
RectgetDefaultPaddingForWidget(Context context, ApplicationInfo appInfo, Rect padding)
ViewGroup.LayoutParamsgetLayoutParams()
Get the LayoutParams associated with this view.
booleanpost(Runnable action)

Causes the Runnable to be added to the message queue.

voidsetAppWidget(int appWidgetId, AppWidgetProviderInfo info)
Set the AppWidget that will be displayed by this view.
voidsetFocusable(boolean focusable)
Set whether this view can receive the focus.
voidsetLayoutParams(ViewGroup.LayoutParams params)
Set the layout parameters associated with this view.
voidsetOnFocusChangeListener(OnFocusChangeListener l)
Register a callback to be invoked when focus of this view changed.
voidsetOnLongClickListener(@Nullable OnLongClickListener l)
Register a callback to be invoked when this view is clicked and held.
voidsetOnTouchListener(OnTouchListener l)
Register a callback to be invoked when a touch event is sent to this view.
voidsetTag(final Object tag)
Sets the tag associated with this view.
voidsetVisibility(@Visibility int visibility)
Set the visibility state of this view.
voidupdateAppWidgetSize(Bundle newOptions, int minWidth, int minHeight, int maxWidth, int maxHeight)
Provide guidance about the size of this widget to the AppWidgetManager.