public class ActivityForShow extends Activity
{
//have a ListView layout
ListView.setAdapter(SingleRowAdapter);
}
public class SingleRowAdapter extends ArrayAdapter
{
//every row has a CheckBox ,a TextView and a Button
}
現在我想處理CheckBox和Button事件,做一些後臺工作並在對話框中顯示結果。
但是如何在ActivityForShow中獲取Checkbox和Button的Refences?
findViewById()將導致異常。定製ListView上的事件句柄
但在SingleRowAdapter類中,我無法創建對話框,對嗎? – outcast