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

  • Home
  • SEARCH
  • 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 8858881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:55:42+00:00 2026-06-14T14:55:42+00:00

My code is very long so I will describe my problem. It’s about the

  • 0

My code is very long so I will describe my problem. It’s about the size and position of a Spinner. My ListView has items, each item has a TextView and a Spinner. The data in Spinners is different. I only operate data of the first one when I click the Spinner. It will pop out. The data in the Spinner comes from a list of database. When I edit the data (delete, move, add) in fact, I edit the data from an array. The question is when I pop out the spinner it will fill the whole screen, show at the centre of screen, the area around it will be gray and if I click the gray area the Spinner will hide again but I need it keep out state so I can do something about its data and don’t affect the other area (the grey area). Would anyone help me please? Thank you very much.

  • 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-06-14T14:55:43+00:00Added an answer on June 14, 2026 at 2:55 pm

    If you are trying to detect when the Spinner is hidden then you should implement OnItemSelectedListener in your Activity.

    public void onItemSelected(AdapterView<?> parent, View view, 
            int pos, long id) {
        // An item was selected. Handle your data here
    }
    
    public void onNothingSelected(AdapterView<?> parent) {
        // No item was selected
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to store in memory a very long array.Each array item will be
How should I format very long strings in my source code? I follow the
I have the following code in specman: var x := some.very.long.path.to.a.variable.in.another.struct; while (x ==
I'm trying to speed up my code because it's running very long. I already
though the code is a little long, most of them are very simple IMO.
Currently, each td../td prints in just 1 line which makes the source code very
I have following problem: I have a very long string String str = abcdefghiart----
Take a guess ... how long will this program take to produce the very
I have this code: String s = A very long string containing + many
Here's my code: $long = str_repeat('a very long string text', 100); // try changing

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.