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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:07:00+00:00 2026-05-27T15:07:00+00:00

I have attached a TextWatcher to an EditText component in my application, and are

  • 0

I have attached a TextWatcher to an EditText component in my application, and are calling this after the text has changed; (mListPopupWindow is ListPopupWindow)

mListPopupWindow = new ListPopupWindow(getActivity());
mListPopupWindow.setAdapter(mAdapter);
mListPopupWindow.setContentWidth(400);
mListPopupWindow.setAnchorView(mRootView);
mListPopupWindow.setModal(false);
mListPopupWindow.setOnItemClickListener(MyFragment.this 
mListPopupWindow.setOnDismissListener(MyFragment.this);
mListPopupWindow.show();

The OnClick event that is present in my fagment gets the OnClick event if the popup is constructed with setModel(true). It does not get the Onclick event if the popup is not modal.

I am using this View to create a Suggest Box that change the contents of the popup list based on what the user is typing in the EditText. If I set the popup window to modal, the Edittext component loses focus every time the user enters a new letter into the EditText. That is very uncool 🙂

Can anyone explain how to get Click events when the ListPopupWindow is not modal, or how else to construct a “suggest” list below an EditText View?

  • 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-27T15:07:01+00:00Added an answer on May 27, 2026 at 3:07 pm

    This question is no longer relevant. I was trying to achieve the same an AutocompleteTextView. I did not know that such a view existed, and tried to roll my own.

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

Sidebar

Related Questions

I have written a attached property which stores amongst others a help text. This
So this is kind of hard to explain in text, I have attached an
I have an EditText with a TextWatcher attached to it and the onChangeText method
I have application which has some networking code which runs asynchronously. I have attached
I have attached an event to a text box using addEventListener . It works
I have a div which I have attached an onclick event to. in this
This is quite difficult to explain so I have attached an excel file here:
I am facing an issue with this simple jQuery code. I have attached the
I have an application that contains Menu and sub menus. I have attached Appliocation
I have moved a component of our application from a webservice to a Windows

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.