Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6838939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:39:29+00:00 2026-05-26T23:39:29+00:00

Im new to android. i have tried to built an application which has 2

  • 0

Im new to android. i have tried to built an application which has 2 spinner…
i have few doubts to clear before going deep to my application..

please give brief answer to my question…

  1. is it possible to have 2 spinners in one view?
  2. can i add setOnItemSelectedListener(this) for both?
  3. if yes, how could i know which option is selected on both the spinners? like spinner.getSelectedItemPosition(); on both the spinners?

waiting for ur valuable replies. reference materials are also appreciable

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:39:29+00:00Added an answer on May 26, 2026 at 11:39 pm

    Yes, you can have multiple spinner’s that can be managed by single listener or you can have seperate Listener for each.

    For Single Listener you can do something like this,

    Set the Listener

    spinner1.setOnItemSelectedListener(this);
    spinner2.setOnItemSelectedListener(this);
    

    Then you can use onItemSelected to get perform the action related to the spinner’s.

        @Override
            public void onItemSelected(AdapterView<?> parent, View view,
                                                          int position,long arg3) 
            {
            int id = parent.getId();
            switch (id) 
            {
                    case R.id.spinner1:
                    // your stuff here
                    break;
                case R.id.spinner2:
                   // your stuff here
                break;
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a new development machine and installed Android SDK. I tried to
I'm new to Android, trying to launch the project, which is being built and
I have eclipse and android sdk. I have tried to add through Eclipse>Window>Install new
I have tried to create a android application that sends a serialzed object from
Ok, im fairly new to android but i have managed to teach myself the
i'm new at Android world, and i have a doubt, is there any method
I am completely new to android, and pretty much a Java newb. I have
I have to admit that I'm new to Java and Android. db4o seems to
I have this code on my Android phone. URI uri = new URI(url); HttpPost
The new Android 2.1 SDK (version 7) has a new class called SignalStrength: http://developer.android.com/reference/android/telephony/SignalStrength.html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.