Android Java;
I would like to be able to add fields to a class based on condition. Such fields is TextView, it can be one or more. I don't want to declare redundant ones.
class VieHolder{
TextView textView1;
// textView2, textView3, ... textViewN based on condition
...
}
Solution should not include additional dependency!