2011-07-29 40 views

回答

0

使用裏面的微調器進行自定義視圖。然後創建一個對話框並將對話框的視圖設置爲您的自定義視圖

LayoutInflater inflater = (LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE); 
View layout = inflater.inflate(R.layout.custom_dialog, null); 
AlertDialog.Builder builder = new AlertDialog.Builder(this); 
builder.setView(layout); 
AlertDialog CustomDialog = builder.create(); 
相關問題