how to changed editext values from first to last in customise listview in android

Posted by prakash on Stack Overflow See other posts from Stack Overflow or by prakash
Published on 2012-04-10T05:23:26Z Indexed on 2012/04/10 5:30 UTC
Read the original article Hit count: 263

Filed under:
|

i am getting menunames from database then append to the custom listview edittext . now i am changing some values in edittext . i want all values with changed values of edittext into array

           Example :x,y,z menunames comes from database i append editext(Custom listview)
           now i am changed y to b 
           now i want x,b,z in arraylist 

i try this code(Base adapter class)

           public View getView(int position, View convertView, ViewGroup parent) {
    final ViewHolder holder;


    if (convertView == null) {
        holder = new ViewHolder();
        convertView = inflater.inflate(R.layout.editmainmenulist, null);
        holder.caption = (EditText) convertView
                .findViewById(R.id.editmaimenu);
        holder.caption1=(ImageView) convertView.findViewById(R.id.menuimage);
        convertView.setTag(holder);
    } else {
        holder = (ViewHolder) convertView.getTag();
    }
    //Fill EditText with the value you have in data source
    holder.caption.setText(itemnames[position]);
    holder.caption.setId(position);
    holder.caption1.setImageBitmap(bmps[position]);


    arr.add(holder.caption.getText().toString());//here i get menunames data only not changed edittext values



    return convertView;
}
  }

 class ViewHolder {
EditText caption;
ImageView caption1;
}

 class ListItem {
String caption;
 }

please help me

© Stack Overflow or respective owner

Related posts about android

Related posts about android-listview