Can I get ExtendedEditText from TextFieldBoxes ??
Closed this issue · 2 comments
Thien658jjh commented
if (view instanceof TextFieldBoxes) {
View childView = ((TextFieldBoxes) view).get
if (childView instanceof TextView) {
/// It never call event I already add ExtendedEditText into TextFieldBoxes
}
}
Thien658jjh commented
I also created the class Extend TextFieldBoxes but I got null
public class TextFieldBoxesCustom extends TextFieldBoxes {
public TextFieldBoxesCustom(Context context) {
super(context);
}
public TextFieldBoxesCustom(Context context, AttributeSet attrs) {
super(context, attrs);
}
public TextFieldBoxesCustom(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
public ExtendedEditText getEditText() {
return findEditTextChild();
}
}
Thien658jjh commented
And I fixed by change this method to:
public ExtendedEditText getEditText() {
if (editText != null) {
return editText;
}
return null;
}