i made code that populate listView from EditText view and enter it on button and it all work, BUT when i want to animate new item, that i just entered from EditText i can not do it, because i can not capture moment when listView get that new View. Here how that look:
listaRadnikaArray.add(0,novoIme.getText().toString());
adapter.notifyDataSetChanged(listaRadnikaArray);
LayoutInflater inflator = getLayoutInflater();
v = inflator.inflate(R.layout.listview_podesavanje, null);
View noviRadnikView = lvRadnici.getChildAt(0); //this return null or wrong view
noviRadnikView.setAlpha(0); // because listView lvRadnici do not have that new view jet.
noviRadnikView.animate().setDuration(500).alpha(1); // why????
can anyone, please , explain to me what is a problem.