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 7810167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:40:27+00:00 2026-06-02T03:40:27+00:00

I want to setup a button, that when clicked on will pull data from

  • 0

I want to setup a button, that when clicked on will pull data from my database and fill a list (like when using a spinner). I’ve used popup menus before but haven’t figured out a way to make them float (anyone know how to make the size a float and not pix). Is there a way to have a button pull up a list like a spinner or is it just better for me to change my ui to have the spinner instead of using an clickable image button?

  • 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-02T03:40:28+00:00Added an answer on June 2, 2026 at 3:40 am

    You can create a dialog that takes an adapter of your items

    YourCustomAdapter adapter = new YourCustomAdapter(/**whatever args you need to get your content**/);
    int selectedItem = -1; //somehow get your previously selected choice
    Builder builder = new Builder(context);
    builder.setSingleChoiceItems(adapter, selectedItem, new DialogInterface.OnClickListener() {
    
        @Override
        public void onClick(DialogInterface dialog, int which)
        {
             //handle the item you clicked here
    
        }
    };
    builder.setTitle("Select Attachments").setCancelable(true);
    
    Dialog dialog = builder.create();
    

    Note that if you need to select multiple items there are methods for multiple choice items.
    builder.setMultipleChoice…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey, I want to add a button(link), that when clicked will filter the pagination
I want to setup a table that can: Save the data on the user's
I want to have a Button that when clicked, removes all the checked items
I want a setup like this: +- /ApplicationFolder -- App.exe -- Core.dll -- AnotherShared.dll
I want to setup a serialized task queue using NSOperationQueue but I'm a little
I want to setup local domains like sub1.mydomain.dev and www.mydomain.dev on my local IIS
I want to setup a route so that if the user goes to http://mysite.com/page.html
I have some code where I have a button that I'd like to create
I have setup a form that allows a user to make selections from drop-down
I have some data formatted into a table. I want to setup an onclick

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.