public class

FloatingHintEditText

extends LocalizedEditText
java.lang.Object
   ↳ android.view.View
     ↳ android.widget.TextView
       ↳ android.widget.EditText
         ↳ androidx.appcompat.widget.AppCompatEditText
           ↳ com.pspdfkit.ui.LocalizedEditText
             ↳ com.pspdfkit.ui.FloatingHintEditText
Known Direct Subclasses

Class Overview

An AppCompatEditText extension containing a floating hint text, a colored underline and bottom error text.

Summary

Nested Classes
interface FloatingHintEditText.EditTextListener Listener interface for events on the FloatingHintEditText
[Expand]
Inherited Constants
From class android.widget.TextView
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
FloatingHintEditText(Context context)
FloatingHintEditText(Context context, AttributeSet attrs)
FloatingHintEditText(Context context, AttributeSet attrs, int style)
FloatingHintEditText(Context context, String floatingHintText)
FloatingHintEditText(Context context, AttributeSet attrs, String floatingHintText)
FloatingHintEditText(Context context, AttributeSet attrs, int style, String floatingHintText)
Public Methods
boolean onKeyPreIme(int keyCode, KeyEvent event)
void setErrorColor(int errorColor)
Sets the color for the error text.
void setFloatingHintColor(int floatingHintColor)
Sets the color for the floating hint text.
void setHintColor(int color)
Sets the color for the hint text.
void setOnFocusChangeListener(View.OnFocusChangeListener listener)
final void setPadding(int left, int top, int right, int bottom)
void setPdfEditTextListener(FloatingHintEditText.EditTextListener listener)
Set a listener to be notified of a pdf editing events.
void setPrimaryColor(int color)
Sets the primary color for the FloatingHintEditText.
void showError()
Show error.
Protected Methods
void onDraw(Canvas canvas)
[Expand]
Inherited Methods
From class androidx.appcompat.widget.AppCompatEditText
From class android.widget.EditText
From class android.widget.TextView
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewTreeObserver.OnPreDrawListener
From interface android.view.accessibility.AccessibilityEventSource
From interface androidx.core.view.TintableBackgroundView

Public Constructors

public FloatingHintEditText (Context context)

public FloatingHintEditText (Context context, AttributeSet attrs)

public FloatingHintEditText (Context context, AttributeSet attrs, int style)

public FloatingHintEditText (Context context, String floatingHintText)

public FloatingHintEditText (Context context, AttributeSet attrs, String floatingHintText)

public FloatingHintEditText (Context context, AttributeSet attrs, int style, String floatingHintText)

Public Methods

public boolean onKeyPreIme (int keyCode, KeyEvent event)

public void setErrorColor (int errorColor)

Sets the color for the error text.

Parameters
errorColor Error text color.

public void setFloatingHintColor (int floatingHintColor)

Sets the color for the floating hint text.

Parameters
floatingHintColor Floating hint text color.

public void setHintColor (int color)

Sets the color for the hint text.

Parameters
color Hint text color.

public void setOnFocusChangeListener (View.OnFocusChangeListener listener)

public final void setPadding (int left, int top, int right, int bottom)

public void setPdfEditTextListener (FloatingHintEditText.EditTextListener listener)

Set a listener to be notified of a pdf editing events. Calling this method will replace any previously set listener. You may provide null to clear the listener.

Parameters
listener FloatingHintEditText.EditTextListener that should be notified, or null to clear the listener.

public void setPrimaryColor (int color)

Sets the primary color for the FloatingHintEditText.

Parameters
color Primary color to set.

public void showError ()

Show error.

Protected Methods

protected void onDraw (Canvas canvas)