public class InputErrorFeedbackLayout
extends LinearLayout
Modifier and Type | Class and Description |
---|---|
static interface |
InputErrorFeedbackLayout.CustomInputErrorDelegate
Delegate that can set the UI user feedback for a custom input error.
|
static class |
InputErrorFeedbackLayout.ErrorFeedbackState
Enum that indicates the visual feedback type for an input error.
|
Constructor and Description |
---|
InputErrorFeedbackLayout(Context context) |
InputErrorFeedbackLayout(Context context,
AttributeSet attrs) |
InputErrorFeedbackLayout(Context context,
AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
protected void |
onFinishInflate() |
void |
setErrorState(InputErrorFeedbackLayout.ErrorFeedbackState errorFeedbackState) |
void |
setErrorState(InputErrorFeedbackLayout.ErrorFeedbackState errorFeedbackState,
InputErrorFeedbackLayout.CustomInputErrorDelegate errorDelegate)
Set the error state that will be displayed.
|
public InputErrorFeedbackLayout(Context context)
public InputErrorFeedbackLayout(Context context, AttributeSet attrs)
public InputErrorFeedbackLayout(Context context, AttributeSet attrs, int defStyleAttr)
protected void onFinishInflate()
public void setErrorState(InputErrorFeedbackLayout.ErrorFeedbackState errorFeedbackState)
public void setErrorState(InputErrorFeedbackLayout.ErrorFeedbackState errorFeedbackState, InputErrorFeedbackLayout.CustomInputErrorDelegate errorDelegate)
InputErrorFeedbackLayout.CustomInputErrorDelegate
to treat the UI feedback.errorFeedbackState
- The ErrorFeedbackState that will be set.errorDelegate
- The delegate that will set the UI state of the custom error state.