i have several layout inflater in my code, which is necessary:
for (String valori : timers_valori){
LayoutInflater inflater=(LayoutInflater)getSystemService(context.LAYOUT_INFLATER_SERVICE);
View menuLayout = inflater.inflate(R.layout.elemento_statistica, contenitore_statistiche, true);
TextView nome=(TextView)menuLayout.findViewById(R.id.timer_testo_1);
nome.setText(x+"");
menuLayout.invalidate();
x=x+1;
}
(the code is trimmed)
it works, but it continue to edit the first layout, for example:
OUTPUT ciao ... ...
INSTEAD I NEED hello hola ciao
any idea? i think it's not linkin correctly the textview.
thanks!