コード例 #1
0
        /**
         * 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);
        }
コード例 #2
0
		/**
         * 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;
		}