customview = inflater.inflate(r.layout.mydialog, null);通過此語句擷取view“指針”(借用c的術語),在新的activity中實作調用自定義對話框中的控件。