편집 텍스트와 이미지가있는 단일보기 레이아웃이 있습니다. listview에 데이터를 표시하려면 arrayadapter를 사용하고 있습니다. 첫 번째 행에 텍스트 편집에 값을 입력하는 중. 데이터가 listview의 다른 행으로 반복됩니다. 어떻게 해결할 수 있습니까?Listview에는 편집 텍스트가있는 Arrayadpater가 있습니다.
View rowView = null;
try {
if (convertView == null) {
//inflating view.
rowView =
inflater.inflate(R.layout.list_single_view,null,false);
}
else
{
//Setting view if layout is already implemented.
rowView = convertView;
}
imageView = (ImageView)
rowView.findViewById(R.id.iv_activity_image_single);
//Facing issue here in editText . The entered text gets repeated
et_image_name = (EditText)
rowView.findViewById(R.id.txt_user_notes);
et_image_description = (EditText)
rowView.findViewById(R.id.txt_user_description);
//Loading image using universal image loader to imageView
if (equipmentPicturesList.get(position) != null) {
Constant.imageLoader.displayImage("file:///" +
equipmentPicturesList.get(position).toString(), imageView, Constant.options,
new SimpleImageLoadingListener());
}
else {
imageView.setBackgroundResource(R.drawable.ic_launcher);
}
}
catch (Exception e) {
Logger.loadStackTrace(e);
}
return rowView;
우리가 집중할 수 있도록 일부 코딩 시도를 게시하십시오. – xlembouras
감사 xlembouras 및 Xaver Kapeller. 확인해주십시오. –