0

i want to show dialog (not alert dialog) but i don't want dialog show modal.

How to set dialog to show modal or not?

this is my code

Dialog dialog = new Dialog(CategoryList.this);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setContentView(actionview);
dialog.show()
user2955394
  • 1,063
  • 4
  • 17
  • 34
  • do you want to use Toast instead then? – Scary Wombat Jan 22 '14 at 02:02
  • By non-modal do you mean the dialog is part of the screen and all all visible parts are able to be interacted with? You should probably defined your dialog as part of your layout. – MikeHelland Jan 22 '14 at 02:04
  • @user2310289 in my actionview is has a button when i use Toast a button onclick event is not work. then i change to use dialog. – user2955394 Jan 22 '14 at 02:12
  • @MazeHatter Can you show me an example? sorry i'm little english skill. – user2955394 Jan 22 '14 at 02:24
  • Try to mock up how you want the screen to look. Use an image editor to make an image that represents how you want the screen to look. Post that image here. PopupWindow is a good answer too – MikeHelland Jan 22 '14 at 02:52

1 Answers1

1

you can use PopupWindow instead, and setOutsideTouchable(true). or try this

Community
  • 1
  • 1
jiashie
  • 147
  • 1
  • 11