@ userMod2 Check below solutions -
When you use
myList.getAdapter (). GetView (me, NULL, NULL)
you get a new instance of the item view, try
ListView.getChildAt (position)
method like this
private void ButtonClick() { View v; ArrayList<String> mannschaftsnamen = new ArrayList<String>(); EditText et; for (int i = 0; i < myList.getCount(); i++) { v = myList.getAdapter().getView(i, null, null); et = (EditText) v.findViewById(i); mannschaftsnamen.add(et.getText().toString()); }
Decision 2
public void onScroll(AbsListView v, int firstVisibleItem, int visibleCount, int totalItemCount) { ListView lv = this.getListView(); int childCount = lv.getChildCount(); for (int i = 0; i < childCount; i++) { View v = lv.getChildAt(i); TextView tx = (TextView) v.findViewById(R.id.mytext); tx.setTextSize(textSize); } }
source share