AndroidLookup  0.02
 All Classes Namespaces Files Functions Variables Pages
Static Protected Member Functions | List of all members
com.jburto2.androidlookup.TableLayoutUtils Class Reference

A series of static methods that create widgets for a table layout. More...

Static Protected Member Functions

static TableRow createTableRow (Context context)
 
static View createHorizontalLine (Context context, int color)
 Creates a horizontal line of height 1 that goes across the parent. More...
 
static View createVerticalLine (Context context, int color)
 Creates a vertical line of width 1 that goes across the parent. More...
 
static TextView createTextView (Context context, String message, int size, int textColor, int backgroundColor)
 Creates a textview object. More...
 
static WebView createHtmlView (Context context, String html)
 This creates a new WebView object to display the HTML code in string. More...
 

Detailed Description

A series of static methods that create widgets for a table layout.

Author
jburton

Definition at line 21 of file TableLayoutUtils.java.

Member Function Documentation

protected static View com.jburto2.androidlookup.TableLayoutUtils.createHorizontalLine ( Context  context,
int  color 
)
staticprotected

Creates a horizontal line of height 1 that goes across the parent.

Parameters
context
colorNumerical representation of color. Use android.graphics.Color.rgb(red,green,blue)
Returns
Created horizontal line View Object.

Creating lines http://stackoverflow.com/questions/5092116/how-can-i-add-separating-lines-between-my-tablerows-that-are-created-programmati

Definition at line 48 of file TableLayoutUtils.java.

protected static WebView com.jburto2.androidlookup.TableLayoutUtils.createHtmlView ( Context  context,
String  html 
)
staticprotected

This creates a new WebView object to display the HTML code in string.

Parameters
context
htmlHTML code to be displayed. This is a string of the code itself, not a link to a file.
Returns
Created WebView object.

Definition at line 104 of file TableLayoutUtils.java.

protected static TableRow com.jburto2.androidlookup.TableLayoutUtils.createTableRow ( Context  context)
staticprotected

Creates a table row with no margins and no padding that will expand to the entire length of the parent TableLayout.

Parameters
context
Returns
Created TableRow.

http://stackoverflow.com/questions/2481455/set-margins-in-a-linearlayout-programmatically

Definition at line 29 of file TableLayoutUtils.java.

protected static TextView com.jburto2.androidlookup.TableLayoutUtils.createTextView ( Context  context,
String  message,
int  size,
int  textColor,
int  backgroundColor 
)
staticprotected

Creates a textview object.

Parameters
context
messageMessage to be displayed in the text view
sizeText size
textColorNumerical representation of color. Use android.graphics.Color.rgb(red,green,blue)
backgroundColorNumerical representation of color. Use android.graphics.Color.rgb(red,green,blue)
Returns
Created TextView Object.

Definition at line 85 of file TableLayoutUtils.java.

protected static View com.jburto2.androidlookup.TableLayoutUtils.createVerticalLine ( Context  context,
int  color 
)
staticprotected

Creates a vertical line of width 1 that goes across the parent.

Parameters
context
colorNumerical representation of color. Use android.graphics.Color.rgb(red,green,blue)
Returns
Created vertical line View Object.

Creating lines http://stackoverflow.com/questions/5092116/how-can-i-add-separating-lines-between-my-tablerows-that-are-created-programmati

Definition at line 65 of file TableLayoutUtils.java.


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