|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.TICO.label
public class label
Defines a label and its attributes.
| Field Summary | |
|---|---|
static int |
HORIZONTAL_FIT_TEXT_MARGIN
|
static int |
VERTICAL_FIT_TEXT_MARGIN
|
| Constructor Summary | |
|---|---|
label(int marginLeft,
int marginTop,
int frameSize,
String text,
float textSize,
Typeface typeface,
int textStyle,
Context context)
Creates a new label. |
|
| Method Summary | |
|---|---|
void |
addTo(RelativeLayout lay)
Add the label to a RelativeLayout |
void |
setBackgroundColor(int backgroundColor,
int gradient)
Set the background color and the gradient |
void |
setFrameColor(int frameColor)
Set the frame color of the label |
void |
setTextColor(int textColor)
Set the color of the text |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HORIZONTAL_FIT_TEXT_MARGIN
public static final int VERTICAL_FIT_TEXT_MARGIN
| Constructor Detail |
|---|
public label(int marginLeft,
int marginTop,
int frameSize,
String text,
float textSize,
Typeface typeface,
int textStyle,
Context context)
label.
marginLeft - The number marginLeft of pixels of the left marginmarginTop - The number marginTop of pixels of the top marginframeSize - The size of the frame in pixels of the labeltext - The text of the labeltextSize - The desired size of the text in the labeltypeface - The font of the texttextStyle - The style of the textcontext - The context that contains the textArea| Method Detail |
|---|
public void setTextColor(int textColor)
color - The integer that defines the desired color for the textpublic void setFrameColor(int frameColor)
color - The color of the label frame
public void setBackgroundColor(int backgroundColor,
int gradient)
backgroundColor - The color of the backgroundgradient - The gradient color of the backgroundpublic void addTo(RelativeLayout lay)
lay - Relative layout that will contain the label
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||