Loading ListView data Holder data item repetition, disorder

I use BaseAdapter:
The following code:
 mBaseAdapter=new BaseAdapter() {

@Override
public View getView(int arg0, View arg1, ViewGroup arg2) {
// TODO Auto-generated method stub
Myholder myHolder;
if(arg1 == null){
myHolder=new Myholder();
arg1=LayoutInflater.from(MainActivity.this).inflate(R.layout.item, null);
myHolder.text_one=(TextView) arg1.findViewById(R.id.tv_title);
myHolder.text_two=(TextView) arg1.findViewById(R.id.tv_content);
arg1.setTag(myHolder);

}else{
myHolder=(Myholder) arg1.getTag();
}
HashMap<String,String> s = list.get(arg0);
Log.i("Tag", " load position : "+arg0+" , title : "+s.get("ItemTitle")+" , text : "+s.get("ItemText")+" , view1 : "+myHolder.text_one+" , view2 : "+myHolder.text_two);
myHolder.text_one.setText(list.get(arg0).get("ItemTitle"));
myHolder.text_two.setText(list.get(arg0).get("ItemText"));

return arg1;
}

This is the getView code ,
But the data of the log is very strange, when I will listView log into the tow:
11-26 16:54:49.596: I/Tag(28093): load position : 17 , Title: seventeenth row header, text: seventeenth lines , view1 : android.widget.TextView@4076c1b0 , view2 : android.widget.TextView@4076c930
11-26 16:54:49.626: I/Tag(28093): load position : 18 , Title: Eighteenth row header, text: Eighteenth lines , view1 : android.widget.TextView@4076c1b0 , view2 : android.widget.TextView@4076c930
11-26 16:54:49.896: I/Tag(28093): load position : 19 , Title: Nineteenth row header, text: Nineteenth lines , view1 : android.widget.TextView@4076c1b0 , view2 : android.widget.TextView@4076c930
11-26 16:54:50.497: I/Tag(28093): load position : 20 , Title: Twentieth row header, text: Twentieth lines , view1 : android.widget.TextView@4076c1b0 , view2 : android.widget.TextView@4076c930
11-26 16:54:50.967: I/Tag(28093): load position : 21 , Title: twenty-first row header, text: twenty-first lines , view1 : android.widget.TextView@4076c1b0 , view2 : android.widget.TextView@4076c930
11-26 16:54:51.658: I/Tag(28093): load position : 22 , Title: twenty-second row header, text: twenty-second lines , view1 : android.widget.TextView@4076c1b0 , view2 : android.widget.TextView@4076c930
11-26 16:54:52.078: I/Tag(28093): load position : 23 , Title: twenty-third row header, text: twenty-third lines , view1 : android.widget.TextView@4076c1b0 , view2 : android.widget.TextView@4076c930
11-26 16:54:54.521: I/Tag(28093): load position : 24 , Title: twenty-fourth row header, text: twenty-fourth lines , view1 : android.widget.TextView@4076c1b0 , view2 : android.widget.TextView@4076c930
11-26 16:54:56.382: I/Tag(28093): load position : 25 , Title: twenty-fifth row header, text: twenty-fifth lines , view1 : android.widget.TextView@4076c1b0 , view2 : android.widget.TextView@4076c930
11-26 16:54:57.413: I/Tag(28093): load position : 26 , Title: twenty-sixth row header, text: twenty-sixth lines , view1 : android.widget.TextView@4076c1b0 , view2 : android.widget.TextView@4076c930
11-26 16:55:01.698: I/Tag(28093): load position : 27 , Title: twenty-seventh row header, text: twenty-seventh lines , view1 : android.widget.TextView@4076c1b0 , view2 : android.widget.TextView@4076c930
11-26 16:55:02.879: I/Tag(28093): load position : 28 , Title: twenty-eighth row header, text: twenty-eighth lines , view1 : android.widget.TextView@4076c1b0 , view2 : android.widget.TextView@4076c930

Started by Robin at December 08, 2016 - 11:37 PM

Do not know ah..

Posted by Estelle at December 14, 2016 - 12:31 AM

You have no problem ah, ID not changed.

Posted by Lester at December 24, 2016 - 12:39 AM

myHolder.text_one.setText(list.get(arg0).get("ItemTitle"));
myHolder.text_two.setText(list.get(arg0).get("ItemText"));
You don't have s.get(arg0).get("ItemTitle")?

Posted by Lester at December 30, 2016 - 1:00 AM

myHolder.text_one.setText(list.get(arg0).get("ItemTitle"));
myHolder.text_two.setText(list.get(arg0).get("ItemText"));
You don't have s.get ("ItemTitle")? Just posted the wrong

Posted by Lester at January 02, 2017 - 1:19 AM

Forget to say the Adapter data type is
private ArrayList<HashMap<String,String>> list;
=====================
For this problem I want to say is to pull up list getView, can be seen from the log tag to get inside the view are the same, cause updates to view are the same, that needs to be updated is not updated.
List display is a title of a content is TextView

Posted by Robin at January 12, 2017 - 2:07 AM

Lord, don't panic, slowly good, this is not a big problem.

Posted by Derrick at January 13, 2017 - 1:51 AM

Slowly too, or a local view changes, the other unchanged. This problem will not occur without holder.

Posted by Robin at January 13, 2017 - 2:44 AM