Ohh sure!
Sorry I forgot to put the code

Here is the code:

private class MyAdapter extends ArrayAdapter<Item> {

        private ArrayList<Item> items;

        public MyAdapter(Context context, int textViewResourceId,
ArrayList<Item> items) {
                super(context, textViewResourceId, items);
                this.items = items;
        }
        @Override
        public View getView(final int position, View convertView,
ViewGroup parent) {
                View v = convertView;

                if (v == null) {
                        LayoutInflater vi =
(LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                        v = vi.inflate(R.layout.cartlistview, null);
                }

                final Item myClass = items.get(position);
                if (myClass != null) {
                        //here I initialize all widgets including the editable 
text and set
its key listener here
                }

                return v;
        }

        public boolean areAllItemsEnabled() {
            return false;
        }
}


Is there any code I miss? NB: I haven't put any focus method in any
line of my source code and its xml layout..

On Jul 28, 11:42 am, yasir perwez <[email protected]> wrote:
> Hi,
>
> Can you please put relevant portion of code here?
>
> Yasir
>
>
>
>
>
>
>
>
>
> On Thu, Jul 28, 2011 at 8:03 AM, ndiiie 90 <[email protected]> wrote:
> > Hi all,
> > I have a case where I have custom listview with the editable text in each of
> > the item.
> > The strange case is when I click the editable text, not the first one item
> > (for example, 2nd, 3rd, 4th item, etc), the listview will focus to the 1st
> > item, so that I can't modify the content of 2nd, 3rd, 4th, etc editable
> > text.
> > How can I solve this problem?
>
> > Thanks
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
>
> --
> Yasir Perwez

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

Reply via email to