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... | |
A series of static methods that create widgets for a table layout.
Definition at line 21 of file TableLayoutUtils.java.
|
staticprotected |
Creates a horizontal line of height 1 that goes across the parent.
| context | |
| color | Numerical representation of color. Use android.graphics.Color.rgb(red,green,blue) |
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.
|
staticprotected |
This creates a new WebView object to display the HTML code in string.
| context | |
| html | HTML code to be displayed. This is a string of the code itself, not a link to a file. |
Definition at line 104 of file TableLayoutUtils.java.
|
staticprotected |
Creates a table row with no margins and no padding that will expand to the entire length of the parent TableLayout.
| context |
http://stackoverflow.com/questions/2481455/set-margins-in-a-linearlayout-programmatically
Definition at line 29 of file TableLayoutUtils.java.
|
staticprotected |
Creates a textview object.
| context | |
| message | Message to be displayed in the text view |
| size | Text size |
| textColor | Numerical representation of color. Use android.graphics.Color.rgb(red,green,blue) |
| backgroundColor | Numerical representation of color. Use android.graphics.Color.rgb(red,green,blue) |
Definition at line 85 of file TableLayoutUtils.java.
|
staticprotected |
Creates a vertical line of width 1 that goes across the parent.
| context | |
| color | Numerical representation of color. Use android.graphics.Color.rgb(red,green,blue) |
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.
1.8.6