| java.lang.Object | ||
| ↳ | android.view.View | |
| ↳ | android.widget.TextView | |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Displays text to the user and optionally allows them to edit it. A TextView
is a complete text editor, however the basic class is configured to not
allow editing; see EditText for a subclass that configures the text
view for editing.
XML attributes
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| TextView.BufferType | |||||||||||
| TextView.OnEditorActionListener | Interface definition for a callback to be invoked when an action is performed on the editor. | ||||||||||
| TextView.SavedState | User interface state that is stored by TextView for implementing
onSaveInstanceState(). |
||||||||||
| XML Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| android:autoLink | setAutoLinkMask(int) | Controls whether links such as urls and email addresses are automatically found and converted to clickable links. | |||||||||
| android:autoText | setKeyListener(KeyListener) | If set, specifies that this TextView has a textual input method and automatically corrects some common spelling errors. | |||||||||
| android:bufferType | setText(CharSequence,TextView.BufferType) | Determines the minimum type that getText() will return. | |||||||||
| android:capitalize | setKeyListener(KeyListener) | If set, specifies that this TextView has a textual input method and should automatically capitalize what the user types. | |||||||||
| android:cursorVisible | setCursorVisible(boolean) | Makes the cursor visible (the default) or invisible. | |||||||||
| android:digits | setKeyListener(KeyListener) | If set, specifies that this TextView has a numeric input method and that these specific characters are the ones that it will accept. | |||||||||
| android:drawableBottom | setCompoundDrawablesWithIntrinsicBounds(int,int,int,int) | The drawable to be drawn below the text. | |||||||||
| android:drawableLeft | setCompoundDrawablesWithIntrinsicBounds(int,int,int,int) | The drawable to be drawn to the left of the text. | |||||||||
| android:drawablePadding | setCompoundDrawablePadding(int) | The padding between the drawables and the text. | |||||||||
| android:drawableRight | setCompoundDrawablesWithIntrinsicBounds(int,int,int,int) | The drawable to be drawn to the right of the text. | |||||||||
| android:drawableTop | setCompoundDrawablesWithIntrinsicBounds(int,int,int,int) | The drawable to be drawn above the text. | |||||||||
| android:editable | If set, specifies that this TextView has an input method. | ||||||||||
| android:editorExtras | setInputExtras(int) | Reference to an
<input-extras>
XML resource containing additional data to
supply to an input method, which is private to the implementation
of the input method. |
|||||||||
| android:ellipsize | setEllipsize(TextUtils.TruncateAt) | If set, causes words that are longer than the view is wide to be ellipsized instead of broken in the middle. | |||||||||
| android:ems | setEms(int) | Makes the TextView be exactly this many ems wide. | |||||||||
| android:freezesText | setFreezesText(boolean) | If set, the text view will include its current complete text inside of its frozen icicle in addition to meta-data such as the current cursor position. | |||||||||
| android:gravity | setGravity(int) | Specifies how to align the text by the view's x- and/or y-axis when the text is smaller than the view. | |||||||||
| android:height | setHeight(int) | Makes the TextView be exactly this many pixels tall. | |||||||||
| android:hint | setHint(int) | Hint text to display when the text is empty. | |||||||||
| android:imeActionId | setImeActionLabel(CharSequence,int) | Supply a value for
EditorInfo.actionId
used when an input method is connected to the text view. |
|||||||||
| android:imeActionLabel | setImeActionLabel(CharSequence,int) | Supply a value for
EditorInfo.actionLabel
used when an input method is connected to the text view. |
|||||||||
| android:imeOptions | setImeOptions(int) | Additional features you can enable in an IME associated with an editor to improve the integration with your application. | |||||||||
| android:includeFontPadding | setIncludeFontPadding(boolean) | Leave enough room for ascenders and descenders instead of using the font ascent and descent strictly. | |||||||||
| android:inputMethod | setKeyListener(KeyListener) | If set, specifies that this TextView should use the specified input method (specified by fully-qualified class name). | |||||||||
| android:inputType | setRawInputType(int) | The type of data being placed in a text field, used to help an input method decide how to let the user enter text. | |||||||||
| android:lineSpacingExtra | setLineSpacing(float,float) | Extra spacing between lines of text. | |||||||||
| android:lineSpacingMultiplier | setLineSpacing(float,float) | Extra spacing between lines of text, as a multiplier. | |||||||||
| android:lines | setLines(int) | Makes the TextView be exactly this many lines tall. | |||||||||
| android:linksClickable | setLinksClickable(boolean) | If set to false, keeps the movement method from being set to the link movement method even if autoLink causes links to be found. | |||||||||
| android:marqueeRepeatLimit | setMarqueeRepeatLimit(int) | The number of times to repeat the marquee animation. | |||||||||
| android:maxEms | setMaxEms(int) | Makes the TextView be at most this many ems wide. | |||||||||
| android:maxHeight | setMaxHeight(int) | Makes the TextView be at most this many pixels tall. | |||||||||
| android:maxLength | setFilters(InputFilter) | Set an input filter to constrain the text length to the specified number. | |||||||||
| android:maxLines | setMaxLines(int) | Makes the TextView be at most this many lines tall. | |||||||||
| android:maxWidth | setMaxWidth(int) | Makes the TextView be at most this many pixels wide. | |||||||||
| android:minEms | setMinEms(int) | Makes the TextView be at least this many ems wide. | |||||||||
| android:minHeight | setMinHeight(int) | Makes the TextView be at least this many pixels tall. | |||||||||
| android:minLines | setMinLines(int) | Makes the TextView be at least this many lines tall. | |||||||||
| android:minWidth | setMinWidth(int) | Makes the TextView be at least this many pixels wide. | |||||||||
| android:numeric | setKeyListener(KeyListener) | If set, specifies that this TextView has a numeric input method. | |||||||||
| android:password | setTransformationMethod(TransformationMethod) | Whether the characters of the field are displayed as password dots instead of themselves. | |||||||||
| android:phoneNumber | setKeyListener(KeyListener) | If set, specifies that this TextView has a phone number input method. | |||||||||
| android:privateImeOptions | setPrivateImeOptions(String) | An addition content type description to supply to the input method attached to the text view, which is private to the implementation of the input method. | |||||||||
| android:scrollHorizontally | setHorizontallyScrolling(boolean) | Whether the text is allowed to be wider than the view (and therefore can be scrolled horizontally). | |||||||||
| android:selectAllOnFocus | setSelectAllOnFocus(boolean) | If the text is selectable, select it all when the view takes focus instead of moving the cursor to the start or end. | |||||||||
| android:shadowColor | setShadowLayer(float,float,float,int) | Place a shadow of the specified color behind the text. | |||||||||
| android:shadowDx | setShadowLayer(float,float,float,int) | Horizontal offset of the shadow. | |||||||||
| android:shadowDy | setShadowLayer(float,float,float,int) | Vertical offset of the shadow. | |||||||||
| android:shadowRadius | setShadowLayer(float,float,float,int) | Radius of the shadow. | |||||||||
| android:singleLine | setTransformationMethod(TransformationMethod) | Constrains the text to a single horizontally scrolling line instead of letting it wrap onto multiple lines, and advances focus instead of inserting a newline when you press the enter key. | |||||||||
| android:text | setText(CharSequence,TextView.BufferType) | Text to display. | |||||||||
| android:textAllCaps | setAllCaps(boolean) | Present the text in ALL CAPS. | |||||||||
| android:textAppearance | Base text color, typeface, size, and style. | ||||||||||
| android:textColor | setTextColor(int) | Text color. | |||||||||
| android:textColorHighlight | setHighlightColor(int) | Color of the text selection highlight. | |||||||||
| android:textColorHint | setHintTextColor(int) | Color of the hint text. | |||||||||
| android:textColorLink | setLinkTextColor(int) | Text color for links. | |||||||||
| android:textIsSelectable | isTextSelectable() | Indicates that the content of a non-editable text can be selected. | |||||||||
| android:textScaleX | setTextScaleX(float) | Sets the horizontal scaling factor for the text. | |||||||||
| android:textSize | setTextSize(int,float) | Size of the text. | |||||||||
| android:textStyle | setTypeface(Typeface) | Style (bold, italic, bolditalic) for the text. | |||||||||
| android:typeface | setTypeface(Typeface) | Typeface (normal, sans, serif, monospace) for the text. | |||||||||
| android:width | setWidth(int) | Makes the TextView be exactly this many pixels wide. | |||||||||
|
[Expand]
Inherited XML Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.View
| |||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.View
| |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.View
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a TextWatcher to the list of those whose methods are called
whenever this TextView's text changes.
| |||||||||||
Convenience method: Append the specified text to the TextView's
display buffer, upgrading it to BufferType.EDITABLE if it was
not already editable.
| |||||||||||
Convenience method: Append the specified text slice to the TextView's
display buffer, upgrading it to BufferType.EDITABLE if it was
not already editable.
| |||||||||||
Move the point, specified by the offset, into the view if it is needed.
| |||||||||||
Cancels a pending long press.
| |||||||||||
Use
BaseInputConnection.removeComposingSpans() to remove any IME composing
state from this text view. | |||||||||||
Called by a parent to request that a child update its values for mScrollX
and mScrollY if necessary.
| |||||||||||
Prints information about this view in the log output, with the tag
VIEW_LOG_TAG. | |||||||||||
Returns true, only while processing a touch gesture, if the initial
touch down event caused focus to move to the text view and as a result
its selection changed.
| |||||||||||
If this TextView contains editable content, extract a portion of it
based on the information in request in to outText.
| |||||||||||
Finds the Views that contain given text.
| |||||||||||
Gets the autolink mask of the text.
| |||||||||||
Return the offset of the widget's text baseline from the widget's top boundary. | |||||||||||
Returns the padding between the compound drawables and the text.
| |||||||||||
Returns drawables for the left, top, right, and bottom borders.
| |||||||||||
Returns the bottom padding of the view, plus space for the bottom
Drawable if any.
| |||||||||||
Returns the left padding of the view, plus space for the left
Drawable if any.
| |||||||||||
Returns the right padding of the view, plus space for the right
Drawable if any.
| |||||||||||
Returns the top padding of the view, plus space for the top
Drawable if any.
| |||||||||||
Return the current color selected to paint the hint text. | |||||||||||
Return the current color selected for normal text. | |||||||||||
Retrieves the value set in
setCustomSelectionActionModeCallback(ActionMode.Callback). | |||||||||||
Return the text the TextView is displaying as an Editable object.
| |||||||||||
Returns where, if anywhere, words that are longer than the view
is wide should be ellipsized.
| |||||||||||
Returns the error message that was set to be displayed with
setError(CharSequence), or null if no error was set
or if it the error was cleared by the widget after user input. | |||||||||||
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.
| |||||||||||
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.
| |||||||||||
Returns the current list of input filters.
| |||||||||||
When a view has focus and the user navigates away from it, the next view is searched for
starting from the rectangle filled in by this method.
| |||||||||||
Return whether this text view is including its entire text contents
in frozen icicles.
| |||||||||||
Returns the horizontal and vertical alignment of this TextView.
| |||||||||||
Returns the hint that is displayed when the text of the TextView
is empty.
| |||||||||||
Return the color used to paint the hint text. | |||||||||||
Get the IME action ID previous set with
setImeActionLabel(CharSequence, int). | |||||||||||
Get the IME action label previous set with
setImeActionLabel(CharSequence, int). | |||||||||||
Get the type of the IME editor.
| |||||||||||
Retrieve the input extras currently associated with the text view, which
can be viewed as well as modified.
| |||||||||||
Get the type of the content.
| |||||||||||
Return the baseline for the specified line (0...getLineCount() - 1)
If bounds is not null, return the top, left, right, bottom extents
of the specified line in it.
| |||||||||||
Return the number of lines of text, or 0 if the internal Layout has not
been built.
| |||||||||||
Returns the color used to paint links in the text. | |||||||||||
Returns whether the movement method will automatically be set to
LinkMovementMethod if setAutoLinkMask(int) has been
set to nonzero and links are detected in setText(char[], int, int). | |||||||||||
Get the character offset closest to the specified absolute position.
| |||||||||||
Get the private type of the content.
| |||||||||||
Convenience for
getSelectionEnd(CharSequence). | |||||||||||
Convenience for
getSelectionStart(CharSequence). | |||||||||||
Return the text the TextView is displaying.
| |||||||||||
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.
| |||||||||||
Return the set of text colors.
| |||||||||||
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.
| |||||||||||
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.
| |||||||||||
Returns the total left padding of the view, including the left
Drawable if any.
| |||||||||||
Returns the total right padding of the view, including the right
Drawable if any.
| |||||||||||
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.
| |||||||||||
Returns the list of URLSpans attached to the text
(by
Linkify or otherwise) if any. | |||||||||||
Return true iff there is a selection inside this text view.
| |||||||||||
Invalidates the specified Drawable.
| |||||||||||
Returns whether this text view is a current input method target.
| |||||||||||
Return whether or not suggestions are enabled on this TextView.
| |||||||||||
When a TextView is used to display a useful piece of information to the user (such as a
contact's address), it should be made selectable, so that the user can select and copy this
content.
| |||||||||||
Call
Drawable.jumpToCurrentState()
on all Drawable objects associated with this view. | |||||||||||
Returns the length, in characters, of the text managed by this TextView
| |||||||||||
Move the cursor, if needed, so that it is at an offset that is visible
to the user.
| |||||||||||
Called by the framework in response to a request to begin a batch
of edit operations through a call to link
beginBatchEdit(). | |||||||||||
Check whether the called view is a text editor, in which case it
would make sense to automatically display a soft input window for
it.
| |||||||||||
Called by the framework in response to a text completion from
the current input method, provided by it calling
InputConnection.commitCompletion(). | |||||||||||
Called by the framework in response to a text auto-correction (such as fixing a typo using a
a dictionnary) from the current input method, provided by it calling
commitCorrection(CorrectionInfo) InputConnection.commitCorrection()}. | |||||||||||
Create a new InputConnection for an InputMethod to interact
with the view.
| |||||||||||
Handles drag events sent by the system following a call to
startDrag(). | |||||||||||
Called when an attached input method calls
InputConnection.performEditorAction()
for this text view. | |||||||||||
Called by the framework in response to a request to end a batch
of edit operations through a call to link
endBatchEdit(). | |||||||||||
Called after
onStartTemporaryDetach() when the container is done
changing the view. | |||||||||||
Implement this method to handle generic motion events.
| |||||||||||
Initializes an
AccessibilityEvent with information about
this View which is the event source. | |||||||||||
Initializes an
AccessibilityNodeInfo with information about this view. | |||||||||||
Default implementation of
KeyEvent.Callback.onKeyDown(): perform press of the view
when KEYCODE_DPAD_CENTER or KEYCODE_ENTER
is released, if the view is enabled and clickable. | |||||||||||
Default implementation of
KeyEvent.Callback.onKeyMultiple(): always returns false (doesn't handle
the event). | |||||||||||
Handle a key event before it is processed by any input method
associated with the view hierarchy.
| |||||||||||
Called on the focused view when a key shortcut event is not handled.
| |||||||||||
Default implementation of
KeyEvent.Callback.onKeyUp(): perform clicking of the view
when KEYCODE_DPAD_CENTER or
KEYCODE_ENTER is released. | |||||||||||
Called from
dispatchPopulateAccessibilityEvent(AccessibilityEvent)
giving a chance to this View to populate the accessibility event with its
text content. | |||||||||||
Callback method to be invoked when the view tree is about to be drawn.
| |||||||||||
Called by the framework in response to a private command from the
current method, provided by it calling
InputConnection.performPrivateCommand(). | |||||||||||
Hook allowing a view to re-apply a representation of its internal state that had previously
been generated by
onSaveInstanceState(). | |||||||||||
Hook allowing a view to generate a representation of its internal state
that can later be used to create a new instance with that same state.
| |||||||||||
This is called when a container is going to temporarily detach a child, with
ViewGroup.detachViewFromParent. | |||||||||||
Called when a context menu option for the text view is selected.
| |||||||||||
Implement this method to handle touch screen motion events.
| |||||||||||
Implement this method to handle trackball motion events.
| |||||||||||
Called when the window containing this view gains or loses focus.
| |||||||||||
Call this view's OnLongClickListener, if it is defined.
| |||||||||||
Removes the specified TextWatcher from the list of those whose
methods are called
whenever this TextView's text changes.
| |||||||||||
Sends an accessibility event of the given type.
| |||||||||||
Sets the properties of this field to transform input to ALL CAPS
display.
| |||||||||||
Sets the autolink mask of the text.
| |||||||||||
Sets the size of the padding between the compound drawables and
the text.
| |||||||||||
Sets the Drawables (if any) to appear to the left of, above,
to the right of, and below the text.
| |||||||||||
Sets the Drawables (if any) to appear to the left of, above,
to the right of, and below the text.
| |||||||||||
Sets the Drawables (if any) to appear to the left of, above,
to the right of, and below the text.
| |||||||||||
Set whether the cursor is visible.
| |||||||||||
If provided, this ActionMode.Callback will be used to create the ActionMode when text
selection is initiated in this View.
| |||||||||||
Sets the Factory used to create new Editables.
| |||||||||||
Causes words in the text that are longer than the view is wide
to be ellipsized instead of broken in the middle.
| |||||||||||
Makes the TextView exactly this many ems wide
| |||||||||||
Set the enabled state of this view.
| |||||||||||
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.
| |||||||||||
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.
| |||||||||||
Apply to this text view the given extracted text, as previously
returned by
extractText(ExtractedTextRequest, ExtractedText). | |||||||||||
Sets the list of input filters that will be used if the buffer is
Editable.
| |||||||||||
Control whether this text view saves its entire text contents when
freezing to an icicle, in addition to dynamic state such as cursor
position.
| |||||||||||
Sets the horizontal alignment of the text and the
vertical gravity that will be used when there is extra space
in the TextView beyond what is required for the text itself.
| |||||||||||
Makes the TextView exactly this many pixels tall.
| |||||||||||
Sets the color used to display the selection highlight.
| |||||||||||
Sets the text to be displayed when the text of the TextView is empty.
| |||||||||||
Sets the text to be displayed when the text of the TextView is empty,
from a resource.
| |||||||||||
Sets the color of the hint text.
| |||||||||||
Sets the color of the hint text.
| |||||||||||
Sets whether the text should be allowed to be wider than the
View is.
| |||||||||||
Change the custom IME action associated with the text view, which
will be reported to an IME with
actionLabel
and actionId when it has focus. | |||||||||||
Change the editor type integer associated with the text view, which
will be reported to an IME with
imeOptions when it
has focus. | |||||||||||
Set whether the TextView includes extra top and bottom padding to make
room for accents that go above the normal ascent and descent.
| |||||||||||
Set the extra input data of the text, which is the
TextBoxAttribute.extras
Bundle that will be filled in when creating an input connection. | |||||||||||
Set the type of the content with a constant as defined for
inputType. | |||||||||||
Sets the key listener to be used with this TextView.
| |||||||||||
Sets line spacing for this TextView.
| |||||||||||
Makes the TextView exactly this many lines tall.
| |||||||||||
Sets the color of links in the text.
| |||||||||||
Sets the color of links in the text.
| |||||||||||
Sets whether the movement method will automatically be set to
LinkMovementMethod if setAutoLinkMask(int) has been
set to nonzero and links are detected in setText(char[], int, int). | |||||||||||
Sets how many times to repeat the marquee animation.
| |||||||||||
Makes the TextView at most this many ems wide
| |||||||||||
Makes the TextView at most this many pixels tall.
| |||||||||||
Makes the TextView at most this many lines tall.
| |||||||||||
Makes the TextView at most this many pixels wide
| |||||||||||
Makes the TextView at least this many ems wide
| |||||||||||
Makes the TextView at least this many pixels tall.
| |||||||||||
Makes the TextView at least this many lines tall.
| |||||||||||
Makes the TextView at least this many pixels wide
| |||||||||||
Sets the movement method (arrow key handler) to be used for
this TextView.
| |||||||||||
Set a special listener to be called when an action is performed
on the text view.
| |||||||||||
Sets the padding.
| |||||||||||
Sets flags on the Paint being used to display the text and
reflows the text if they are different from the old flags.
| |||||||||||
Set the private content type of the text, which is the
EditorInfo.privateImeOptions
field that will be filled in when creating an input connection. | |||||||||||
Directly change the content type integer of the text view, without
modifying any other state.
| |||||||||||
Set the TextView so that when it takes focus, all the text is
selected.
| |||||||||||
Changes the selection state of this view.
| |||||||||||
Gives the text a shadow of the specified radius and color, the specified
distance from its normal position.
| |||||||||||
Sets the properties of this field (lines, horizontally scrolling,
transformation method) to be for a single-line input.
| |||||||||||
If true, sets the properties of this field (number of lines, horizontally scrolling,
transformation method) to be for a single-line input; if false, restores these to the default
conditions.
| |||||||||||
Sets the Factory used to create new Spannables.
| |||||||||||
Sets the TextView to display the specified slice of the specified
char array.
| |||||||||||
Sets the string value of the TextView.
| |||||||||||
Sets the text that this TextView is to display (see
setText(CharSequence)) and also sets whether it is stored
in a styleable/spannable buffer and whether it is editable. | |||||||||||
Sets the text color, size, style, hint color, and highlight color
from the specified TextAppearance resource.
| |||||||||||
Sets the text color.
| |||||||||||
Sets the text color for all the states (normal, selected,
focused) to be this color.
| |||||||||||
Sets whether or not (default) the content of this view is selectable by the user.
| |||||||||||
Like
setText(CharSequence),
except that the cursor position (if any) is retained in the new text. | |||||||||||
Like
setText(CharSequence, android.widget.TextView.BufferType),
except that the cursor position (if any) is retained in the new text. | |||||||||||
Sets the extent by which text should be stretched horizontally.
| |||||||||||
Set the default text size to the given value, interpreted as "scaled
pixel" units.
| |||||||||||
Set the default text size to a given unit and value.
| |||||||||||
Sets the transformation that is applied to the text that this
TextView is displaying.
| |||||||||||
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.
| |||||||||||
Sets the typeface and style in which the text should be displayed.
| |||||||||||
Makes the TextView exactly this many pixels wide.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Compute the horizontal range that the horizontal scrollbar represents. | |||||||||||
Compute the vertical extent of the horizontal scrollbar's thumb within the vertical range. | |||||||||||
Compute the vertical range that the vertical scrollbar represents. | |||||||||||
This function is called whenever the state of the view changes in such
a way that it impacts the state of drawables being shown.
| |||||||||||
Amount by which to extend the bottom fading region.
| |||||||||||
Subclasses override this to specify that they have a KeyListener
by default even if not specifically called for in the XML options.
| |||||||||||
Subclasses override this to specify a default movement method.
| |||||||||||
Returns the strength, or intensity, of the left faded edge.
| |||||||||||
Amount by which to extend the left fading region.
| |||||||||||
Returns the strength, or intensity, of the right faded edge.
| |||||||||||
Amount by which to extend the right fading region.
| |||||||||||
Amount by which to extend the top fading region.
| |||||||||||
If the View draws content inside its padding and enables fading edges,
it needs to support padding offsets.
| |||||||||||
This is called when the view is attached to a window.
| |||||||||||
Generate the new
Drawable state for
this view. | |||||||||||
This is called when the view is detached from a window.
| |||||||||||
Implement this to do your drawing.
| |||||||||||
Called by the view system when the focus state of this view changes.
| |||||||||||
Measure the view and its content to determine the measured width and the measured height. | |||||||||||
This is called in response to an internal scroll in this view (i.e., the
view scrolled its own contents).
| |||||||||||
This method is called when the selection has changed, in case any
subclasses would like to know.
| |||||||||||
Invoked if there is a Transform that involves alpha.
| |||||||||||
This method is called when the text is changed, in case any subclasses
would like to know.
| |||||||||||
Called when the visibility of the view or an ancestor of the view is changed.
| |||||||||||
Reset the resolved layout direction.
| |||||||||||
Subclasses will need to override this method to implement their own way of resolving
drawables depending on the layout direction.
| |||||||||||
Resolve the text direction.
| |||||||||||
Assign a size and position to this view.
| |||||||||||
If your view subclass is displaying its own Drawable objects, it should
override this function and return true for any Drawable it is
displaying.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.view.View
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.graphics.drawable.Drawable.Callback
| |||||||||||
From interface
android.view.KeyEvent.Callback
| |||||||||||
From interface
android.view.ViewTreeObserver.OnPreDrawListener
| |||||||||||
From interface
android.view.accessibility.AccessibilityEventSource
| |||||||||||