0

I want to pop open a DatePickerDialog in a certain screen, but I am required to not grey out the rest of the screen (the view behind the dialog) when the DatePickerDialog window opens. Is there a way to achieve this?

Siavash
  • 7,583
  • 13
  • 49
  • 69
  • what do you mean " grey out the rest of the screen " – hakki Sep 12 '14 at 01:00
  • Normally when a Dialog is opened, it appears on top of the screen that it was originated from, and everything behind it gets darker to create focus on the dialog box. – Siavash Sep 12 '14 at 01:03

1 Answers1

1

You probably would want to create your own custom dialog. You can extend DialogFramgent and change it accordingly.

See the Android doc HERE for a great example.

Or, use PopupWindow if you want a popover dialog with control of the background, see this SO post.

Community
  • 1
  • 1
Shane
  • 972
  • 2
  • 12
  • 27
  • I've seen that doc, but it doesn't say anything about controlling and UI aspects OUTSIDE of the dialog itself. Do you know how I can modify the area outside of the dialog? – Siavash Sep 12 '14 at 02:01
  • Please see my updated answer. Scroll down to the picture in the answer and you will see that the background is not greyed out. – Shane Sep 12 '14 at 02:04