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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:28:07+00:00 2026-05-25T16:28:07+00:00

I have a twist on a common question I’ve seen in here, and I’m

  • 0

I have a twist on a common question I’ve seen in here, and I’m puzzled.

What I need is simply a dialog box for each sub item of a list item. I have seen a dialog for a list item, but I need it down to the list item’s item. Currently I’ve tried doing that within the adapter when inside the getView() method.

For example:

@Override
public View getView(int position, View convertView, ViewGroup parent)
{
    View v = convertView;

    if (v == null)
    {
        LayoutInflater li = (LayoutInflater) _context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        v = li.inflate(_resourceId, null);
    }

    string description = "howdy Test";

    TextView description = (TextView) v.findViewById(R.id.description);
    description.setText(description );
    description.setOnClickListener(new View.OnClickListener()
    {
        public void onClick(View view)
        {
            AlertDialog.Builder dia = new AlertDialog.Builder(view.getContext());
            dia.setTitle(view.getContext().getResources().getString(R.string.DESCRIPTION_TITLE));
            dia.create();
        }
    });
}

With that example above, it does go into the onClick() method, but nothing happens with the AlertDialog. Has anyone else tried this? is there a better way? Even better what am I doing wrong?

Thanks,
Kelly

  • 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-25T16:28:08+00:00Added an answer on May 25, 2026 at 4:28 pm

    You have to call the show() method on your dia object.Link here to the android docs!

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

Sidebar

Related Questions

I need to be able to have spaces come up between each number. Here
This is a common question but I have a slight twist to it so
I know this question has been done but I have a slightly different twist
I need ideas... I have a classic scenario with a twist, containing the following
I have a directory ( dir1 , say) where each sub-directory contains the same
Similar to my previous question , but now I have a twist! My data
I asked a similar question yesterday, but now I have a slight twist. Since
A new twist to somewhat common question: In my interactive script I pre-fill the
Have you ever seen any of there error messages? -- SQL Server 2000 Could
Ok, I have an update function with a weird twist. Due to the nature

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.