As you can see from your calls to
findViewById
, you cannot use strings to reference resources, you must use the actual resource identifiers. So you could try something like:
int[] Sellers = {r.id.seller1, r.id.seller2, r.id.seller3, r.id.seller4, ...};
t[i] = (EditText) findViewById(Sellers[i]);
But all of this begs the question: do you really need
EditText
types for this, or could a
List<T>
work better?