Abhishek,

it's kinda hard to resolve this without any code, but here's how i solved
it:

in the main activity, i defined the following:

setOnItemClickListener(new OnItemClickListener() {
                public void onItemClick(AdapterView<?> arg0, View arg1, int
arg2,
                        long arg3) {
Log.d(this.getClass().getSimpleName, arrayList.get((int) arg3).toString);
}});

so within the onItemClickListener, i make a reference to my ArrayList and
show them in the log.

Hopes it helps,

Regards,

Patrick


2009/12/21 Abhi <[email protected]>

> That didn't help..... :(
>
> Can someone guide me to the right tutorial/sample code?
>
> Thanks,
>
> Abhishek
>
> On Dec 18, 11:03 pm, android09 <[email protected]> wrote:
> > Hi Abhishek,
> >
> > You can to through the below example for creatingcustomview. Follow
> > the below link.
> >
> > http://www.anddev.org/basic_drag_and_drop-t3095.html
> >
> > I hope you will get the something from the above example.
> >
> > Best Luck.
> > Thanks.
> >
> > On Dec 18, 7:47 am, Abhi <[email protected]> wrote:
> >
> >
> >
> > > Hi guys,
> >
> > > I have my owncustomadapter to create acustomlistviewwith
> > > checkbox, textview and button in each row. I want to implement onClick
> > > on Button and take different action based on which row button is
> > > pressed. How can I use onClickListener in this case? Define it inside
> > > getView? If so how?
> >
> > > Thanks
> >
> > > Abhishek- Hide quoted text -
> >
> > - Show quoted text -
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Met vriendelijke groet,


Patrick Plaatje

NDC|VBK de uitgevers
Sixmastraat 32, 8915 PA Leeuwarden
Postbus 394, 8901 BD Leeuwarden
T   (058) - 284 5044
M  (06) - 158 966 34

-- 
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