API Diff Specification
To Version: Android SDK 0.9_r1
From Version: Android SDK m5-rc14
Generated 2008.08.14 15:44

Class android.widget.TextView

Added interface android.view.ViewTreeObserver.OnPreDrawListener.

Removed Constructors
android.widget(Context, AttributeSet, Map)  
android.widget(Context, AttributeSet, Map, int)  
 

Added Constructors
TextView(Context, AttributeSet)  
TextView(Context, AttributeSet, int)  
 

Removed Methods
InputMethod getInputMethod() @return the current input method for this TextView.
void makeNewLayout(int, Metrics) The width passed in is now the desired layout width, not the full view width with padding.
Parcelable onFreeze()  
void onThaw(Parcelable)  
void setAlignment(Alignment) Sets the alignment of this view's text.
void setHiliteColor(int) Sets the color used to display the selection highlight.
void setInputMethod(InputMethod) Sets the input method to be used with this TextView.
void setText(Cursor, int) Set the text to the contents of a particular column in the cursor, keeping the data in the cursor updated as edits happen in the text.
void setText(Cursor, int, BufferType) Set the text to the contents of a particular column in the cursor, keeping the data in the cursor updated as edits happen in the text.
void setTextKeepState(Cursor, int) Like .setText(Cursor, int), except any current state of the text view (such as cursor position) is returned with the new text.
void setTextKeepState(Cursor, int, BufferType) Like .setText(Cursor, int, android.widget.TextView.BufferType), except any current state of the text view (such as cursor position) is returned with the new text.
 

Added Methods
int getCompoundDrawablePadding() Returns the padding between the compound drawables and the text.
Drawable[] getCompoundDrawables() Returns drawables for the left, top, right, and bottom borders.
int getCompoundPaddingBottom() Returns the bottom padding of the view, plus space for the bottom Drawable if any.
int getCompoundPaddingLeft() Returns the left padding of the view, plus space for the left Drawable if any.
int getCompoundPaddingRight() Returns the right padding of the view, plus space for the right Drawable if any.
int getCompoundPaddingTop() Returns the top padding of the view, plus space for the top Drawable if any.
TruncateAt getEllipsize() Returns where, if anywhere, words that are longer than the view is wide should be ellipsized.
CharSequence getError() Returns the error message that was set to be displayed with .setError, or null if no error was set or if it the error was cleared by the widget after user input.
int getExtendedPaddingBottom() Returns the extended bottom padding of the view, including both the bottom Drawable if any and any extra space to keep more than maxLines of text from showing.
int getExtendedPaddingTop() Returns the extended top padding of the view, including both the top Drawable if any and any extra space to keep more than maxLines of text from showing.
int getGravity() Returns the horizontal and vertical alignment of this TextView.
CharSequence getHint() Returns the hint that is displayed when the text of the TextView is empty.
KeyListener getKeyListener() @return the current key listener for this TextView.
ColorStateList getLinkTextColors()

Returns the color used to paint links in the text.

boolean getLinksClickable() Returns whether the movement method will automatically be set to LinkMovementMethod if .setAutoLinkMask has been set to nonzero and links are detected in .setText.
int getTotalPaddingBottom() Returns the total bottom padding of the view, including the bottom Drawable if any, the extra space to keep more than maxLines from showing, and the vertical offset for gravity, if any.
int getTotalPaddingLeft() Returns the total left padding of the view, including the left Drawable if any.
int getTotalPaddingRight() Returns the total right padding of the view, including the right Drawable if any.
int getTotalPaddingTop() Returns the total top padding of the view, including the top Drawable if any, the extra space to keep more than maxLines from showing, and the vertical offset for gravity, if any.
URLSpan[] getUrls() Returns the list of URLSpans attached to the text (by Linkify or otherwise) if any.
void onCreateContextMenu(ContextMenu)  
boolean onKeyShortcut(int, KeyEvent)  
boolean onPreDraw() {@inheritDoc}
void onRestoreInstanceState(Parcelable)  
Parcelable onSaveInstanceState()  
void setCompoundDrawablePadding(int) Sets the size of the padding between the compound drawables and the text.
void setCompoundDrawables(Drawable, Drawable, Drawable, Drawable) Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text.
void setCompoundDrawablesWithIntrinsicBounds(Drawable, Drawable, Drawable, Drawable) Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text.
void setEditableFactory(Factory) Sets the Factory used to create new Editables.
void setEllipsize(TruncateAt) Causes words in the text that are longer than the view is wide to be ellipsized instead of broken in the middle.
void setError(CharSequence) Sets the right-hand compound drawable of the TextView to the "error" icon and sets an error message that will be displayed in a popup when the TextView has focus.
void setError(CharSequence, Drawable) Sets the right-hand compound drawable of the TextView to the specified icon and sets an error message that will be displayed in a popup when the TextView has focus.
boolean setFrame(int, int, int, int)  
void setHighlightColor(int) Sets the color used to display the selection highlight.
void setKeyListener(KeyListener) Sets the key listener to be used with this TextView.
void setLinkTextColor(ColorStateList) Sets the color of links in the text.
void setLinkTextColor(int) Sets the color of links in the text.
void setLinksClickable(boolean) Sets whether the movement method will automatically be set to LinkMovementMethod if .setAutoLinkMask has been set to nonzero and links are detected in .setText.
void setSpannableFactory(Factory) Sets the Factory used to create new Spannables.
void setText(char[], int, int) Sets the TextView to display the specified slice of the specified char array.
void setTypeface(Typeface, int) Sets the typeface and style in which the text should be displayed, and turns on the fake bold and italic bits in the Paint if the Typeface that you provided does not have all the bits in the style that you specified.
 

Changed Methods
void getFocusedRect(Rect) Method was inherited from android.view.View, but is now defined locally.  
ColorStateList getHintTextColors() Change in return type from android.graphics.ColorStateList to android.content.res.ColorStateList.

Return the color used to paint the hint text.

int getTextColor(Context, TypedArray, int) Change in signature from (Context, StyledAttributes, int) to (Context, TypedArray, int).
Returns the default color from the TextView_textColor attribute from the AttributeSet, if set, or the default color from the TextAppearance_textColor from the TextView_textAppearance attribute, if TextView_textColor was not set directly.
boolean performLongClick() Method was inherited from android.view.View, but is now defined locally.  
ColorStateList getTextColors() Change in return type from android.graphics.ColorStateList to android.content.res.ColorStateList.
Return the set of text colors.
ColorStateList getTextColors(Context, TypedArray) Change in return type from android.graphics.ColorStateList to android.content.res.ColorStateList.
Change in signature from (Context, StyledAttributes) to (Context, TypedArray).
Returns the TextView_textColor attribute from the Resources.StyledAttributes, if set, or the TextAppearance_textColor from the TextView_textAppearance attribute, if TextView_textColor was not set directly.
void setHintTextColor(ColorStateList) Change in signature from android.graphics.ColorStateList to android.content.res.ColorStateList.
Sets the color of the hint text.
void setTextColor(ColorStateList) Change in signature from android.graphics.ColorStateList to android.content.res.ColorStateList.
Sets the text color.
 

©2008 Google - Code Home - Site Terms of Service - Privacy Policy
Generated by JDiff