When to use Android PopupWindow vs Dialog

后端 未结 3 1233
臣服心动
臣服心动 2020-12-16 10:30

I\'m unclear about when to use PopupWindow vs Dialog. Any insight would be much appreciated. Thanks.

3条回答
  •  难免孤独
    2020-12-16 11:20

    I think Dialog should use when you need to take action before proceed to continue next. It never cover the screen and always adjust center aligned as modal event. On other side, PopupWindow has flexibility to adjust information anywhere in the screen as position wise like sticky footer, sticky header, on left, right, center etc. as per location set. For Showing Information it's good option as there is facility to animate also. In short, For Showing Information with minimal action go with PopupWindow and for controlled action to proceed next go with Dialog.

提交回复
热议问题