Exemplo n.º 1
0
        /**
         * Make a SpeechView to hold each row.
         */
        public override View GetView(int position, View convertView, ViewGroup parent)
        {
            SpeechView2 sv;

            if (convertView == null)
            {
                sv = new SpeechView2(self, Shakespeare.Titles[position], Shakespeare.Dialogue[position], mExpanded[position]);
            }
            else
            {
                sv          = (SpeechView2)convertView;
                sv.Title    = Shakespeare.Titles[position];
                sv.Dialogue = Shakespeare.Dialogue[position];
                sv.Expanded = mExpanded[position];
            }

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

			return sv;
		}