ReplacementTransformationMethod.OnFocusChanged Method
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.
Overloads
| Name | Description |
|---|---|
| OnFocusChanged(View, ICharSequence, Boolean, FocusSearchDirection, Rect) |
This method is called when the TextView that uses this TransformationMethod gains or loses focus. |
| OnFocusChanged(View, String, Boolean, FocusSearchDirection, Rect) |
Receives a focus-change notification without taking any action. |
OnFocusChanged(View, ICharSequence, Boolean, FocusSearchDirection, Rect)
This method is called when the TextView that uses this TransformationMethod gains or loses focus.
[Android.Runtime.Register("onFocusChanged", "(Landroid/view/View;Ljava/lang/CharSequence;ZILandroid/graphics/Rect;)V", "GetOnFocusChanged_Landroid_view_View_Ljava_lang_CharSequence_ZILandroid_graphics_Rect_Handler")]
public virtual void OnFocusChanged(Android.Views.View? view, Java.Lang.ICharSequence? sourceText, bool focused, Android.Views.FocusSearchDirection direction, Android.Graphics.Rect? previouslyFocusedRect);
[<Android.Runtime.Register("onFocusChanged", "(Landroid/view/View;Ljava/lang/CharSequence;ZILandroid/graphics/Rect;)V", "GetOnFocusChanged_Landroid_view_View_Ljava_lang_CharSequence_ZILandroid_graphics_Rect_Handler")>]
abstract member OnFocusChanged : Android.Views.View * Java.Lang.ICharSequence * bool * Android.Views.FocusSearchDirection * Android.Graphics.Rect -> unit
override this.OnFocusChanged : Android.Views.View * Java.Lang.ICharSequence * bool * Android.Views.FocusSearchDirection * Android.Graphics.Rect -> unit
Parameters
- view
- View
The view whose focus changed; unused by this implementation.
- sourceText
- ICharSequence
The untransformed text; unused by this implementation.
- focused
- Boolean
Whether the view has focus; unused by this implementation.
- direction
- FocusSearchDirection
The direction of focus movement; unused by this implementation.
- previouslyFocusedRect
- Rect
The previous focused view's bounds; unused by this implementation.
Implements
- Attributes
Remarks
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.
Applies to
OnFocusChanged(View, String, Boolean, FocusSearchDirection, Rect)
Receives a focus-change notification without taking any action.
public void OnFocusChanged(Android.Views.View? view, string? sourceText, bool focused, Android.Views.FocusSearchDirection direction, Android.Graphics.Rect? previouslyFocusedRect);
member this.OnFocusChanged : Android.Views.View * string * bool * Android.Views.FocusSearchDirection * Android.Graphics.Rect -> unit
Parameters
- view
- View
The view whose focus changed; unused by this implementation.
- sourceText
- String
The untransformed text; unused by this implementation.
- focused
- Boolean
Whether the view has focus; unused by this implementation.
- direction
- FocusSearchDirection
The direction of focus movement; unused by this implementation.
- previouslyFocusedRect
- Rect
The previous focused view's bounds; unused by this implementation.
Remarks
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.