意味のあるフルボーダーのカスタムerrorTextを作りたいです。EditText
editeText.setError(" ");
必須フィールドまたは検証フィールドであることを示すのに適した赤い境界線でエラーメッセージを表示します。
アイコンの違いだけのカスタマイズエラーメッセージを作成しました。
エラーメッセージのアイコンを変更するために使用されるスニップ:-
final Drawable error_indicator;
error_indicator = getResources().getDrawable(R.drawable.error_icon_mdpi);
int left = 0;
int top = 0;
int right = error_indicator.getIntrinsicHeight();
int bottom = error_indicator.getIntrinsicWidth();
error_indicator.setBounds(new Rect(left, top, right, bottom));
addSxName.setError("Enter patient name in here", error_indicator);
これがその外観です。
私が探しているもの: -
しかし、ツールチップまたはその赤い枠線が少し目を引くものとして。
その errorBox の変更を変更できますか?