Dialog comments

1359 ワード

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