Tuesday, January 4, 2011

AlertDialog的ListView全白問題


new AlertDialog.Builder(this)
.setAdapter(new ArrayAdapter(getApplicationContext(), android.R.layout.select_dialog_item,
new String[]{"1","2","3"}),
new DialogInterface.OnClickListener(){}
.show();
中,若介面使用android.R.layout.simple_list_item_1,會出現螢幕全白
所以必須使用紅字的介面

No comments: