Example usage for Java android.appwidget AppWidgetHostView fields, constructors, methods, implement or subclass
The text is from its open source code.
int | getAppWidgetId() |
AppWidgetProviderInfo | getAppWidgetInfo() |
Rect | getDefaultPaddingForWidget(Context context, ComponentName component, Rect padding) As of ICE_CREAM_SANDWICH we are automatically adding padding to widgets targeting ICE_CREAM_SANDWICH and higher. |
Rect | getDefaultPaddingForWidget(Context context, ApplicationInfo appInfo, Rect padding) |
ViewGroup.LayoutParams | getLayoutParams() Get the LayoutParams associated with this view. |
boolean | post(Runnable action) Causes the Runnable to be added to the message queue. |
void | setAppWidget(int appWidgetId, AppWidgetProviderInfo info) Set the AppWidget that will be displayed by this view. |
void | setFocusable(boolean focusable) Set whether this view can receive the focus. |
void | setLayoutParams(ViewGroup.LayoutParams params) Set the layout parameters associated with this view. |
void | setOnFocusChangeListener(OnFocusChangeListener l) Register a callback to be invoked when focus of this view changed. |
void | setOnLongClickListener(@Nullable OnLongClickListener l) Register a callback to be invoked when this view is clicked and held. |
void | setOnTouchListener(OnTouchListener l) Register a callback to be invoked when a touch event is sent to this view. |
void | setTag(final Object tag) Sets the tag associated with this view. |
void | setVisibility(@Visibility int visibility) Set the visibility state of this view. |
void | updateAppWidgetSize(Bundle newOptions, int minWidth, int minHeight, int maxWidth, int maxHeight) Provide guidance about the size of this widget to the AppWidgetManager. |