How I can change buttontext of the first element in listview?
View v = getListView().getChildAt(0 - yourListView.getFirstVisiblePosition());
Button Butt = (Button) v.findViewById(R.id.buttonLine);
Butt.setText("newtext");
This code crashes application.
Solved.
This code sets buttons texts one by one. You must just set some condition with if (for example if package installed set “Uninstall”, and if not set “Install”)
. With this code I can’t set “second of first element”. But I can add counter and check condition.