AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.ViewUtil Class Reference

Static Public Member Functions

static void setChildWidthForHorizontalLayout (View view, int width)
 
static void setChildHeightForHorizontalLayout (View view, int height)
 
static void setChildWidthForVerticalLayout (View view, int width)
 
static void setChildHeightForVerticalLayout (View view, int height)
 
static void setChildWidthForTableLayout (View view, int width)
 
static void setChildHeightForTableLayout (View view, int height)
 
static void setBackgroundImage (View view, Drawable drawable)
 
static void setImage (ImageView view, Drawable drawable)
 
static void setBackgroundDrawable (View view, Drawable drawable)
 

Detailed Description

Helper methods for manipulating View objects.

Definition at line 22 of file ViewUtil.java.

Member Function Documentation

◆ setBackgroundDrawable()

static void com.google.appinventor.components.runtime.util.ViewUtil.setBackgroundDrawable ( View  view,
Drawable  drawable 
)
static

Definition at line 200 of file ViewUtil.java.

◆ setBackgroundImage()

static void com.google.appinventor.components.runtime.util.ViewUtil.setBackgroundImage ( View  view,
Drawable  drawable 
)
static

Sets the background image for a view.

Definition at line 184 of file ViewUtil.java.

◆ setChildHeightForHorizontalLayout()

static void com.google.appinventor.components.runtime.util.ViewUtil.setChildHeightForHorizontalLayout ( View  view,
int  height 
)
static

Definition at line 66 of file ViewUtil.java.

◆ setChildHeightForTableLayout()

static void com.google.appinventor.components.runtime.util.ViewUtil.setChildHeightForTableLayout ( View  view,
int  height 
)
static

Definition at line 160 of file ViewUtil.java.

◆ setChildHeightForVerticalLayout()

static void com.google.appinventor.components.runtime.util.ViewUtil.setChildHeightForVerticalLayout ( View  view,
int  height 
)
static

Definition at line 113 of file ViewUtil.java.

◆ setChildWidthForHorizontalLayout()

static void com.google.appinventor.components.runtime.util.ViewUtil.setChildWidthForHorizontalLayout ( View  view,
int  width 
)
static

Definition at line 40 of file ViewUtil.java.

◆ setChildWidthForTableLayout()

static void com.google.appinventor.components.runtime.util.ViewUtil.setChildWidthForTableLayout ( View  view,
int  width 
)
static

Definition at line 139 of file ViewUtil.java.

◆ setChildWidthForVerticalLayout()

static void com.google.appinventor.components.runtime.util.ViewUtil.setChildWidthForVerticalLayout ( View  view,
int  width 
)
static

Definition at line 89 of file ViewUtil.java.

◆ setImage()

static void com.google.appinventor.components.runtime.util.ViewUtil.setImage ( ImageView  view,
Drawable  drawable 
)
static

Sets the image for an ImageView.

Definition at line 192 of file ViewUtil.java.


The documentation for this class was generated from the following file: