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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:46:11+00:00 2026-06-06T22:46:11+00:00

actually i am displaying a pop up with ok cancel button when user clicks

  • 0

actually i am displaying a pop up with ok cancel button when user clicks on edit text.
My problem is when ever user double clicks on edit text two pop up comes. so if user has selected any value from pop up its second pop up still remain there.

I don’t know how to deal with it.

Any help will appreciated. thanks in advance.
This is my layout

<EditText
      android:id="@+id/date_control"
      android:layout_width="0dp"
      android:layout_height="wrap_content"
      android:layout_weight="1" 
      android:background="@drawable/bg_edit_text"
      android:focusableInTouchMode="false"
      android:inputType="none"
      android:editable="false"
      android:clickable="true"
      android:layout_marginRight="5dp" />

My java class calling the controller

datePicker = (EditText) findView(R.id.date_control);
datePicker.setOnClickListener(myControllerClass);

its controller

MyDialog myDialog = new myDialog(activity, "Select Date", 
                    date, DateTimeDialog.DATE_PICKER);
myDialog.show();
  • 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-06T22:46:14+00:00Added an answer on June 6, 2026 at 10:46 pm

    If you keep a field reference to your dialog you could check to see if its already showing

    if(myDialog == null) {
        myDialog = new myDialog(activity, "Select Date", 
                        date, DateTimeDialog.DATE_PICKER);
    }
    
    if(!myDialog.isShowing()) {
        myDialog.show();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a databound listbox which is actually displaying two columns of data. It
I have written an SWT UI which has a primary function of displaying text
I am getting a problem in displaying the .gif file in my view.Actually I
Actually i am displaying events in calendar and for that i am adding subviews
I am displaying text in a Java JEditorPane using HTML to fomrat the text.
I'm considering two different ways of completing the same task of displaying dynamic HTML
I am facing some problem with MySQL database. actually It was fast when I
I have two forms: one that takes user information (name, birthdate, etc): formA. And
i am making an edit Screen of my Account. My account class has some
I'm new to Sencha Touch and the Ext JS logic. Actually, I'm displaying a

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.