ya but increase the more no. of rows then it is not getting the data from
edittext. the means increase up to to 12 row,

On Wed, Sep 21, 2011 at 6:13 PM, Ratheesh Valamchuzhy
<android...@gmail.com>wrote:

>
> Hi
>
> As per your code there is 5 tedittext in you app ......
>
> we can get the values of each edittext(5 nos)  in that pgm...
> see the code ...........
> =======================================
>
> public View getView(final int position, View convertView, ViewGroup parent)
>
> {
> ViewHolder holder;
> if (convertView == null)
> {
> convertView = mInflater.inflate(R.layout.adaptor_content, null);
> holder = new ViewHolder();
> holder.textLine = (TextView) convertView.findViewById(R.id.textLine);
> holder.textLine2 =(TextView) convertView.findViewById(R.id.textLine2);
> holder.Edittext = (EditText) convertView.findViewById(R.id.edittext_qty);
> editTextList.add(holder.Edittext);
> convertView.setOnClickListener(new OnClickListener()
> {
> private int pos = position;
> @Override
> public void onClick(View v)
> {
>
>     String q=editTextList.get(position).getText().toString();
>     Toast.makeText(context, "data-"+ q, Toast.LENGTH_SHORT).show();
>
> }
> });
> convertView.setTag(holder);
> }
> else
> {
> holder = (ViewHolder) convertView.getTag();
> }
> holder.textLine.setText(TitleString[position] + String.valueOf(position));
> holder.textLine2.setText(DetailString[position] +
> String.valueOf(position));
> return convertView;
> }
> =============================
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to