LinearLayout
java.lang.Object
LinearLayout
A view that takes an arbitrary Object
and renders it the best way it
knows how. The following types are currently supported:
String
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
FlexibleContentView(Context context)
| ||||||||||
|
FlexibleContentView(Context context, AttributeSet attrs)
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int
|
getMaxHeight()
Gets the maximum height of the view.
| ||||||||||
int
|
getMaxWidth()
Gets the maximum width of the view.
| ||||||||||
int
|
getTextColor()
Gets the color used to render the view's content when it is text.
| ||||||||||
float
|
getTextSize()
Gets the text size used to render the view's content when it is text.
| ||||||||||
void
|
setContent(Object object)
Sets the content that is displayed by this view, changing the type of
the internal view to render it correctly.
| ||||||||||
void
|
setMaxHeight(int maxHeight)
Sets the maximum height of the view.
| ||||||||||
void
|
setMaxWidth(int maxWidth)
Sets the maximum width of the view.
| ||||||||||
void
|
setTextColor(int color)
Sets the color used to render the view's content when it is text.
| ||||||||||
void
|
setTextSize(float size)
Sets the text size used to render the view's content when it is text.
| ||||||||||
void
|
setTextSize(int unit, float size)
Sets the text size used to render the view's content when it is text.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void
|
onMeasure(int widthMeasureSpec, int heightMeasureSpec)
|
Methods inherited from
class
java.lang.Object
| |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Object
|
clone()
| ||||||||||
boolean
|
equals(Object arg0)
| ||||||||||
void
|
finalize()
| ||||||||||
final
Class<?>
|
getClass()
| ||||||||||
int
|
hashCode()
| ||||||||||
final
void
|
notify()
| ||||||||||
final
void
|
notifyAll()
| ||||||||||
String
|
toString()
| ||||||||||
final
void
|
wait()
| ||||||||||
final
void
|
wait(long arg0, int arg1)
| ||||||||||
final
void
|
wait(long arg0)
|
Gets the maximum height of the view.
the maximum height of the view
Gets the maximum width of the view.
the maximum width of the view
Gets the color used to render the view's content when it is text.
the color used to render the view's content when it is text
Gets the text size used to render the view's content when it is text.
the text size used to render the view's content when it is text
Sets the content that is displayed by this view, changing the type of the internal view to render it correctly.
Sets the maximum height of the view.
Sets the maximum width of the view.
Sets the color used to render the view's content when it is text.
Sets the text size used to render the view's content when it is text.
Sets the text size used to render the view's content when it is text.