I mean something like this
public class ConditionalEditText extends EditText implements TextWatcher
{
TextView tv;
....
}
The TextView is supposed to be displayed only when the EditText satisfies some user specified condition.
I tried to do it like this
public class ConditionalEditText extends LinearLayout implements TextWatcher
{
EditText edt;
TextView tv;
....
}
but then I cannot specify different XML attributes for edt for different instances of the view in my main layout.