1. 使用 DialogFragment
2。DialogInterface 提供事件处理接口和dismiss()和cancel()接口
3。Diaglog implements DialogInterface 。 findViewbyID and setContentView(),show()
4。AlertDialog setView
5。AlertDialog.Builder
创建Dialog或
FrameLayout fl = (FrameLayout) findViewById(android.R.id.custom); fl.addView(myView, new LayoutParams(MATCH_PARENT, WRAP_CONTENT));
AlertDialog的布局
- Title
- content
- 3 buttons
6. Dialog fullscreen 或activity fullscreen as Dialog