Switch Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A Switch is a two-state toggle widget.
[Android.Runtime.Register("android/widget/Switch", DoNotGenerateAcw=true)]
public class Switch : Android.Widget.CompoundButton
[<Android.Runtime.Register("android/widget/Switch", DoNotGenerateAcw=true)>]
type Switch = class
inherit CompoundButton
- Inheritance
- Attributes
Remarks
A Switch is a two-state toggle widget. Users can drag the switch "thumb" back and forth to select either of two options or simply tap the switch to toggle between options.
The #setText(CharSequence) text
property controls the text of the switch label. The #setTextOn(CharSequence) textOn
and #setTextOff(CharSequence) textOff
properties control the text of the thumb. The #setTextAppearance(int) textAppearance
property and the related #setTypeface(android.graphics.Typeface) setTypeface()
methods control the typeface and style of the switch label. The #setSwitchTextAppearance(android.content.Context, int) switchTextAppearance
property and the related #setSwitchTypeface(android.graphics.Typeface) setSwitchTypeface()
methods control the typeface and style of the thumb text.
<p class="note"><b>Note:</b> The thumb text is displayed only if the showText
https://developer.android.com/reference/android/widget/Switch#attr_android:showText attribute is set to true
. See also #setShowText(boolean)
and #getShowText()
.</p>
androidx.appcompat.widget.SwitchCompat
provides backward compatibility down to Android 4.0 (API level 14).
For more information, see the Toggle Buttons guide.
Java documentation for android.widget.Switch
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
Switch(Context, IAttributeSet, Int32, Int32) |
Construct a new Switch with a default style determined by the given theme attribute or style resource, overriding specific style attributes as requested. |
Switch(Context, IAttributeSet, Int32) |
Construct a new Switch with a default style determined by the given theme attribute, overriding specific style attributes as requested. |
Switch(Context, IAttributeSet) |
Construct a new Switch with default styling, overriding specific style attributes as requested. |
Switch(Context) |
Construct a new Switch with default styling. |
Switch(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Fields
AccessibilityDataSensitiveAuto |
Obsolete.
Automatically determine whether the view should only allow interactions from
|
AccessibilityDataSensitiveNo |
Obsolete.
Allow interactions from all |
AccessibilityDataSensitiveYes |
Obsolete.
Only allow interactions from |
AccessibilityLiveRegionAssertive |
Obsolete.
Live region mode specifying that accessibility services should interrupt ongoing speech to immediately announce changes to this view. (Inherited from View) |
AccessibilityLiveRegionNone |
Obsolete.
Live region mode specifying that accessibility services should not automatically announce changes to this view. (Inherited from View) |
AccessibilityLiveRegionPolite |
Obsolete.
Live region mode specifying that accessibility services should announce changes to this view. (Inherited from View) |
AutofillFlagIncludeNotImportantViews |
Obsolete.
Flag requesting you to add views that are marked as not important for autofill
(see |
AutofillHintCreditCardExpirationDate |
Hint indicating that this view can be autofilled with a credit card expiration date. (Inherited from View) |
AutofillHintCreditCardExpirationDay |
Hint indicating that this view can be autofilled with a credit card expiration day. (Inherited from View) |
AutofillHintCreditCardExpirationMonth |
Hint indicating that this view can be autofilled with a credit card expiration month. (Inherited from View) |
AutofillHintCreditCardExpirationYear |
Hint indicating that this view can be autofilled with a credit card expiration year. (Inherited from View) |
AutofillHintCreditCardNumber |
Hint indicating that this view can be autofilled with a credit card number. (Inherited from View) |
AutofillHintCreditCardSecurityCode |
Hint indicating that this view can be autofilled with a credit card security code. (Inherited from View) |
AutofillHintEmailAddress |
Hint indicating that this view can be autofilled with an email address. (Inherited from View) |
AutofillHintName |
Hint indicating that this view can be autofilled with a user's real name. (Inherited from View) |
AutofillHintPassword |
Hint indicating that this view can be autofilled with a password. (Inherited from View) |
AutofillHintPhone |
Hint indicating that this view can be autofilled with a phone number. (Inherited from View) |
AutofillHintPostalAddress |
Hint indicating that this view can be autofilled with a postal address. (Inherited from View) |
AutofillHintPostalCode |
Hint indicating that this view can be autofilled with a postal code. (Inherited from View) |
AutofillHintUsername |
Hint indicating that this view can be autofilled with a username. (Inherited from View) |
AutofillTypeDate |
Obsolete.
Autofill type for a field that contains a date, which is represented by a long representing
the number of milliseconds since the standard base time known as "the epoch", namely
January 1, 1970, 00:00:00 GMT (see |
AutofillTypeList |
Obsolete.
Autofill type for a selection list field, which is filled by an |
AutofillTypeNone |
Obsolete.
Autofill type for views that cannot be autofilled. (Inherited from View) |
AutofillTypeText |
Obsolete.
Autofill type for a text field, which is filled by a |
AutofillTypeToggle |
Obsolete.
Autofill type for a togglable field, which is filled by a |
DragFlagAccessibilityAction |
Obsolete.
Flag indicating that the drag was initiated with
|
DragFlagGlobal |
Obsolete.
Flag indicating that a drag can cross window boundaries. (Inherited from View) |
DragFlagGlobalPersistableUriPermission |
Obsolete.
When this flag is used with |
DragFlagGlobalPrefixUriPermission |
Obsolete.
When this flag is used with |
DragFlagGlobalUriRead |
Obsolete.
When this flag is used with |
DragFlagGlobalUriWrite |
Obsolete.
When this flag is used with |
DragFlagOpaque |
Obsolete.
Flag indicating that the drag shadow will be opaque. (Inherited from View) |
FindViewsWithContentDescription |
Obsolete.
Find find views that contain the specified content description. (Inherited from View) |
FocusableAuto |
Obsolete.
This view determines focusability automatically. (Inherited from View) |
FocusedSearchResultIndexNone |
A special index used for |
ImportantForAccessibilityAuto |
Obsolete.
Automatically determine whether a view is important for accessibility. (Inherited from View) |
ImportantForAccessibilityNo |
Obsolete.
The view is not important for accessibility. (Inherited from View) |
ImportantForAccessibilityNoHideDescendants |
Obsolete.
The view is not important for accessibility, nor are any of its descendant views. (Inherited from View) |
ImportantForAccessibilityYes |
Obsolete.
The view is important for accessibility. (Inherited from View) |
ImportantForAutofillAuto |
Obsolete.
Automatically determine whether a view is important for autofill. (Inherited from View) |
ImportantForAutofillNo |
Obsolete.
The view is not important for autofill, but its children (if any) will be traversed. (Inherited from View) |
ImportantForAutofillNoExcludeDescendants |
Obsolete.
The view is not important for autofill, and its children (if any) will not be traversed. (Inherited from View) |
ImportantForAutofillYes |
Obsolete.
The view is important for autofill, and its children (if any) will be traversed. (Inherited from View) |
ImportantForAutofillYesExcludeDescendants |
Obsolete.
The view is important for autofill, but its children (if any) will not be traversed. (Inherited from View) |
ImportantForContentCaptureAuto |
Obsolete.
Automatically determine whether a view is important for content capture. (Inherited from View) |
ImportantForContentCaptureNo |
Obsolete.
The view is not important for content capture, but its children (if any) will be traversed. (Inherited from View) |
ImportantForContentCaptureNoExcludeDescendants |
Obsolete.
The view is not important for content capture, and its children (if any) will not be traversed. (Inherited from View) |
ImportantForContentCaptureYes |
Obsolete.
The view is important for content capture, and its children (if any) will be traversed. (Inherited from View) |
ImportantForContentCaptureYesExcludeDescendants |
Obsolete.
The view is important for content capture, but its children (if any) will not be traversed. (Inherited from View) |
LayoutDirectionInherit |
Obsolete.
Horizontal layout direction of this view is inherited from its parent. (Inherited from View) |
LayoutDirectionLocale |
Obsolete.
Horizontal layout direction of this view is from deduced from the default language script for the locale. (Inherited from View) |
LayoutDirectionLtr |
Obsolete.
Horizontal layout direction of this view is from Left to Right. (Inherited from View) |
LayoutDirectionRtl |
Obsolete.
Horizontal layout direction of this view is from Right to Left. (Inherited from View) |
MeasuredHeightStateShift |
Bit shift of |
MeasuredSizeMask |
Bits of |
MeasuredStateMask |
Bits of |
MeasuredStateTooSmall |
Bit of |
NoId |
Used to mark a View that has no ID. (Inherited from View) |
NotFocusable |
Obsolete.
This view does not want keystrokes. (Inherited from View) |
OverScrollAlways |
Obsolete.
Always allow a user to over-scroll this view, provided it is a view that can scroll. (Inherited from View) |
OverScrollIfContentScrolls |
Obsolete.
Allow a user to over-scroll this view only if the content is large enough to meaningfully scroll, provided it is a view that can scroll. (Inherited from View) |
OverScrollNever |
Obsolete.
Never allow a user to over-scroll this view. (Inherited from View) |
ScreenStateOff |
Obsolete.
Indicates that the screen has changed state and is now off. (Inherited from View) |
ScreenStateOn |
Obsolete.
Indicates that the screen has changed state and is now on. (Inherited from View) |
ScrollAxisHorizontal |
Obsolete.
Indicates scrolling along the horizontal axis. (Inherited from View) |
ScrollAxisNone |
Obsolete.
Indicates no axis of view scrolling. (Inherited from View) |
ScrollAxisVertical |
Obsolete.
Indicates scrolling along the vertical axis. (Inherited from View) |
ScrollCaptureHintAuto |
Obsolete.
The content of this view will be considered for scroll capture if scrolling is possible. (Inherited from View) |
ScrollCaptureHintExclude |
Obsolete.
Explicitly exclude this view as a potential scroll capture target. (Inherited from View) |
ScrollCaptureHintExcludeDescendants |
Obsolete.
Explicitly exclude all children of this view as potential scroll capture targets. (Inherited from View) |
ScrollCaptureHintInclude |
Obsolete.
Explicitly include this view as a potential scroll capture target. (Inherited from View) |
SystemUiFlagFullscreen |
Flag for |
SystemUiFlagHideNavigation |
Flag for |
SystemUiFlagImmersive |
Flag for |
SystemUiFlagImmersiveSticky |
Flag for |
SystemUiFlagLayoutFullscreen |
Flag for |
SystemUiFlagLayoutHideNavigation |
Flag for |
SystemUiFlagLayoutStable |
Flag for |
SystemUiFlagLightNavigationBar |
Flag for |
SystemUiFlagLightStatusBar |
Flag for |
SystemUiFlagLowProfile |
Flag for |
SystemUiFlagVisible |
Special constant for |
SystemUiLayoutFlags |
Flags that can impact the layout in relation to system UI. (Inherited from View) |
TextAlignmentCenter |
Obsolete.
Center the paragraph, e. (Inherited from View) |
TextAlignmentGravity |
Obsolete.
Default for the root view. (Inherited from View) |
TextAlignmentInherit |
Obsolete.
Default text alignment. (Inherited from View) |
TextAlignmentResolvedDefault |
Obsolete.
Default resolved text alignment (Inherited from View) |
TextAlignmentTextEnd |
Obsolete.
Align to the end of the paragraph, e. (Inherited from View) |
TextAlignmentTextStart |
Obsolete.
Align to the start of the paragraph, e. (Inherited from View) |
TextAlignmentViewEnd |
Obsolete.
Align to the end of the view, which is ALIGN_RIGHT if the view's resolved layoutDirection is LTR, and ALIGN_LEFT otherwise. (Inherited from View) |
TextAlignmentViewStart |
Obsolete.
Align to the start of the view, which is ALIGN_LEFT if the view's resolved layoutDirection is LTR, and ALIGN_RIGHT otherwise. (Inherited from View) |
TextDirectionAnyRtl |
Obsolete.
Text direction is using "any-RTL" algorithm. (Inherited from View) |
TextDirectionFirstStrong |
Obsolete.
Text direction is using "first strong algorithm". (Inherited from View) |
TextDirectionFirstStrongLtr |
Obsolete.
Text direction is using "first strong algorithm". (Inherited from View) |
TextDirectionFirstStrongRtl |
Obsolete.
Text direction is using "first strong algorithm". (Inherited from View) |
TextDirectionInherit |
Obsolete.
Text direction is inherited through |
TextDirectionLocale |
Obsolete.
Text direction is coming from the system Locale. (Inherited from View) |
TextDirectionLtr |
Obsolete.
Text direction is forced to LTR. (Inherited from View) |
TextDirectionRtl |
Obsolete.
Text direction is forced to RTL. (Inherited from View) |
ViewLogTag |
The logging tag used by this class with android. (Inherited from View) |
Properties
AccessibilityClassName | (Inherited from View) |
AccessibilityClassNameFormatted |
Return the class name of this object to be used for accessibility purposes. (Inherited from View) |
AccessibilityHeading |
Gets whether this view is a heading for accessibility purposes. -or- Set if view is a heading for a section of content for accessibility purposes. (Inherited from View) |
AccessibilityLiveRegion |
Gets the live region mode for this View. -or- Sets the live region mode for this view. (Inherited from View) |
AccessibilityNodeProvider |
Gets the provider for managing a virtual view hierarchy rooted at this View
and reported to |
AccessibilityPaneTitle | (Inherited from View) |
AccessibilityPaneTitleFormatted |
Get the title of the pane for purposes of accessibility. -or- Visually distinct portion of a window with window-like semantics are considered panes for accessibility purposes. (Inherited from View) |
AccessibilityTraversalAfter |
Gets the id of a view after which this one is visited in accessibility traversal. -or- Sets the id of a view after which this one is visited in accessibility traversal. (Inherited from View) |
AccessibilityTraversalBefore |
Gets the id of a view before which this one is visited in accessibility traversal. -or- Sets the id of a view before which this one is visited in accessibility traversal. (Inherited from View) |
Activated |
Indicates the activation state of this view. -or- Changes the activated state of this view. (Inherited from View) |
AllowedHandwritingDelegatePackageName |
Returns the allowed package for delegate editor views for which this view may act as a
handwriting delegator, as set by |
AllowedHandwritingDelegatorPackageName |
Returns the allowed package for views which may act as a handwriting delegator for this
delegate editor view, as set by |
Alpha |
The opacity of the view. -or- Sets the opacity of the view to a value from 0 to 1, where 0 means the view is completely transparent and 1 means the view is completely opaque. (Inherited from View) |
Animation |
Get the animation currently associated with this view. -or- Sets the next animation to play for this view. (Inherited from View) |
AnimationMatrix |
Return the current transformation matrix of the view. -or- Changes the transformation matrix on the view. (Inherited from View) |
ApplicationWindowToken |
Retrieve a unique token identifying the top-level "real" window of the window that this view is attached to. (Inherited from View) |
ApplyWindowInsets | (Inherited from View) |
AttributeSourceResourceMap |
Returns the mapping of attribute resource ID to source resource ID where the attribute value was set. (Inherited from View) |
AutofillId |
Gets the unique, logical identifier of this view in the activity, for autofill purposes. -or- Sets the unique, logical identifier of this view in the activity, for autofill purposes. (Inherited from View) |
AutofillType |
Describes the autofill type of this view, so an
|
AutofillValue |
Gets the |
AutoHandwritingEnabled |
Return whether the View allows automatic handwriting initiation. -or- Set whether this view enables automatic handwriting initiation. (Inherited from View) |
AutoLinkMask |
Gets the autolink mask of the text. -or- Sets the autolink mask of the text. (Inherited from TextView) |
AutoSizeMaxTextSize | (Inherited from TextView) |
AutoSizeMinTextSize | (Inherited from TextView) |
AutoSizeStepGranularity | (Inherited from TextView) |
AutoSizeTextType |
Returns the type of auto-size set for this widget. (Inherited from TextView) |
Background |
Gets the background drawable -or- Set the background to a given Drawable, or remove the background. (Inherited from View) |
BackgroundTintBlendMode |
Return the blending mode used to apply the tint to the background
drawable, if specified. -or- Specifies the blending mode used to apply the tint specified by
|
BackgroundTintList |
Return the tint applied to the background drawable, if specified. -or- Applies a tint to the background drawable. (Inherited from View) |
BackgroundTintMode |
Return the blending mode used to apply the tint to the background drawable, if specified. (Inherited from View) |
Baseline |
Return the offset of the widget's text baseline from the widget's top boundary. (Inherited from View) |
Bottom |
Bottom position of this view relative to its parent. -or- Sets the bottom position of this view relative to its parent. (Inherited from View) |
BottomFadingEdgeStrength |
Returns the strength, or intensity, of the bottom faded edge. (Inherited from View) |
BottomPaddingOffset |
Amount by which to extend the bottom fading region. (Inherited from View) |
BreakStrategy |
Gets the current strategy for breaking paragraphs into lines. -or- Sets the break strategy for breaking paragraphs into lines. (Inherited from TextView) |
ButtonDrawable | (Inherited from CompoundButton) |
ButtonTintBlendMode |
Specifies the blending mode used to apply the tint specified by
|
ButtonTintList |
Applies a tint to the button drawable. (Inherited from CompoundButton) |
ButtonTintMode | (Inherited from CompoundButton) |
CameraDistance |
Gets the distance along the Z axis from the camera to this view. (Inherited from View) |
Checked |
Changes the checked state of this button. (Inherited from CompoundButton) |
Class |
Returns the runtime class of this |
Clickable |
Indicates whether this view reacts to click events or not. -or- Enables or disables click events for this view. (Inherited from View) |
ClipBounds |
Returns a copy of the current |
ClipToOutline |
Returns whether the Outline should be used to clip the contents of the View. -or- Sets whether the View's Outline should be used to clip the contents of the View. (Inherited from View) |
CompoundDrawablePadding |
Returns the padding between the compound drawables and the text. -or- Sets the size of the padding between the compound drawables and the text. (Inherited from TextView) |
CompoundDrawableTintBlendMode |
Returns the blending mode used to apply the tint to the compound
drawables, if specified. -or- Specifies the blending mode used to apply the tint specified by
|
CompoundDrawableTintList |
Applies a tint to the compound drawables. (Inherited from TextView) |
CompoundDrawableTintMode |
Returns the blending mode used to apply the tint to the compound
drawables, if specified. -or- Specifies the blending mode used to apply the tint specified by
|
CompoundPaddingBottom |
Returns the bottom padding of the view, plus space for the bottom Drawable if any. (Inherited from TextView) |
CompoundPaddingEnd |
Returns the end padding of the view, plus space for the end Drawable if any. (Inherited from TextView) |
CompoundPaddingLeft |
Returns the left padding of the view, plus space for the left Drawable if any. (Inherited from TextView) |
CompoundPaddingRight |
Returns the right padding of the view, plus space for the right Drawable if any. (Inherited from TextView) |
CompoundPaddingStart |
Returns the start padding of the view, plus space for the start Drawable if any. (Inherited from TextView) |
CompoundPaddingTop |
Returns the top padding of the view, plus space for the top Drawable if any. (Inherited from TextView) |
ContentCaptureSession |
Gets the session used to notify content capture events. -or- Sets the (optional) |
ContentDescription | (Inherited from View) |
ContentDescriptionFormatted |
Returns the |
Context |
Returns the context the view is running in, through which it can access the current theme, resources, etc. (Inherited from View) |
ContextClickable |
Indicates whether this view reacts to context clicks or not. -or- Enables or disables context clicking for this view. (Inherited from View) |
ContextMenuInfo |
Views should implement this if they have extra information to associate with the context menu. (Inherited from View) |
CurrentHintTextColor |
Return the current color selected to paint the hint text. (Inherited from TextView) |
CurrentTextColor |
Return the current color selected for normal text. (Inherited from TextView) |
CustomInsertionActionModeCallback |
Retrieves the value set in |
CustomSelectionActionModeCallback |
Retrieves the value set in |
DefaultEditable |
Subclasses override this to specify that they have a KeyListener by default even if not specifically called for in the XML options. (Inherited from TextView) |
DefaultFocusHighlightEnabled |
Returns whether this View should use a default focus highlight when it gets focused but
doesn't have |
DefaultMovementMethod |
Subclasses override this to specify a default movement method. (Inherited from TextView) |
Display |
Gets the logical display to which the view's window has been attached. (Inherited from View) |
DrawingCache |
Calling this method is equivalent to calling |
DrawingCacheBackgroundColor |
This member is deprecated. -or- Setting a solid background color for the drawing cache's bitmaps will improve performance and memory usage. (Inherited from View) |
DrawingCacheEnabled |
Indicates whether the drawing cache is enabled for this view. -or- Enables or disables the drawing cache. (Inherited from View) |
DrawingCacheQuality |
Returns the quality of the drawing cache. -or- Set the drawing cache quality of this view. (Inherited from View) |
DrawingTime |
Return the time at which the drawing of the view hierarchy started. (Inherited from View) |
DuplicateParentStateEnabled |
Indicates whether this duplicates its drawable state from its parent. -or- Enables or disables the duplication of the parent's state into this view. (Inherited from View) |
EditableText |
Return the text that TextView is displaying as an Editable object. (Inherited from TextView) |
Elevation |
The base elevation of this view relative to its parent, in pixels. -or- Sets the base elevation of this view, in pixels. (Inherited from View) |
Ellipsize |
Returns where, if anywhere, words that are longer than the view is wide should be ellipsized. -or- Causes words in the text that are longer than the view's width to be ellipsized instead of broken in the middle. (Inherited from TextView) |
Enabled |
Returns the enabled status for this view. -or- Set the enabled state of this view. (Inherited from View) |
Error | (Inherited from TextView) |
ErrorFormatted |
Returns the error message that was set to be displayed with
|
ExplicitStyle |
Returns the resource ID for the style specified using |
ExtendedPaddingBottom |
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. (Inherited from TextView) |
ExtendedPaddingTop |
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. (Inherited from TextView) |
FallbackLineSpacing |
Set whether to respect the ascent and descent of the fallback fonts that are used in displaying the text (which is needed to avoid text from consecutive lines running into each other). (Inherited from TextView) |
FilterTouchesWhenObscured |
Gets whether the framework should discard touches when the view's window is obscured by another visible window at the touched location. -or- Sets whether the framework should discard touches when the view's window is obscured by another visible window at the touched location. (Inherited from View) |
FirstBaselineToTopHeight |
Returns the distance between the first text baseline and the top of this TextView. -or- Updates the top padding of the TextView so that |
FitsSystemWindows |
Check for state of |
Focusable |
Returns whether this View is currently able to take focus. -or- Set whether this view can receive the focus. (Inherited from View) |
FocusableInTouchMode |
When a view is focusable, it may not want to take focus when in touch mode. -or- Set whether this view can receive focus while in touch mode. (Inherited from View) |
FocusedByDefault |
Returns whether this View should receive focus when the focus is restored for the view hierarchy containing this view. -or- Sets whether this View should receive focus when the focus is restored for the view hierarchy containing this view. (Inherited from View) |
FocusedSearchResultHighlightColor |
Gets focused search result highlight color. (Inherited from TextView) |
FocusedSearchResultIndex |
Gets the focused search result index. -or- Sets the focused search result index. (Inherited from TextView) |
FontFeatureSettings |
Returns the font feature settings. -or- Sets font feature settings. (Inherited from TextView) |
FontVariationSettings |
Returns the font variation settings. (Inherited from TextView) |
ForceDarkAllowed |
See |
Foreground |
Returns the drawable used as the foreground of this View. -or- Supply a Drawable that is to be rendered on top of all of the content in the view. (Inherited from View) |
ForegroundGravity |
Describes how the foreground is positioned. (Inherited from View) |
ForegroundTintBlendMode |
Return the blending mode used to apply the tint to the foreground
drawable, if specified. -or- Specifies the blending mode used to apply the tint specified by
|
ForegroundTintList |
Return the tint applied to the foreground drawable, if specified. -or- Applies a tint to the foreground drawable. (Inherited from View) |
ForegroundTintMode |
Return the blending mode used to apply the tint to the foreground drawable, if specified. (Inherited from View) |
FreezesText |
Return whether this text view is including its entire text contents in frozen icicles. -or- Control whether this text view saves its entire text contents when freezing to an icicle, in addition to dynamic state such as cursor position. (Inherited from TextView) |
Gravity |
Returns the horizontal and vertical alignment of this TextView. -or- 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. (Inherited from TextView) |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
Handler | (Inherited from View) |
HandwritingBoundsOffsetBottom |
Return the amount of offset applied to the bottom edge of this view's handwriting bounds, in the unit of pixel. (Inherited from View) |
HandwritingBoundsOffsetLeft |
Return the amount of offset applied to the left edge of this view's handwriting bounds, in the unit of pixel. (Inherited from View) |
HandwritingBoundsOffsetRight |
Return the amount of offset applied to the right edge of this view's handwriting bounds, in the unit of pixel. (Inherited from View) |
HandwritingBoundsOffsetTop |
Return the amount of offset applied to the top edge of this view's handwriting bounds, in the unit of pixel. (Inherited from View) |
HandwritingDelegatorCallback |
Returns the callback set by |
HapticFeedbackEnabled |
Set whether this view should have haptic feedback for events such as long presses. (Inherited from View) |
HasExplicitFocusable |
Returns true if this view is focusable or if it contains a reachable View
for which |
HasFocus |
Returns true if this view has focus itself, or is the ancestor of the view that has focus. (Inherited from View) |
HasFocusable |
Returns true if this view is focusable or if it contains a reachable View
for which |
HasNestedScrollingParent |
Returns true if this view has a nested scrolling parent. (Inherited from View) |
HasOnClickListeners |
Return whether this view has an attached OnClickListener. (Inherited from View) |
HasOnLongClickListeners |
Return whether this view has an attached OnLongClickListener. (Inherited from View) |
HasOverlappingRendering |
Returns whether this View has content which overlaps. (Inherited from View) |
HasPointerCapture |
Checks pointer capture status. (Inherited from View) |
HasSelection |
Return true iff there is a selection of nonzero length inside this text view. (Inherited from TextView) |
HasTransientState |
Indicates whether the view is currently tracking transient state that the app should not need to concern itself with saving and restoring, but that the framework should take special note to preserve when possible. -or- Set whether this view is currently tracking transient state that the framework should attempt to preserve when possible. (Inherited from View) |
HasWindowFocus |
Returns true if this view is in a window that currently has window focus. (Inherited from View) |
Height |
Return the height of your view. (Inherited from View) |
HighlightColor | (Inherited from TextView) |
Highlights |
Returns highlights -or- Set Highlights (Inherited from TextView) |
Hint | (Inherited from TextView) |
HintFormatted |
Returns the hint that is displayed when the text of the TextView is empty. -or- Sets the text to be displayed when the text of the TextView is empty. (Inherited from TextView) |
HintTextColors | (Inherited from TextView) |
HorizontalFadingEdgeEnabled |
Indicate whether the horizontal edges are faded when the view is scrolled horizontally. -or- Define whether the horizontal edges should be faded when this view is scrolled horizontally. (Inherited from View) |
HorizontalFadingEdgeLength |
Returns the size of the horizontal faded edges used to indicate that more content in this view is visible. (Inherited from View) |
HorizontalScrollBarEnabled |
Indicate whether the horizontal scrollbar should be drawn or not. -or- Define whether the horizontal scrollbar should be drawn or not. (Inherited from View) |
HorizontalScrollbarHeight |
Returns the height of the horizontal scrollbar. (Inherited from View) |
HorizontalScrollbarThumbDrawable |
Returns the currently configured Drawable for the thumb of the horizontal scroll bar if it exists, null otherwise. -or- Defines the horizontal thumb drawable (Inherited from View) |
HorizontalScrollbarTrackDrawable |
Returns the currently configured Drawable for the track of the horizontal scroll bar if it exists, null otherwise. -or- Defines the horizontal track drawable (Inherited from View) |
Hovered |
Returns true if the view is currently hovered. -or- Sets whether the view is currently hovered. (Inherited from View) |
HyphenationFrequency |
Gets the current frequency of automatic hyphenation to be used when determining word breaks. -or- Sets the frequency of automatic hyphenation to use when determining word breaks. (Inherited from TextView) |
Id |
Returns this view's identifier. -or- Sets the identifier for this view. (Inherited from View) |
ImeActionId |
Get the IME action ID previous set with |
ImeActionLabel | (Inherited from TextView) |
ImeActionLabelFormatted |
Get the IME action label previous set with |
ImeHintLocales |
Change "hint" locales associated with the text view, which will be reported to an IME with
|
ImeOptions |
Get the type of the Input Method Editor (IME). -or- Change the editor type integer associated with the text view, which
is reported to an Input Method Editor (IME) with |
ImportantForAccessibility |
Gets the mode for determining whether this View is important for accessibility. -or- Sets how to determine whether this view is important for accessibility which is if it fires accessibility events and if it is reported to accessibility services that query the screen. (Inherited from View) |
ImportantForAutofill |
Gets the mode for determining whether this view is important for autofill. -or- Sets the mode for determining whether this view is considered important for autofill. (Inherited from View) |
ImportantForContentCapture |
Gets the mode for determining whether this view is important for content capture. -or- Sets the mode for determining whether this view is considered important for content capture. (Inherited from View) |
IncludeFontPadding |
Gets whether the TextView includes extra top and bottom padding to make room for accents that go above the normal ascent and descent. (Inherited from TextView) |
InputType |
Get the type of the editable content. -or- Set the type of the content with a constant as defined for |
IsAccessibilityDataSensitive |
Whether this view should restrict accessibility service access only to services that have the
|
IsAccessibilityFocused |
Returns whether this View is accessibility focused. (Inherited from View) |
IsAllCaps |
Checks whether the transformation method applied to this TextView is set to ALL CAPS. (Inherited from TextView) |
IsAttachedToWindow |
Returns true if this view is currently attached to a window. (Inherited from View) |
IsCredential |
Gets the mode for determining whether this view is a credential. -or- Sets whether this view is a credential for Credential Manager purposes. (Inherited from View) |
IsCursorVisible | (Inherited from TextView) |
IsDirty |
True if this view has changed since the last time being drawn. (Inherited from View) |
IsElegantTextHeight |
Get the value of the TextView's elegant height metrics flag. (Inherited from TextView) |
IsFocused |
Returns true if this view has focus (Inherited from View) |
IsHandwritingDelegate |
Returns whether this view has been set as a handwriting delegate by |
IsHardwareAccelerated |
Indicates whether this view is attached to a hardware accelerated window or not. (Inherited from View) |
IsHorizontallyScrollable |
Returns whether the text is allowed to be wider than the View. (Inherited from TextView) |
IsImportantForAccessibility |
Computes whether this view should be exposed for accessibility. (Inherited from View) |
IsImportantForAutofill |
Hints the Android System whether the |
IsImportantForContentCapture |
Hints the Android System whether this view is considered important for content capture, based
on the value explicitly set by |
IsInEditMode |
Indicates whether this View is currently in edit mode. (Inherited from View) |
IsInLayout |
Returns whether the view hierarchy is currently undergoing a layout pass. (Inherited from View) |
IsInputMethodTarget |
Returns whether this text view is a current input method target. (Inherited from TextView) |
IsInTouchMode |
Returns the touch mode state associated with this view. (Inherited from View) |
IsLaidOut |
Returns true if this view has been through at least one layout since it was last attached to or detached from a window. (Inherited from View) |
IsLayoutDirectionResolved | (Inherited from View) |
IsLayoutRequested |
Indicates whether or not this view's layout will be requested during the next hierarchy layout pass. (Inherited from View) |
IsOpaque |
Indicates whether this View is opaque. (Inherited from View) |
IsPaddingOffsetRequired |
If the View draws content inside its padding and enables fading edges, it needs to support padding offsets. (Inherited from View) |
IsPaddingRelative |
Return if the padding has been set through relative values
|
IsPivotSet |
Returns whether or not a pivot has been set by a call to |
IsScrollContainer |
Indicates whether this view is one of the set of scrollable containers in its window. (Inherited from View) |
IsShowingLayoutBounds |
Returns |
IsShown |
Returns the visibility of this view and all of its ancestors (Inherited from View) |
IsSingleLine |
Returns if the text is constrained to a single horizontally scrolling line ignoring new line characters instead of letting it wrap onto multiple lines. (Inherited from TextView) |
IsSuggestionsEnabled |
Return whether or not suggestions are enabled on this TextView. (Inherited from TextView) |
IsTemporarilyDetached |
Tells whether the |
IsTextAlignmentResolved | (Inherited from View) |
IsTextDirectionResolved | (Inherited from View) |
IsTextSelectable |
Returns the state of the |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
JustificationMode |
Set justification mode. (Inherited from TextView) |
KeepScreenOn |
Returns whether the screen should remain on, corresponding to the current
value of |
KeyboardNavigationCluster |
Returns whether this View is a root of a keyboard navigation cluster. -or- Set whether this view is a root of a keyboard navigation cluster. (Inherited from View) |
KeyDispatcherState |
Return the global |
KeyListener |
Gets the current |
LabelFor |
Gets the id of a view for which this view serves as a label for accessibility purposes. -or- Sets the id of a view for which this view serves as a label for accessibility purposes. (Inherited from View) |
LastBaselineToBottomHeight |
Returns the distance between the last text baseline and the bottom of this TextView. -or- Updates the bottom padding of the TextView so that |
LayerType |
Indicates what type of layer is currently associated with this view. (Inherited from View) |
Layout |
Gets the |
LayoutDirection |
Returns the resolved layout direction for this view. -or- Set the layout direction for this view. (Inherited from View) |
LayoutParameters |
Get the LayoutParams associated with this view. -or- Set the layout parameters associated with this view. (Inherited from View) |
Left |
Left position of this view relative to its parent. -or- Sets the left position of this view relative to its parent. (Inherited from View) |
LeftFadingEdgeStrength |
Returns the strength, or intensity, of the left faded edge. (Inherited from View) |
LeftPaddingOffset |
Amount by which to extend the left fading region. (Inherited from View) |
LetterSpacing |
Gets the text letter-space value, which determines the spacing between characters. -or- Sets text letter-spacing in em units. (Inherited from TextView) |
LineBreakStyle |
Gets the current line-break style for text wrapping. -or- Sets the line-break style for text wrapping. (Inherited from TextView) |
LineBreakWordStyle |
Gets the current line-break word style for text wrapping. -or- Sets the line-break word style for text wrapping. (Inherited from TextView) |
LineCount |
Return the number of lines of text, or 0 if the internal Layout has not been built. (Inherited from TextView) |
LineHeight |
Gets the vertical distance between lines of text, in pixels. -or- Sets an explicit line height for this TextView. (Inherited from TextView) |
LineSpacingExtra |
Gets the line spacing extra space (Inherited from TextView) |
LineSpacingMultiplier |
Gets the line spacing multiplier (Inherited from TextView) |
LinksClickable |
Returns whether the movement method will automatically be set to
|
LinkTextColors | (Inherited from TextView) |
LongClickable |
Indicates whether this view reacts to long click events or not. -or- Enables or disables long click events for this view. (Inherited from View) |
MarqueeRepeatLimit |
Gets the number of times the marquee animation is repeated. (Inherited from TextView) |
Matrix |
The transform matrix of this view, which is calculated based on the current rotation, scale, and pivot properties. (Inherited from View) |
MaxEms |
Returns the maximum width of TextView in terms of ems or -1 if the maximum width was set
using |
MaxHeight |
Returns the maximum height of TextView in terms of pixels or -1 if the maximum height was
set using |
MaxLines |
Returns the maximum height of TextView in terms of number of lines or -1 if the
maximum height was set using |
MaxWidth |
Returns the maximum width of TextView in terms of pixels or -1 if the maximum width was set
using |
MeasuredHeight |
Like |
MeasuredHeightAndState |
Return the full height measurement information for this view as computed
by the most recent call to |
MeasuredState |
Return only the state bits of |
MeasuredWidth |
Like |
MeasuredWidthAndState |
Return the full width measurement information for this view as computed
by the most recent call to |
MinEms |
Returns the minimum width of TextView in terms of ems or -1 if the minimum width was set
using |
MinHeight |
Returns the minimum height of TextView in terms of pixels or -1 if the minimum height was
set using |
MinimumHeight |
Returns the minimum height of the view. (Inherited from View) |
MinimumWidth |
Returns the minimum width of the view. (Inherited from View) |
MinLines |
Returns the minimum height of TextView in terms of number of lines or -1 if the minimum
height was set using |
MinWidth |
Returns the minimum width of TextView in terms of pixels or -1 if the minimum width was set
using |
MovementMethod |
Gets the |
NestedScrollingEnabled |
Returns true if nested scrolling is enabled for this view. -or- Enable or disable nested scrolling for this view. (Inherited from View) |
NextClusterForwardId |
Gets the id of the root of the next keyboard navigation cluster. -or- Sets the id of the view to use as the root of the next keyboard navigation cluster. (Inherited from View) |
NextFocusDownId |
Gets the id of the view to use when the next focus is |
NextFocusForwardId |
Gets the id of the view to use when the next focus is |
NextFocusLeftId |
Gets the id of the view to use when the next focus is |
NextFocusRightId |
Gets the id of the view to use when the next focus is |
NextFocusUpId |
Gets the id of the view to use when the next focus is |
OnFocusChangeListener |
Returns the focus-change callback registered for this view. -or- Register a callback to be invoked when focus of this view changed. (Inherited from View) |
OutlineAmbientShadowColor | (Inherited from View) |
OutlineProvider |
Returns the current |
OutlineSpotShadowColor | (Inherited from View) |
Overlay |
Returns the overlay for this view, creating it if it does not yet exist. (Inherited from View) |
OverScrollMode |
Returns the over-scroll mode for this view. -or- Set the over-scroll mode for this view. (Inherited from View) |
PaddingBottom |
Returns the bottom padding of this view. (Inherited from View) |
PaddingEnd |
Returns the end padding of this view depending on its resolved layout direction. (Inherited from View) |
PaddingLeft |
Returns the left padding of this view. (Inherited from View) |
PaddingRight |
Returns the right padding of this view. (Inherited from View) |
PaddingStart |
Returns the start padding of this view depending on its resolved layout direction. (Inherited from View) |
PaddingTop |
Returns the top padding of this view. (Inherited from View) |
Paint |
Gets the |
PaintFlags |
Gets the flags on the Paint being used to display the text. -or- Sets flags on the Paint being used to display the text and reflows the text if they are different from the old flags. (Inherited from TextView) |
Parent |
Gets the parent of this view. (Inherited from View) |
ParentForAccessibility |
Gets the parent for accessibility purposes. (Inherited from View) |
PeerReference | (Inherited from Object) |
PivotX |
The x location of the point around which the view is |
PivotY |
The y location of the point around which the view is |
PointerIcon |
Gets the mouse pointer icon for the current view. -or- Set the pointer icon to be used for a mouse pointer in the current view. (Inherited from View) |
PreferKeepClear |
Retrieve the preference for this view to be kept clear. -or- Set a preference to keep the bounds of this view clear from floating windows above this view's window. (Inherited from View) |
PreferKeepClearRects |
Set a preference to keep the provided rects clear from floating windows above this view's window. (Inherited from View) |
Pressed |
Indicates whether the view is currently in pressed state. -or- Sets the pressed state for this view. (Inherited from View) |
PrivateImeOptions |
Get the private type of the content. -or- Set the private content type of the text, which is the
|
Resources |
Returns the resources associated with this view. (Inherited from View) |
RevealOnFocusHint |
Returns this view's preference for reveal behavior when it gains focus. -or- Sets this view's preference for reveal behavior when it gains focus. (Inherited from View) |
Right |
Right position of this view relative to its parent. -or- Sets the right position of this view relative to its parent. (Inherited from View) |
RightFadingEdgeStrength |
Returns the strength, or intensity, of the right faded edge. (Inherited from View) |
RightPaddingOffset |
Amount by which to extend the right fading region. (Inherited from View) |
RootSurfaceControl |
The AttachedSurfaceControl itself is not a View, it is just the interface to the windowing-system object that contains the entire view hierarchy. (Inherited from View) |
RootView |
Finds the topmost view in the current view hierarchy. (Inherited from View) |
RootWindowInsets |
Provide original WindowInsets that are dispatched to the view hierarchy. (Inherited from View) |
Rotation |
The degrees that the view is rotated around the pivot point. -or- Sets the degrees that the view is rotated around the pivot point. (Inherited from View) |
RotationX |
The degrees that the view is rotated around the horizontal axis through the pivot point. -or- Sets the degrees that the view is rotated around the horizontal axis through the pivot point. (Inherited from View) |
RotationY |
The degrees that the view is rotated around the vertical axis through the pivot point. -or- Sets the degrees that the view is rotated around the vertical axis through the pivot point. (Inherited from View) |
SaveEnabled |
Indicates whether this view will save its state (that is,
whether its |
SaveFromParentEnabled |
Indicates whether the entire hierarchy under this view will save its state when a state saving traversal occurs from its parent. -or- Controls whether the entire hierarchy under this view will save its state when a state saving traversal occurs from its parent. (Inherited from View) |
ScaleX |
The amount that the view is scaled in x around the pivot point, as a proportion of the view's unscaled width. -or- Sets the amount that the view is scaled in x around the pivot point, as a proportion of the view's unscaled width. (Inherited from View) |
ScaleY |
The amount that the view is scaled in y around the pivot point, as a proportion of the view's unscaled height. -or- Sets the amount that the view is scaled in Y around the pivot point, as a proportion of the view's unscaled width. (Inherited from View) |
ScreenReaderFocusable |
Returns whether the view should be treated as a focusable unit by screen reader accessibility tools. -or- Sets whether this View should be a focusable element for screen readers and include non-focusable Views from its subtree when providing feedback. (Inherited from View) |
ScrollBarDefaultDelayBeforeFade |
Returns the delay before scrollbars fade. -or- Define the delay before scrollbars fade. (Inherited from View) |
ScrollBarFadeDuration |
Returns the scrollbar fade duration. -or- Define the scrollbar fade duration. (Inherited from View) |
ScrollbarFadingEnabled |
Returns true if scrollbars will fade when this view is not scrolling -or- Define whether scrollbars will fade when the view is not scrolling. (Inherited from View) |
ScrollBarSize |
Returns the scrollbar size. -or- Define the scrollbar size. (Inherited from View) |
ScrollBarStyle |
Returns the current scrollbar style. -or- Specify the style of the scrollbars. (Inherited from View) |
ScrollCaptureHint |
Returns the current scroll capture hint for this view. -or- Sets the scroll capture hint for this View. (Inherited from View) |
ScrollIndicators |
Returns a bitmask representing the enabled scroll indicators. (Inherited from View) |
ScrollX |
Return the scrolled left position of this view. -or- Set the horizontal scrolled position of your view. (Inherited from View) |
ScrollY |
Return the scrolled top position of this view. -or- Set the vertical scrolled position of your view. (Inherited from View) |
SearchResultHighlightColor |
Gets the search result highlight color. (Inherited from TextView) |
Selected |
Indicates the selection state of this view. -or- Changes the selection state of this view. (Inherited from View) |
SelectionEnd |
Convenience for |
SelectionStart |
Convenience for |
ShadowColor |
Gets the color of the shadow layer. (Inherited from TextView) |
ShadowDx | (Inherited from TextView) |
ShadowDy |
Gets the vertical offset of the shadow layer. (Inherited from TextView) |
ShadowRadius |
Gets the radius of the shadow layer. (Inherited from TextView) |
ShowSoftInputOnFocus |
Returns whether the soft input method will be made visible when this TextView gets focused. -or- Sets whether the soft input method will be made visible when this TextView gets focused. (Inherited from TextView) |
ShowText |
Sets whether the on/off text should be displayed. |
SolidColor |
Override this if your view is known to always be drawn on top of a solid color background, and needs to draw fading edges. (Inherited from View) |
SoundEffectsEnabled |
Set whether this view should have sound effects enabled for events such as clicking and touching. (Inherited from View) |
SourceLayoutResId |
A |
SplitTrack |
Returns whether the track should be split by the thumb. -or- Specifies whether the track should be split by the thumb. |
StateDescription | (Inherited from View) |
StateDescriptionFormatted |
Returns the |
StateListAnimator |
Returns the current StateListAnimator if exists. -or- Attaches the provided StateListAnimator to this View. (Inherited from View) |
SuggestedMinimumHeight |
Returns the suggested minimum height that the view should use. (Inherited from View) |
SuggestedMinimumWidth |
Returns the suggested minimum width that the view should use. (Inherited from View) |
SwitchMinWidth |
Get the minimum width of the switch in pixels. -or- Set the minimum width of the switch in pixels. |
SwitchPadding |
Get the amount of horizontal padding between the switch and the associated text. -or- Set the amount of horizontal padding between the switch and the associated text. |
SystemGestureExclusionRects |
Retrieve the list of areas within this view's post-layout coordinate space where the system should not intercept touch or other pointing device gestures. -or- Sets a list of areas within this view's post-layout coordinate space where the system should not intercept touch or other pointing device gestures. (Inherited from View) |
SystemUiFlags | (Inherited from View) |
SystemUiVisibility |
Obsolete.
Returns the last |
Tag |
Returns this view's tag. -or- Sets the tag associated with this view. (Inherited from View) |
Text | (Inherited from TextView) |
TextAlignment |
Return the resolved text alignment. -or- Set the text alignment. (Inherited from View) |
TextClassifier |
Returns the |
TextColors |
Gets the text colors for the different states (normal, selected, focused) of the TextView. (Inherited from TextView) |
TextCursorDrawable |
Returns the Drawable corresponding to the text cursor. -or- Sets the Drawable corresponding to the text cursor. (Inherited from TextView) |
TextDirection |
Return the resolved text direction. -or- Set the text direction. (Inherited from View) |
TextDirectionHeuristic |
Returns resolved |
TextFormatted |
Return the text that TextView is displaying. -or- Sets the text to be displayed. (Inherited from TextView) |
TextLocale |
Get the default primary |
TextLocales |
Get the default |
TextOff | |
TextOffFormatted |
Returns the text displayed when the button is not in the checked state. -or- Sets the text displayed when the button is not in the checked state. |
TextOn | |
TextOnFormatted |
Returns the text displayed when the button is in the checked state. -or- Sets the text displayed when the button is in the checked state. |
TextScaleX |
Gets the extent by which text should be stretched horizontally. -or- Sets the horizontal scale factor for text. (Inherited from TextView) |
TextSelectHandle |
Returns the Drawable corresponding to the selection handle used for positioning the cursor within text. -or- Sets the Drawable corresponding to the selection handle used for positioning the cursor within text. (Inherited from TextView) |
TextSelectHandleLeft |
Returns the Drawable corresponding to the left handle used for selecting text. -or- Sets the Drawable corresponding to the left handle used for selecting text. (Inherited from TextView) |
TextSelectHandleRight |
Returns the Drawable corresponding to the right handle used for selecting text. -or- Sets the Drawable corresponding to the right handle used for selecting text. (Inherited from TextView) |
TextSize |
Set the default text size to the given value, interpreted as "scaled pixel" units. (Inherited from TextView) |
TextSizeUnit |
Gets the text size unit defined by the developer. (Inherited from TextView) |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThumbDrawable |
Get the drawable used for the switch "thumb" - the piece that the user can physically touch and drag along the track. -or- Set the drawable used for the switch "thumb" - the piece that the user can physically touch and drag along the track. |
ThumbTextPadding |
Get the horizontal padding around the text drawn on the switch itself. -or- Set the horizontal padding around the text drawn on the switch itself. |
ThumbTintBlendMode |
Specifies the blending mode used to apply the tint specified by
|
ThumbTintList |
Applies a tint to the thumb drawable. |
ThumbTintMode | |
TooltipText | (Inherited from View) |
TooltipTextFormatted |
Returns the view's tooltip text. -or- Sets the tooltip text which will be displayed in a small popup next to the view. (Inherited from View) |
Top |
Top position of this view relative to its parent. -or- Sets the top position of this view relative to its parent. (Inherited from View) |
TopFadingEdgeStrength |
Returns the strength, or intensity, of the top faded edge. (Inherited from View) |
TopPaddingOffset |
Amount by which to extend the top fading region. (Inherited from View) |
TotalPaddingBottom |
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. (Inherited from TextView) |
TotalPaddingEnd |
Returns the total end padding of the view, including the end Drawable if any. (Inherited from TextView) |
TotalPaddingLeft |
Returns the total left padding of the view, including the left Drawable if any. (Inherited from TextView) |
TotalPaddingRight |
Returns the total right padding of the view, including the right Drawable if any. (Inherited from TextView) |
TotalPaddingStart |
Returns the total start padding of the view, including the start Drawable if any. (Inherited from TextView) |
TotalPaddingTop |
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. (Inherited from TextView) |
Touchables |
Find and return all touchable views that are descendants of this view, possibly including this view if it is touchable itself. (Inherited from View) |
TouchDelegate |
Gets the TouchDelegate for this View. -or- Sets the TouchDelegate for this View. (Inherited from View) |
TrackDrawable |
Get the drawable used for the track that the switch slides within. -or- Set the drawable used for the track that the switch slides within. |
TrackTintBlendMode |
Specifies the blending mode used to apply the tint specified by
|
TrackTintList |
Applies a tint to the track drawable. |
TrackTintMode | |
TransformationMethod |
Gets the current |
TransitionAlpha |
This property is intended only for use by the Fade transition, which animates it to produce a visual translucency that does not side-effect (or get affected by) the real alpha property. -or- This property is intended only for use by the Fade transition, which animates it to produce a visual translucency that does not side-effect (or get affected by) the real alpha property. (Inherited from View) |
TransitionName |
Returns the name of the View to be used to identify Views in Transitions. -or- Sets the name of the View to be used to identify Views in Transitions. (Inherited from View) |
TranslationX |
The horizontal location of this view relative to its |
TranslationY |
The vertical location of this view relative to its |
TranslationZ |
The depth location of this view relative to its |
Typeface |
Gets the current |
UniqueDrawingId |
Get the identifier used for this view by the drawing system. (Inherited from View) |
VerticalFadingEdgeEnabled |
Indicate whether the vertical edges are faded when the view is scrolled horizontally. -or- Define whether the vertical edges should be faded when this view is scrolled vertically. (Inherited from View) |
VerticalFadingEdgeLength |
Returns the size of the vertical faded edges used to indicate that more content in this view is visible. (Inherited from View) |
VerticalScrollBarEnabled |
Indicate whether the vertical scrollbar should be drawn or not. -or- Define whether the vertical scrollbar should be drawn or not. (Inherited from View) |
VerticalScrollbarPosition |
Set the position of the vertical scroll bar. (Inherited from View) |
VerticalScrollbarThumbDrawable |
Returns the currently configured Drawable for the thumb of the vertical scroll bar if it exists, null otherwise. -or- Defines the vertical scrollbar thumb drawable (Inherited from View) |
VerticalScrollbarTrackDrawable |
Returns the currently configured Drawable for the track of the vertical scroll bar if it exists, null otherwise. -or- Defines the vertical scrollbar track drawable (Inherited from View) |
VerticalScrollbarWidth |
Returns the width of the vertical scrollbar. (Inherited from View) |
ViewTranslationResponse |
Returns the |
ViewTreeObserver |
Returns the ViewTreeObserver for this view's hierarchy. (Inherited from View) |
Visibility |
Returns the visibility status for this view. -or- Set the visibility state of this view. (Inherited from View) |
Width |
Return the width of your view. (Inherited from View) |
WindowAttachCount | (Inherited from View) |
WindowId |
Retrieve the |
WindowInsetsController |
Retrieves the single |
WindowSystemUiVisibility |
Returns the current system UI visibility that is currently set for the entire window. (Inherited from View) |
WindowToken |
Retrieve a unique token identifying the window this view is attached to. (Inherited from View) |
WindowVisibility |
Returns the current visibility of the window this view is attached to
(either |
Methods
AddChildrenForAccessibility(IList<View>) |
Adds the children of this View relevant for accessibility to the given list as output. (Inherited from View) |
AddExtraDataToAccessibilityNodeInfo(AccessibilityNodeInfo, String, Bundle) |
Adds extra data to an |
AddFocusables(IList<View>, FocusSearchDirection, FocusablesFlags) |
Adds any focusable views that are descendants of this view (possibly including this view if it is focusable itself) to views. (Inherited from View) |
AddFocusables(IList<View>, FocusSearchDirection) |
Add any focusable views that are descendants of this view (possibly including this view if it is focusable itself) to views. (Inherited from View) |
AddKeyboardNavigationClusters(ICollection<View>, FocusSearchDirection) |
Adds any keyboard navigation cluster roots that are descendants of this view (possibly including this view if it is a cluster root itself) to views. (Inherited from View) |
AddOnAttachStateChangeListener(View+IOnAttachStateChangeListener) |
Add a listener for attach state changes. (Inherited from View) |
AddOnLayoutChangeListener(View+IOnLayoutChangeListener) |
Add a listener that will be called when the bounds of the view change due to layout processing. (Inherited from View) |
AddOnUnhandledKeyEventListener(View+IOnUnhandledKeyEventListener) |
Adds a listener which will receive unhandled |
AddTextChangedListener(ITextWatcher) |
Adds a TextWatcher to the list of those whose methods are called whenever this TextView's text changes. (Inherited from TextView) |
AddTouchables(IList<View>) |
Add any touchable views that are descendants of this view (possibly including this view if it is touchable itself) to views. (Inherited from View) |
Animate() |
This method returns a ViewPropertyAnimator object, which can be used to animate specific properties on this View. (Inherited from View) |
AnnounceForAccessibility(ICharSequence) |
Convenience method for sending a |
AnnounceForAccessibility(String) |
Convenience method for sending a |
Append(ICharSequence, Int32, Int32) |
Convenience method to append the specified text slice to the TextView's
display buffer, upgrading it to |
Append(ICharSequence) |
Convenience method to append the specified text to the TextView's
display buffer, upgrading it to |
Append(String, Int32, Int32) |
Convenience method to append the specified text slice to the TextView's
display buffer, upgrading it to |
Append(String) |
Convenience method to append the specified text to the TextView's
display buffer, upgrading it to |
Autofill(AutofillValue) |
Automatically fills the content of this view with the |
Autofill(SparseArray) |
Automatically fills the content of the virtual children within this view. (Inherited from View) |
AwakenScrollBars() |
Trigger the scrollbars to draw. (Inherited from View) |
AwakenScrollBars(Int32, Boolean) |
Trigger the scrollbars to draw. (Inherited from View) |
AwakenScrollBars(Int32) |
Trigger the scrollbars to draw. (Inherited from View) |
BeginBatchEdit() | (Inherited from TextView) |
BringPointIntoView(Int32, Boolean) |
Move the insertion position of the given offset into visible area of the View. (Inherited from TextView) |
BringPointIntoView(Int32) |
Move the point, specified by the offset, into the view if it is needed. (Inherited from TextView) |
BringToFront() |
Change the view's z order in the tree, so it's on top of other sibling views. (Inherited from View) |
BuildDrawingCache() |
Calling this method is equivalent to calling |
BuildDrawingCache(Boolean) |
Forces the drawing cache to be built if the drawing cache is invalid. (Inherited from View) |
BuildLayer() |
Forces this view's layer to be created and this view to be rendered into its layer. (Inherited from View) |
CallOnClick() |
Directly call any attached OnClickListener. (Inherited from View) |
CancelDragAndDrop() |
Cancels an ongoing drag and drop operation. (Inherited from View) |
CancelLongPress() |
Cancels a pending long press. (Inherited from View) |
CancelPendingInputEvents() |
Cancel any deferred high-level input events that were previously posted to the event queue. (Inherited from View) |
CanResolveLayoutDirection() |
Check if layout direction resolution can be done. (Inherited from View) |
CanResolveTextAlignment() |
Check if text alignment resolution can be done. (Inherited from View) |
CanResolveTextDirection() |
Check if text direction resolution can be done. (Inherited from View) |
CanScrollHorizontally(Int32) |
Check if this view can be scrolled horizontally in a certain direction. (Inherited from View) |
CanScrollVertically(Int32) |
Check if this view can be scrolled vertically in a certain direction. (Inherited from View) |
CheckInputConnectionProxy(View) |
Called by the |
ClearAnimation() |
Cancels any animations for this view. (Inherited from View) |
ClearComposingText() |
Use |
ClearFocus() |
Called when this view wants to give up focus. (Inherited from View) |
ClearViewTranslationCallback() |
Clear the |
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
ComputeHorizontalScrollExtent() |
Compute the horizontal extent of the horizontal scrollbar's thumb within the horizontal range. (Inherited from View) |
ComputeHorizontalScrollOffset() |
Compute the horizontal offset of the horizontal scrollbar's thumb within the horizontal range. (Inherited from View) |
ComputeHorizontalScrollRange() |
Compute the horizontal range that the horizontal scrollbar represents. (Inherited from View) |
ComputeScroll() |
Called by a parent to request that a child update its values for mScrollX and mScrollY if necessary. (Inherited from View) |
ComputeSystemWindowInsets(WindowInsets, Rect) |
Compute insets that should be consumed by this view and the ones that should propagate to those under it. (Inherited from View) |
ComputeVerticalScrollExtent() |
Compute the vertical extent of the vertical scrollbar's thumb within the vertical range. (Inherited from View) |
ComputeVerticalScrollOffset() |
Compute the vertical offset of the vertical scrollbar's thumb within the horizontal range. (Inherited from View) |
ComputeVerticalScrollRange() |
Compute the vertical range that the vertical scrollbar represents. (Inherited from View) |
CreateAccessibilityNodeInfo() |
Returns an |
CreateContextMenu(IContextMenu) |
Show the context menu for this view. (Inherited from View) |
Debug(Int32) |
Prints information about this view in the log output, with the tag ViewLogTag. (Inherited from TextView) |
DestroyDrawingCache() |
Frees the resources used by the drawing cache. (Inherited from View) |
DidTouchFocusSelect() |
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. (Inherited from TextView) |
DispatchApplyWindowInsets(WindowInsets) |
Request to apply the given window insets to this view or another view in its subtree. (Inherited from View) |
DispatchCapturedPointerEvent(MotionEvent) |
Pass a captured pointer event down to the focused view. (Inherited from View) |
DispatchConfigurationChanged(Configuration) |
Dispatch a notification about a resource configuration change down the view hierarchy. (Inherited from View) |
DispatchCreateViewTranslationRequest(IDictionary<AutofillId,Int64[]>, Int32[], TranslationCapability, IList<ViewTranslationRequest>) |
Dispatch to collect the |
DispatchDisplayHint(ViewStates) |
Dispatch a hint about whether this view is displayed. (Inherited from View) |
DispatchDragEvent(DragEvent) |
Detects if this View is enabled and has a drag event listener. (Inherited from View) |
DispatchDraw(Canvas) |
Called by draw to draw the child views. (Inherited from View) |
DispatchDrawableHotspotChanged(Single, Single) |
Dispatches drawableHotspotChanged to all of this View's children. (Inherited from View) |
DispatchFinishTemporaryDetach() |
Dispatch |
DispatchGenericFocusedEvent(MotionEvent) |
Dispatch a generic motion event to the currently focused view. (Inherited from View) |
DispatchGenericMotionEvent(MotionEvent) |
Dispatch a generic motion event. (Inherited from View) |
DispatchGenericPointerEvent(MotionEvent) |
Dispatch a generic motion event to the view under the first pointer. (Inherited from View) |
DispatchHoverEvent(MotionEvent) |
Dispatch a hover event. (Inherited from View) |
DispatchKeyEvent(KeyEvent) |
Dispatch a key event to the next view on the focus path. (Inherited from View) |
DispatchKeyEventPreIme(KeyEvent) |
Dispatch a key event before it is processed by any input method associated with the view hierarchy. (Inherited from View) |
DispatchKeyShortcutEvent(KeyEvent) |
Dispatches a key shortcut event. (Inherited from View) |
DispatchNestedFling(Single, Single, Boolean) |
Dispatch a fling to a nested scrolling parent. (Inherited from View) |
DispatchNestedPreFling(Single, Single) |
Dispatch a fling to a nested scrolling parent before it is processed by this view. (Inherited from View) |
DispatchNestedPrePerformAccessibilityAction(Action, Bundle) |
Report an accessibility action to this view's parents for delegated processing. (Inherited from View) |
DispatchNestedPreScroll(Int32, Int32, Int32[], Int32[]) |
Dispatch one step of a nested scroll in progress before this view consumes any portion of it. (Inherited from View) |
DispatchNestedScroll(Int32, Int32, Int32, Int32, Int32[]) |
Dispatch one step of a nested scroll in progress. (Inherited from View) |
DispatchPointerCaptureChanged(Boolean) | (Inherited from View) |
DispatchPopulateAccessibilityEvent(AccessibilityEvent) |
Dispatches an |
DispatchProvideAutofillStructure(ViewStructure, AutofillFlags) |
Dispatches creation of a |
DispatchProvideStructure(ViewStructure) |
Dispatch creation of |
DispatchRestoreInstanceState(SparseArray) |
Called by |
DispatchSaveInstanceState(SparseArray) |
Called by |
DispatchScrollCaptureSearch(Rect, Point, IConsumer) |
Dispatch a scroll capture search request down the view hierarchy. (Inherited from View) |
DispatchSetActivated(Boolean) |
Dispatch setActivated to all of this View's children. (Inherited from View) |
DispatchSetPressed(Boolean) |
Dispatch setPressed to all of this View's children. (Inherited from View) |
DispatchSetSelected(Boolean) |
Dispatch setSelected to all of this View's children. (Inherited from View) |
DispatchStartTemporaryDetach() |
Dispatch |
DispatchSystemUiVisibilityChanged(Int32) |
Obsolete.
(Inherited from View)
|
DispatchSystemUiVisibilityChanged(SystemUiFlags) |
Dispatch callbacks to |
DispatchTouchEvent(MotionEvent) |
Pass the touch screen motion event down to the target view, or this view if it is the target. (Inherited from View) |
DispatchTrackballEvent(MotionEvent) |
Pass a trackball motion event down to the focused view. (Inherited from View) |
DispatchUnhandledMove(View, FocusSearchDirection) |
This method is the last chance for the focused view and its ancestors to respond to an arrow key. (Inherited from View) |
DispatchVisibilityChanged(View, ViewStates) |
Dispatch a view visibility change down the view hierarchy. (Inherited from View) |
DispatchWindowFocusChanged(Boolean) |
Called when the window containing this view gains or loses window focus. (Inherited from View) |
DispatchWindowInsetsAnimationEnd(WindowInsetsAnimation) |
Dispatches |
DispatchWindowInsetsAnimationPrepare(WindowInsetsAnimation) |
Dispatches |
DispatchWindowInsetsAnimationProgress(WindowInsets, IList<WindowInsetsAnimation>) |
Dispatches |
DispatchWindowInsetsAnimationStart(WindowInsetsAnimation, WindowInsetsAnimation+Bounds) |
Dispatches |
DispatchWindowSystemUiVisiblityChanged(SystemUiFlags) |
Dispatch callbacks to |
DispatchWindowVisibilityChanged(ViewStates) |
Dispatch a window visibility change down the view hierarchy. (Inherited from View) |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Draw(Canvas) |
Manually render this view (and all of its children) to the given Canvas. (Inherited from View) |
DrawableHotspotChanged(Single, Single) |
This function is called whenever the view hotspot changes and needs to be propagated to drawables or child views managed by the view. (Inherited from View) |
DrawableStateChanged() |
This function is called whenever the state of the view changes in such a way that it impacts the state of drawables being shown. (Inherited from View) |
EndBatchEdit() | (Inherited from TextView) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
ExtractText(ExtractedTextRequest, ExtractedText) |
If this TextView contains editable content, extract a portion of it based on the information in <var>request</var> in to <var>outText</var>. (Inherited from TextView) |
FindFocus() |
Find the view in the hierarchy rooted at this view that currently has focus. (Inherited from View) |
FindOnBackInvokedDispatcher() |
Walk up the View hierarchy to find the nearest |
FindViewById(Int32) |
Finds the first descendant view with the given ID, the view itself if
the ID matches |
FindViewById<T>(Int32) | (Inherited from View) |
FindViewsWithText(IList<View>, ICharSequence, FindViewsWith) |
Finds the Views that contain given text. (Inherited from View) |
FindViewsWithText(IList<View>, String, FindViewsWith) |
Finds the Views that contain given text. (Inherited from View) |
FindViewWithTag(Object) |
Look for a child view with the given tag. (Inherited from View) |
FitSystemWindows(Rect) |
Obsolete.
Called by the view hierarchy when the content insets for a window have changed, to allow it to adjust its content to fit within those windows. (Inherited from View) |
FocusSearch(FocusSearchDirection) |
Find the nearest view in the specified direction that can take focus. (Inherited from View) |
ForceHasOverlappingRendering(Boolean) |
Sets the behavior for overlapping rendering for this view (see |
ForceLayout() |
Forces this view to be laid out during the next layout pass. (Inherited from View) |
GatherTransparentRegion(Region) |
This is used by the ViewRoot to perform an optimization when the view hierarchy contains one or several SurfaceView. (Inherited from View) |
GenerateDisplayHash(String, Rect, IExecutor, IDisplayHashResultCallback) |
Called to generate a |
GetAccessibilityDelegate() |
Returns the delegate for implementing accessibility support via composition. (Inherited from View) |
GetAttributeResolutionStack(Int32) |
Returns the ordered list of resource ID that are considered when resolving attribute values
for this |
GetAutofillHints() |
Gets the hints that help an |
GetAutoSizeTextAvailableSizes() | (Inherited from TextView) |
GetClipBounds(Rect) |
Populates an output rectangle with the clip bounds of the view,
returning |
GetCompoundDrawables() |
Returns drawables for the left, top, right, and bottom borders. (Inherited from TextView) |
GetCompoundDrawablesRelative() |
Returns drawables for the start, top, end, and bottom borders. (Inherited from TextView) |
GetDrawableState() |
Return an array of resource IDs of the drawable states representing the current state of the view. (Inherited from View) |
GetDrawingCache(Boolean) |
Returns the bitmap in which this view drawing is cached. (Inherited from View) |
GetDrawingRect(Rect) |
Return the visible drawing bounds of your view. (Inherited from View) |
GetFilters() |
Returns the current list of input filters. (Inherited from TextView) |
GetFocusable() |
Returns the focusable setting for this view. (Inherited from View) |
GetFocusables(FocusSearchDirection) |
Find and return all focusable views that are descendants of this view, possibly including this view if it is focusable itself. (Inherited from View) |
GetFocusedRect(Rect) |
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. (Inherited from View) |
GetGlobalVisibleRect(Rect, Point) |
Sets |
GetGlobalVisibleRect(Rect) |
Sets |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetHasOverlappingRendering() |
Returns the value for overlapping rendering that is used internally. (Inherited from View) |
GetHitRect(Rect) |
Hit rectangle in parent's coordinates (Inherited from View) |
GetInputExtras(Boolean) |
Retrieve the input extras currently associated with the text view, which can be viewed as well as modified. (Inherited from TextView) |
GetLineBounds(Int32, Rect) |
Return the baseline for the specified line (0. (Inherited from TextView) |
GetLocalVisibleRect(Rect) |
Sets |
GetLocationInSurface(Int32[]) |
Gets the coordinates of this view in the coordinate space of the
|
GetLocationInWindow(Int32[]) |
Gets the coordinates of this view in the coordinate space of the window that contains the view, irrespective of system decorations. (Inherited from View) |
GetLocationOnScreen(Int32[]) |
Gets the coordinates of this view in the coordinate space of the device screen, irrespective of system decorations and whether the system is in multi-window mode. (Inherited from View) |
GetOffsetForPosition(Single, Single) |
Get the character offset closest to the specified absolute position. (Inherited from TextView) |
GetReceiveContentMimeTypes() |
Returns the MIME types accepted by |
GetSearchResultHighlights() |
Gets the current search result ranges. (Inherited from TextView) |
GetTag(Int32) |
Returns the tag associated with this view and the specified key. (Inherited from View) |
GetUrls() |
Returns the list of |
GetWindowVisibleDisplayFrame(Rect) |
Retrieve the overall visible display size in which the window this view is attached to has been positioned in. (Inherited from View) |
GetX() |
The visual x position of this view, in pixels. (Inherited from View) |
GetY() |
The visual y position of this view, in pixels. (Inherited from View) |
GetZ() |
The visual z position of this view, in pixels. (Inherited from View) |
InitializeFadingEdge(TypedArray) |
Initializes the fading edges from a given set of styled attributes. (Inherited from View) |
InitializeScrollbars(TypedArray) |
Initializes the scrollbars from a given set of styled attributes. (Inherited from View) |
Invalidate() |
Invalidate the whole view. (Inherited from View) |
Invalidate(Int32, Int32, Int32, Int32) |
Mark the area defined by the rect (l,t,r,b) as needing to be drawn. (Inherited from View) |
Invalidate(Rect) |
Mark the area defined by dirty as needing to be drawn. (Inherited from View) |
InvalidateDrawable(Drawable) |
Invalidates the specified Drawable. (Inherited from View) |
InvalidateOutline() |
Called to rebuild this View's Outline from its |
InvokeFitsSystemWindows() |
Obsolete.
(Inherited from View)
|
IsVisibleToUserForAutofill(Int32) |
Computes whether this virtual autofill view is visible to the user. (Inherited from View) |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
JumpDrawablesToCurrentState() |
Call |
KeyboardNavigationClusterSearch(View, FocusSearchDirection) |
Find the nearest keyboard navigation cluster in the specified direction. (Inherited from View) |
Layout(Int32, Int32, Int32, Int32) |
Assign a size and position to a view and all of its descendants (Inherited from View) |
Length() |
Returns the length, in characters, of the text managed by this TextView (Inherited from TextView) |
Measure(Int32, Int32) |
This is called to find out how big a view should be. (Inherited from View) |
MoveCursorToVisibleOffset() |
Move the cursor, if needed, so that it is at an offset that is visible to the user. (Inherited from TextView) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
OffsetLeftAndRight(Int32) |
Offset this view's horizontal location by the specified amount of pixels. (Inherited from View) |
OffsetTopAndBottom(Int32) |
Offset this view's vertical location by the specified number of pixels. (Inherited from View) |
OnAnimationEnd() |
Invoked by a parent ViewGroup to notify the end of the animation currently associated with this view. (Inherited from View) |
OnAnimationStart() |
Invoked by a parent ViewGroup to notify the start of the animation currently associated with this view. (Inherited from View) |
OnApplyWindowInsets(WindowInsets) |
Called when the view should apply |
OnAttachedToWindow() |
This is called when the view is attached to a window. (Inherited from View) |
OnBeginBatchEdit() |
Called by the framework in response to a request to begin a batch
of edit operations through a call to link |
OnCancelPendingInputEvents() |
Called as the result of a call to |
OnCapturedPointerEvent(MotionEvent) |
Implement this method to handle captured pointer events (Inherited from View) |
OnCheckIsTextEditor() |
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. (Inherited from View) |
OnCommitCompletion(CompletionInfo) |
Called by the framework in response to a text completion from
the current input method, provided by it calling
|
OnCommitCorrection(CorrectionInfo) |
Called by the framework in response to a text auto-correction (such as fixing a typo using a
dictionary) from the current input method, provided by it calling
|
OnConfigurationChanged(Configuration) |
Called when the current configuration of the resources being used by the application have changed. (Inherited from View) |
OnCreateContextMenu(IContextMenu) |
Views should implement this if the view itself is going to add items to the context menu. (Inherited from View) |
OnCreateDrawableState(Int32) |
Generate the new |
OnCreateInputConnection(EditorInfo) |
Create a new InputConnection for an InputMethod to interact with the view. (Inherited from View) |
OnCreateViewTranslationRequest(Int32[], IConsumer) |
Collects a |
OnCreateVirtualViewTranslationRequests(Int64[], Int32[], IConsumer) |
Collects |
OnDetachedFromWindow() |
This is called when the view is detached from a window. (Inherited from View) |
OnDisplayHint(Int32) |
Gives this view a hint about whether is displayed or not. (Inherited from View) |
OnDragEvent(DragEvent) |
Handles drag events sent by the system following a call to
|
OnDraw(Canvas) |
Implement this to do your drawing. (Inherited from View) |
OnDrawForeground(Canvas) |
Draw any foreground content for this view. (Inherited from View) |
OnDrawScrollBars(Canvas) |
Request the drawing of the horizontal and the vertical scrollbar. (Inherited from View) |
OnEditorAction(ImeAction) |
Called when an attached input method calls
|
OnEndBatchEdit() |
Called by the framework in response to a request to end a batch
of edit operations through a call to link |
OnFilterTouchEventForSecurity(MotionEvent) |
Filter the touch event to apply security policies. (Inherited from View) |
OnFinishInflate() |
Finalize inflating a view from XML. (Inherited from View) |
OnFinishTemporaryDetach() |
Called after |
OnFocusChanged(Boolean, FocusSearchDirection, Rect) |
Called by the view system when the focus state of this view changes. (Inherited from View) |
OnGenericMotionEvent(MotionEvent) |
Implement this method to handle generic motion events. (Inherited from View) |
OnHoverChanged(Boolean) |
Implement this method to handle hover state changes. (Inherited from View) |
OnHoverEvent(MotionEvent) |
Implement this method to handle hover events. (Inherited from View) |
OnInitializeAccessibilityEvent(AccessibilityEvent) |
Initializes an |
OnInitializeAccessibilityNodeInfo(AccessibilityNodeInfo) |
Initializes an |
OnKeyDown(Keycode, KeyEvent) |
Default implementation of |
OnKeyLongPress(Keycode, KeyEvent) |
Default implementation of |
OnKeyMultiple(Keycode, Int32, KeyEvent) |
Default implementation of |
OnKeyPreIme(Keycode, KeyEvent) |
Handle a key event before it is processed by any input method associated with the view hierarchy. (Inherited from View) |
OnKeyShortcut(Keycode, KeyEvent) |
Called on the focused view when a key shortcut event is not handled. (Inherited from View) |
OnKeyUp(Keycode, KeyEvent) |
Default implementation of |
OnLayout(Boolean, Int32, Int32, Int32, Int32) |
Called from layout when this view should assign a size and position to each of its children. (Inherited from View) |
OnMeasure(Int32, Int32) | |
OnOverScrolled(Int32, Int32, Boolean, Boolean) |
Called by |
OnPointerCaptureChange(Boolean) |
Called when the window has just acquired or lost pointer capture. (Inherited from View) |
OnPopulateAccessibilityEvent(AccessibilityEvent) |
Called from |
OnPreDraw() |
To be added (Inherited from TextView) |
OnPrivateIMECommand(String, Bundle) |
Called by the framework in response to a private command from the
current method, provided by it calling
|
OnProvideAutofillStructure(ViewStructure, AutofillFlags) |
Populates a |
OnProvideAutofillVirtualStructure(ViewStructure, AutofillFlags) |
Populates a |
OnProvideContentCaptureStructure(ViewStructure, Int32) |
Populates a |
OnProvideStructure(ViewStructure) |
Called when assist structure is being retrieved from a view as part of
|
OnProvideVirtualStructure(ViewStructure) |
Called when assist structure is being retrieved from a view as part of
|
OnReceiveContent(ContentInfo) |
Implements the default behavior for receiving content for this type of view. (Inherited from View) |
OnResolvePointerIcon(MotionEvent, Int32) |
Resolve the pointer icon that should be used for specified pointer in the motion event. (Inherited from View) |
OnRestoreInstanceState(IParcelable) |
Hook allowing a view to re-apply a representation of its internal state that had previously been generated by OnSaveInstanceState(). (Inherited from TextView) |
OnRtlPropertiesChanged(LayoutDirection) |
Called when any RTL property (layout direction or text direction or text alignment) has been changed. (Inherited from View) |
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. (Inherited from TextView) |
OnScreenStateChanged(ScreenState) |
This method is called whenever the state of the screen this view is attached to changes. (Inherited from View) |
OnScrollCaptureSearch(Rect, Point, IConsumer) |
Called when scroll capture is requested, to search for appropriate content to scroll. (Inherited from View) |
OnScrollChanged(Int32, Int32, Int32, Int32) |
This is called in response to an internal scroll in this view (i. (Inherited from View) |
OnSelectionChanged(Int32, Int32) |
This method is called when the selection has changed, in case any subclasses would like to know. (Inherited from TextView) |
OnSetAlpha(Int32) |
Invoked if there is a Transform that involves alpha. (Inherited from View) |
OnSizeChanged(Int32, Int32, Int32, Int32) |
This is called during layout when the size of this view has changed. (Inherited from View) |
OnStartTemporaryDetach() |
This is called when a container is going to temporarily detach a child, with
|
OnTextChanged(ICharSequence, Int32, Int32, Int32) |
This method is called when the text is changed, in case any subclasses would like to know. (Inherited from TextView) |
OnTextChanged(String, Int32, Int32, Int32) |
This method is called when the text is changed, in case any subclasses would like to know. (Inherited from TextView) |
OnTextContextMenuItem(Int32) |
Called when a context menu option for the text view is selected. (Inherited from TextView) |
OnTouchEvent(MotionEvent) |
Implement this method to handle touch screen motion events. (Inherited from View) |
OnTrackballEvent(MotionEvent) |
Implement this method to handle trackball motion events. (Inherited from View) |
OnViewTranslationResponse(ViewTranslationResponse) |
Called when the content from |
OnVirtualViewTranslationResponses(LongSparseArray) |
Called when the content from |
OnVisibilityAggregated(Boolean) |
Called when the user-visibility of this View is potentially affected by a change to this view itself, an ancestor view or the window this view is attached to. (Inherited from View) |
OnVisibilityChanged(View, ViewStates) |
Called when the visibility of the view or an ancestor of the view has changed. (Inherited from View) |
OnWindowFocusChanged(Boolean) |
Called when the window containing this view gains or loses focus. (Inherited from View) |
OnWindowSystemUiVisibilityChanged(SystemUiFlags) |
Override to find out when the window's requested system UI visibility
has changed, that is the value returned by |
OnWindowVisibilityChanged(ViewStates) |
Called when the window containing has change its visibility
(between |
OverScrollBy(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Boolean) |
Scroll the view with standard behavior for scrolling beyond the normal content boundaries. (Inherited from View) |
PerformAccessibilityAction(Action, Bundle) |
Performs the specified accessibility action on the view. (Inherited from View) |
PerformAccessibilityAction(GlobalAction, Bundle) |
Obsolete.
Performs the specified accessibility action on the view. (Inherited from View) |
PerformClick() |
Call this view's OnClickListener, if it is defined. (Inherited from View) |
PerformContextClick() |
Call this view's OnContextClickListener, if it is defined. (Inherited from View) |
PerformContextClick(Single, Single) |
Call this view's OnContextClickListener, if it is defined. (Inherited from View) |
PerformHapticFeedback(FeedbackConstants, FeedbackFlags) |
BZZZTT!!1! (Inherited from View) |
PerformHapticFeedback(FeedbackConstants) |
BZZZTT!!1! (Inherited from View) |
PerformLongClick() |
Calls this view's OnLongClickListener, if it is defined. (Inherited from View) |
PerformLongClick(Single, Single) |
Calls this view's OnLongClickListener, if it is defined. (Inherited from View) |
PerformReceiveContent(ContentInfo) |
Receives the given content. (Inherited from View) |
PlaySoundEffect(SoundEffects) |
Play a sound effect for this view. (Inherited from View) |
Post(Action) | (Inherited from View) |
Post(IRunnable) |
Causes the Runnable to be added to the message queue. (Inherited from View) |
PostDelayed(Action, Int64) | (Inherited from View) |
PostDelayed(IRunnable, Int64) |
Causes the Runnable to be added to the message queue, to be run after the specified amount of time elapses. (Inherited from View) |
PostInvalidate() |
Cause an invalidate to happen on a subsequent cycle through the event loop. (Inherited from View) |
PostInvalidate(Int32, Int32, Int32, Int32) |
Cause an invalidate of the specified area to happen on a subsequent cycle through the event loop. (Inherited from View) |
PostInvalidateDelayed(Int64, Int32, Int32, Int32, Int32) |
Cause an invalidate of the specified area to happen on a subsequent cycle through the event loop. (Inherited from View) |
PostInvalidateDelayed(Int64) |
Cause an invalidate to happen on a subsequent cycle through the event loop. (Inherited from View) |
PostInvalidateOnAnimation() |
Cause an invalidate to happen on the next animation time step, typically the next display frame. (Inherited from View) |
PostInvalidateOnAnimation(Int32, Int32, Int32, Int32) |
Cause an invalidate of the specified area to happen on the next animation time step, typically the next display frame. (Inherited from View) |
PostOnAnimation(IRunnable) |
Causes the Runnable to execute on the next animation time step. (Inherited from View) |
PostOnAnimationDelayed(IRunnable, Int64) |
Causes the Runnable to execute on the next animation time step, after the specified amount of time elapses. (Inherited from View) |
RefreshDrawableState() |
Call this to force a view to update its drawable state. (Inherited from View) |
ReleasePointerCapture() |
Releases the pointer capture. (Inherited from View) |
RemoveCallbacks(Action) | (Inherited from View) |
RemoveCallbacks(IRunnable) |
Removes the specified Runnable from the message queue. (Inherited from View) |
RemoveOnAttachStateChangeListener(View+IOnAttachStateChangeListener) |
Remove a listener for attach state changes. (Inherited from View) |
RemoveOnLayoutChangeListener(View+IOnLayoutChangeListener) |
Remove a listener for layout changes. (Inherited from View) |
RemoveOnUnhandledKeyEventListener(View+IOnUnhandledKeyEventListener) |
Removes a listener which will receive unhandled |
RemoveTextChangedListener(ITextWatcher) |
Removes the specified TextWatcher from the list of those whose methods are called whenever this TextView's text changes. (Inherited from TextView) |
RequestApplyInsets() |
Ask that a new dispatch of |
RequestFitSystemWindows() |
Obsolete.
Ask that a new dispatch of |
RequestFocus() |
Call this to try to give focus to a specific view or to one of its descendants. (Inherited from View) |
RequestFocus(FocusSearchDirection, Rect) |
Call this to try to give focus to a specific view or to one of its descendants and give it hints about the direction and a specific rectangle that the focus is coming from. (Inherited from View) |
RequestFocus(FocusSearchDirection) |
Call this to try to give focus to a specific view or to one of its descendants and give it a hint about what direction focus is heading. (Inherited from View) |
RequestFocusFromTouch() |
Call this to try to give focus to a specific view or to one of its descendants. (Inherited from View) |
RequestLayout() |
Call this when something has changed which has invalidated the layout of this view. (Inherited from View) |
RequestPointerCapture() |
Requests pointer capture mode. (Inherited from View) |
RequestRectangleOnScreen(Rect, Boolean) |
Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough. (Inherited from View) |
RequestRectangleOnScreen(Rect) |
Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough. (Inherited from View) |
RequestUnbufferedDispatch(Int32) |
Request unbuffered dispatch of the given event source class to this view. (Inherited from View) |
RequestUnbufferedDispatch(MotionEvent) |
Request unbuffered dispatch of the given stream of MotionEvents to this View. (Inherited from View) |
RequireViewById(Int32) |
Finds the first descendant view with the given ID, the view itself if the ID matches
|
RequireViewById<T>(Int32) | (Inherited from View) |
ResetPivot() |
Clears any pivot previously set by a call to |
ResetResolvedDrawables() | (Inherited from TextView) |
ResetResolvedLayoutDirection() | (Inherited from TextView) |
ResolveDrawables() | (Inherited from TextView) |
ResolveTextDirection() | (Inherited from TextView) |
RestoreDefaultFocus() |
Gives focus to the default-focus view in the view hierarchy that has this view as a root. (Inherited from View) |
RestoreHierarchyState(SparseArray) |
Restore this view hierarchy's frozen state from the given container. (Inherited from View) |
SaveAttributeDataForStyleable(Context, Int32[], IAttributeSet, TypedArray, Int32, Int32) |
Stores debugging information about attributes. (Inherited from View) |
SaveHierarchyState(SparseArray) |
Store this view hierarchy's frozen state into the given container. (Inherited from View) |
ScheduleDrawable(Drawable, Action, Int64) | (Inherited from View) |
ScheduleDrawable(Drawable, IRunnable, Int64) |
Schedules an action on a drawable to occur at a specified time. (Inherited from View) |
ScrollBy(Int32, Int32) |
Move the scrolled position of your view. (Inherited from View) |
ScrollTo(Int32, Int32) |
Set the scrolled position of your view. (Inherited from View) |
SendAccessibilityEvent(EventTypes) |
Sends an accessibility event of the given type. (Inherited from View) |
SendAccessibilityEventUnchecked(AccessibilityEvent) |
This method behaves exactly as |
SetAccessibilityDataSensitive(AccessibilityDataSensitive) |
Specifies whether this view should only allow interactions from
|
SetAccessibilityDelegate(View+AccessibilityDelegate) |
Sets a delegate for implementing accessibility support via composition (as opposed to inheritance). (Inherited from View) |
SetAllCaps(Boolean) |
Sets the properties of this field to transform input to ALL CAPS display. (Inherited from TextView) |
SetAllowClickWhenDisabled(Boolean) |
Enables or disables click events for this view when disabled. (Inherited from View) |
SetAllowedHandwritingDelegatePackage(String) |
Specifies that this view may act as a handwriting initiation delegator for a delegate editor view from the specified package. (Inherited from View) |
SetAllowedHandwritingDelegatorPackage(String) |
Specifies that a view from the specified package may act as a handwriting delegator for this delegate editor view. (Inherited from View) |
SetAutofillHints(String[]) |
Sets the hints that help an |
SetAutoSizeTextTypeUniformWithConfiguration(Int32, Int32, Int32, Int32) |
Specify whether this widget should automatically scale the text to try to perfectly fit within the layout bounds. (Inherited from TextView) |
SetAutoSizeTextTypeUniformWithPresetSizes(Int32[], Int32) |
Specify whether this widget should automatically scale the text to try to perfectly fit within the layout bounds. (Inherited from TextView) |
SetAutoSizeTextTypeWithDefaults(AutoSizeTextType) |
Specify whether this widget should automatically scale the text to try to perfectly fit within the layout bounds by using the default auto-size configuration. (Inherited from TextView) |
SetBackgroundColor(Color) |
Sets the background color for this view. (Inherited from View) |
SetBackgroundDrawable(Drawable) |
Obsolete.
This member is deprecated. (Inherited from View) |
SetBackgroundResource(Int32) |
Set the background to a given resource. (Inherited from View) |
SetButtonDrawable(Drawable) |
Sets a drawable as the compound button image. (Inherited from CompoundButton) |
SetButtonDrawable(Int32) |
Sets a drawable as the compound button image given its resource identifier. (Inherited from CompoundButton) |
SetButtonIcon(Icon) |
Sets the button of this CompoundButton to the specified Icon. (Inherited from CompoundButton) |
SetCameraDistance(Single) |
Sets the distance along the Z axis (orthogonal to the X/Y plane on which views are drawn) from the camera to this view. (Inherited from View) |
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. (Inherited from TextView) |
SetCompoundDrawablesRelative(Drawable, Drawable, Drawable, Drawable) |
Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text. (Inherited from TextView) |
SetCompoundDrawablesRelativeWithIntrinsicBounds(Drawable, Drawable, Drawable, Drawable) |
Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text. (Inherited from TextView) |
SetCompoundDrawablesRelativeWithIntrinsicBounds(Int32, Int32, Int32, Int32) |
Sets the Drawables (if any) to appear to the start of, above, to the end of, and below the text. (Inherited from TextView) |
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. (Inherited from TextView) |
SetCompoundDrawablesWithIntrinsicBounds(Int32, Int32, Int32, Int32) |
Sets the Drawables (if any) to appear to the left of, above, to the right of, and below the text. (Inherited from TextView) |
SetCursorVisible(Boolean) |
Set whether the cursor is visible. (Inherited from TextView) |
SetEditableFactory(EditableFactory) |
Sets the Factory used to create new |
SetElegantTextHeight(Boolean) |
Set the TextView's elegant height metrics flag. (Inherited from TextView) |
SetEms(Int32) |
Sets the width of the TextView to be exactly |
SetError(ICharSequence, 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. (Inherited from TextView) |
SetError(String, 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. (Inherited from TextView) |
SetExtractedText(ExtractedText) |
Apply to this text view the given extracted text, as previously
returned by |
SetFadingEdgeLength(Int32) |
Set the size of the faded edge used to indicate that more content in this view is available. (Inherited from View) |
SetFilters(IInputFilter[]) |
Sets the list of input filters that will be used if the buffer is Editable. (Inherited from TextView) |
SetFitsSystemWindows(Boolean) |
Sets whether or not this view should account for system screen decorations
such as the status bar and inset its content; that is, controlling whether
the default implementation of |
SetFocusable(ViewFocusability) |
Sets whether this view can receive focus. (Inherited from View) |
SetFocusedSearchResultHighlightColor(Color) |
Sets focused search result highlight color. (Inherited from TextView) |
SetFontVariationSettings(String) |
Sets TrueType or OpenType font variation settings. (Inherited from TextView) |
SetForegroundGravity(GravityFlags) |
Describes how the foreground is positioned. (Inherited from View) |
SetFrame(Int32, Int32, Int32, Int32) |
Assign a size and position to this view. (Inherited from TextView) |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetHandwritingBoundsOffsets(Single, Single, Single, Single) |
Set the amount of offset applied to this view's stylus handwriting bounds. (Inherited from View) |
SetHeight(Int32) |
Sets the height of the TextView to be exactly |
SetHighlightColor(Color) |
Sets the color used to display the selection highlight. (Inherited from TextView) |
SetHint(Int32) |
Sets the text to be displayed when the text of the TextView is empty, from a resource. (Inherited from TextView) |
SetHintTextColor(Color) |
Sets the color of the hint text for all the states (disabled, focussed, selected. (Inherited from TextView) |
SetHintTextColor(ColorStateList) |
Sets the color of the hint text. (Inherited from TextView) |
SetHorizontallyScrolling(Boolean) |
Sets whether the text should be allowed to be wider than the View is. (Inherited from TextView) |
SetImeActionLabel(ICharSequence, ImeAction) |
Change the custom IME action associated with the text view, which
will be reported to an IME with |
SetImeActionLabel(String, ImeAction) |
Change the custom IME action associated with the text view, which
will be reported to an IME with |
SetIncludeFontPadding(Boolean) |
Set whether the TextView includes extra top and bottom padding to make room for accents that go above the normal ascent and descent. (Inherited from TextView) |
SetInputExtras(Int32) |
Set the extra input data of the text, which is the
|
SetLayerPaint(Paint) |
Updates the |
SetLayerType(LayerType, Paint) |
Specifies the type of layer backing this view. (Inherited from View) |
SetLeftTopRightBottom(Int32, Int32, Int32, Int32) |
Assign a size and position to this view. (Inherited from View) |
SetLineHeight(Int32, Single) |
Sets an explicit line height to a given unit and value for this TextView. (Inherited from TextView) |
SetLines(Int32) |
Sets the height of the TextView to be exactly |
SetLineSpacing(Single, Single) |
Sets line spacing for this TextView. (Inherited from TextView) |
SetLinkTextColor(Color) |
Sets the color of links in the text. (Inherited from TextView) |
SetLinkTextColor(ColorStateList) |
Sets the color of links in the text. (Inherited from TextView) |
SetMarqueeRepeatLimit(Int32) |
Sets how many times to repeat the marquee animation. (Inherited from TextView) |
SetMaxEms(Int32) |
Sets the width of the TextView to be at most |
SetMaxHeight(Int32) |
Sets the height of the TextView to be at most |
SetMaxLines(Int32) |
Sets the height of the TextView to be at most |
SetMaxWidth(Int32) |
Sets the width of the TextView to be at most |
SetMeasuredDimension(Int32, Int32) |
This method must be called by |
SetMinEms(Int32) |
Sets the width of the TextView to be at least |
SetMinHeight(Int32) |
Sets the height of the TextView to be at least |
SetMinimumHeight(Int32) |
Sets the minimum height of the view. (Inherited from View) |
SetMinimumWidth(Int32) |
Sets the minimum width of the view. (Inherited from View) |
SetMinLines(Int32) |
Sets the height of the TextView to be at least |
SetMinWidth(Int32) |
Sets the width of the TextView to be at least |
SetOnApplyWindowInsetsListener(View+IOnApplyWindowInsetsListener) |
Set an |
SetOnCapturedPointerListener(View+IOnCapturedPointerListener) |
Set a listener to receive callbacks when the pointer capture state of a view changes. (Inherited from View) |
SetOnCheckedChangeListener(CompoundButton+IOnCheckedChangeListener) |
Register a callback to be invoked when the checked state of this button changes. (Inherited from CompoundButton) |
SetOnClickListener(View+IOnClickListener) |
Register a callback to be invoked when this view is clicked. (Inherited from View) |
SetOnContextClickListener(View+IOnContextClickListener) |
Register a callback to be invoked when this view is context clicked. (Inherited from View) |
SetOnCreateContextMenuListener(View+IOnCreateContextMenuListener) |
Register a callback to be invoked when the context menu for this view is being built. (Inherited from View) |
SetOnDragListener(View+IOnDragListener) |
Register a drag event listener callback object for this View. (Inherited from View) |
SetOnEditorActionListener(TextView+IOnEditorActionListener) |
Set a special listener to be called when an action is performed on the text view. (Inherited from TextView) |
SetOnGenericMotionListener(View+IOnGenericMotionListener) |
Register a callback to be invoked when a generic motion event is sent to this view. (Inherited from View) |
SetOnHoverListener(View+IOnHoverListener) |
Register a callback to be invoked when a hover event is sent to this view. (Inherited from View) |
SetOnKeyListener(View+IOnKeyListener) |
Register a callback to be invoked when a hardware key is pressed in this view. (Inherited from View) |
SetOnLongClickListener(View+IOnLongClickListener) |
Register a callback to be invoked when this view is clicked and held. (Inherited from View) |
SetOnReceiveContentListener(String[], IOnReceiveContentListener) |
Sets the listener to be |
SetOnScrollChangeListener(View+IOnScrollChangeListener) |
Register a callback to be invoked when the scroll X or Y positions of this view change. (Inherited from View) |
SetOnSystemUiVisibilityChangeListener(View+IOnSystemUiVisibilityChangeListener) |
Set a listener to receive callbacks when the visibility of the system bar changes. (Inherited from View) |
SetOnTouchListener(View+IOnTouchListener) |
Register a callback to be invoked when a touch event is sent to this view. (Inherited from View) |
SetOutlineAmbientShadowColor(Color) |
Sets the color of the ambient shadow that is drawn when the view has a positive Z or elevation value. (Inherited from View) |
SetOutlineSpotShadowColor(Color) |
Sets the color of the spot shadow that is drawn when the view has a positive Z or elevation value. (Inherited from View) |
SetPadding(Int32, Int32, Int32, Int32) |
Sets the padding. (Inherited from View) |
SetPaddingRelative(Int32, Int32, Int32, Int32) |
Sets the relative padding. (Inherited from TextView) |
SetRawInputType(InputTypes) |
Directly change the content type integer of the text view, without modifying any other state. (Inherited from TextView) |
SetRenderEffect(RenderEffect) |
Configure the |
SetScrollCaptureCallback(IScrollCaptureCallback) |
Sets the callback to receive scroll capture requests. (Inherited from View) |
SetScrollContainer(Boolean) |
Change whether this view is one of the set of scrollable containers in its window. (Inherited from View) |
SetScroller(Scroller) |
Sets the Scroller used for producing a scrolling animation (Inherited from TextView) |
SetScrollIndicators(Int32, Int32) |
Sets the state of the scroll indicators specified by the mask. (Inherited from View) |
SetScrollIndicators(Int32) |
Sets the state of all scroll indicators. (Inherited from View) |
SetSearchResultHighlightColor(Color) |
Sets the search result highlight color. (Inherited from TextView) |
SetSearchResultHighlights(Int32[]) |
Sets the search result ranges with flatten range representation. (Inherited from TextView) |
SetSelectAllOnFocus(Boolean) |
Set the TextView so that when it takes focus, all the text is selected. (Inherited from TextView) |
SetShadowLayer(Single, Single, Single, Color) |
Gives the text a shadow of the specified blur radius and color, the specified distance from its drawn position. (Inherited from TextView) |
SetSingleLine() |
Sets the properties of this field (lines, horizontally scrolling, transformation method) to be for a single-line input. (Inherited from TextView) |
SetSingleLine(Boolean) |
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. (Inherited from TextView) |
SetSpannableFactory(SpannableFactory) |
Sets the Factory used to create new |
SetSwitchTextAppearance(Context, Int32) |
Sets the switch text color, size, style, hint color, and highlight color from the specified TextAppearance resource. |
SetSwitchTypeface(Typeface, TypefaceStyle) |
Sets the typeface and style in which the text should be displayed on the switch, 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. |
SetSwitchTypeface(Typeface) |
Sets the typeface in which the text should be displayed on the switch. |
SetTag(Int32, Object) |
Sets a tag associated with this view and a key. (Inherited from View) |
SetText(Char[], Int32, Int32) |
Sets the TextView to display the specified slice of the specified char array. (Inherited from TextView) |
SetText(ICharSequence, TextView+BufferType) |
Sets the text to be displayed using a string resource identifier. (Inherited from TextView) |
SetText(Int32, TextView+BufferType) |
Sets the text to be displayed using a string resource identifier. (Inherited from TextView) |
SetText(Int32) |
Sets the text to be displayed using a string resource identifier. (Inherited from TextView) |
SetText(String, TextView+BufferType) |
Sets the text to be displayed using a string resource identifier. (Inherited from TextView) |
SetTextAppearance(Context, Int32) |
Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource. (Inherited from TextView) |
SetTextAppearance(Int32) |
Sets the text appearance from the specified style resource. (Inherited from TextView) |
SetTextColor(Color) |
Sets the text color for all the states (normal, selected, focused) to be this color. (Inherited from TextView) |
SetTextColor(ColorStateList) |
Sets the text color. (Inherited from TextView) |
SetTextCursorDrawable(Int32) |
Sets the Drawable corresponding to the text cursor. (Inherited from TextView) |
SetTextIsSelectable(Boolean) |
Sets whether the content of this view is selectable by the user. (Inherited from TextView) |
SetTextKeepState(ICharSequence, TextView+BufferType) |
Sets the text to be displayed but retains the cursor position. (Inherited from TextView) |
SetTextKeepState(ICharSequence) |
Sets the text to be displayed but retains the cursor position. (Inherited from TextView) |
SetTextKeepState(String, TextView+BufferType) |
Sets the text to be displayed but retains the cursor position. (Inherited from TextView) |
SetTextKeepState(String) |
Sets the text to be displayed but retains the cursor position. (Inherited from TextView) |
SetTextSelectHandle(Int32) |
Sets the Drawable corresponding to the selection handle used for positioning the cursor within text. (Inherited from TextView) |
SetTextSelectHandleLeft(Int32) |
Sets the Drawable corresponding to the left handle used for selecting text. (Inherited from TextView) |
SetTextSelectHandleRight(Int32) |
Sets the Drawable corresponding to the right handle used for selecting text. (Inherited from TextView) |
SetTextSize(ComplexUnitType, Single) |
Set the default text size to a given unit and value. (Inherited from TextView) |
SetThumbIcon(Icon) |
Set the drawable used for the switch "thumb" - the piece that the user can physically touch and drag along the track - to the specified Icon. |
SetThumbResource(Int32) |
Set the drawable used for the switch "thumb" - the piece that the user can physically touch and drag along the track. |
SetTrackIcon(Icon) |
Set the drawable used for the track that the switch slides within to the specified Icon. |
SetTrackResource(Int32) |
Set the drawable used for the track that the switch slides within. |
SetTransitionVisibility(ViewStates) |
Changes the visibility of this View without triggering any other changes. (Inherited from View) |
SetTypeface(Typeface, TypefaceStyle) |
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. (Inherited from TextView) |
SetViewTranslationCallback(IViewTranslationCallback) |
Sets a |
SetWidth(Int32) |
Sets the width of the TextView to be exactly |
SetWillNotCacheDrawing(Boolean) |
When a View's drawing cache is enabled, drawing is redirected to an offscreen bitmap. (Inherited from View) |
SetWillNotDraw(Boolean) |
If this view doesn't do any drawing on its own, set this flag to allow further optimizations. (Inherited from View) |
SetWindowInsetsAnimationCallback(WindowInsetsAnimation+Callback) |
Sets a |
SetX(Single) |
Sets the visual x position of this view, in pixels. (Inherited from View) |
SetY(Single) |
Sets the visual y position of this view, in pixels. (Inherited from View) |
SetZ(Single) |
Sets the visual z position of this view, in pixels. (Inherited from View) |
ShowContextMenu() |
Shows the context menu for this view. (Inherited from View) |
ShowContextMenu(Single, Single) |
Shows the context menu for this view anchored to the specified view-relative coordinate. (Inherited from View) |
StartActionMode(ActionMode+ICallback, ActionModeType) |
Start an action mode with the default type |
StartActionMode(ActionMode+ICallback) |
Start an action mode with the default type |
StartAnimation(Animation) |
Start the specified animation now. (Inherited from View) |
StartDrag(ClipData, View+DragShadowBuilder, Object, Int32) |
Starts a drag and drop operation. (Inherited from View) |
StartDragAndDrop(ClipData, View+DragShadowBuilder, Object, Int32) |
Starts a drag and drop operation. (Inherited from View) |
StartNestedScroll(ScrollAxis) |
Begin a nestable scroll operation along the given axes. (Inherited from View) |
StopNestedScroll() |
Stop a nested scroll in progress. (Inherited from View) |
ToArray<T>() | (Inherited from Object) |
Toggle() |
Change the checked state of the view to the inverse of its current state (Inherited from CompoundButton) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
TransformMatrixToGlobal(Matrix) |
Modifies the input matrix such that it maps view-local coordinates to on-screen coordinates. (Inherited from View) |
TransformMatrixToLocal(Matrix) |
Modifies the input matrix such that it maps on-screen coordinates to view-local coordinates. (Inherited from View) |
UnregisterFromRuntime() | (Inherited from Object) |
UnscheduleDrawable(Drawable, Action) | (Inherited from View) |
UnscheduleDrawable(Drawable, IRunnable) |
Cancels a scheduled action on a drawable. (Inherited from View) |
UnscheduleDrawable(Drawable) |
Unschedule any events associated with the given Drawable. (Inherited from View) |
UpdateDragShadow(View+DragShadowBuilder) |
Updates the drag shadow for the ongoing drag and drop operation. (Inherited from View) |
VerifyDrawable(Drawable) |
If your view subclass is displaying its own Drawable objects, it should override this function and return true for any Drawable it is displaying. (Inherited from View) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
WillNotCacheDrawing() |
Returns whether or not this View can cache its drawing or not. (Inherited from View) |
WillNotDraw() |
Returns whether or not this View draws on its own. (Inherited from View) |
Events
AfterTextChanged | (Inherited from TextView) |
BeforeTextChanged | (Inherited from TextView) |
CapturedPointer | (Inherited from View) |
CheckedChange | (Inherited from CompoundButton) |
Click | (Inherited from View) |
ContextClick | (Inherited from View) |
ContextMenuCreated | (Inherited from View) |
Drag | (Inherited from View) |
EditorAction | (Inherited from TextView) |
FocusChange | (Inherited from View) |
GenericMotion | (Inherited from View) |
Hover | (Inherited from View) |
KeyPress | (Inherited from View) |
LayoutChange | (Inherited from View) |
LongClick | (Inherited from View) |
LongClickUseDefaultHapticFeedback | (Inherited from View) |
ScrollChange | (Inherited from View) |
SystemUiVisibilityChange | (Inherited from View) |
TextChanged | (Inherited from TextView) |
Touch | (Inherited from View) |
UnhandledKeyEvent | (Inherited from View) |
ViewAttachedToWindow | (Inherited from View) |
ViewDetachedFromWindow | (Inherited from View) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |