CAN INTERACT WITH SPINNER ITEMS SHOWN IN DIALOG USING ONITEMSELECTDLISTENER?

Ankita Pandey

Total Post:183

Points:1285
Posted by  Ankita Pandey
 963  View(s)
Ratings:
Rate this:
Hi Everyone!

I have a spinner showing categories like energy,power etc in my unitsconverter application. I am using 3 spinners for categories ,units (from and to). From spinner am 

displaying items in dialog . Can interact with items without using dialoginterface.onclicklistener. If i use dialoginterface.onclicklistener on each item in dialog, i 

have implement it for all units of category for all category.It'l be very messy. So do i have any other alternate solution or can implement it in simple manner using 

dialoginterface.onclicklistener??

Thanks in advance.
  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: Can interact with spinner items shown in dialog using onitemselectdlistener?

    Hi Ankita!

    You should be able to use setOnItemClickListener() on a spinner.

    I hope this code might be resolve your problem. 

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!