/** * Make a SpeechView to hold each row. */ public override View GetView(int position, View convertView, ViewGroup parent) { SpeechView sv; if (convertView == null) { sv = new SpeechView(self, Shakespeare.Titles[position], Shakespeare.Dialogue[position]); } else { sv = (SpeechView)convertView; sv.Title = Shakespeare.Titles[position]; sv.Dialogue = Shakespeare.Dialogue[position]; } return(sv); }
/** * Make a SpeechView to hold each row. */ public override View GetView (int position, View convertView, ViewGroup parent) { SpeechView sv; if (convertView == null) { sv = new SpeechView (self, Shakespeare.Titles[position], Shakespeare.Dialogue[position]); } else { sv = (SpeechView) convertView; sv.Title = Shakespeare.Titles[position]; sv.Dialogue = Shakespeare.Dialogue[position]; } return sv; }