Ejemplo n.º 1
0
		public RelativeLayout getViewSlide(){
			
			if (_type == 1) {
				Template1 plantilla = new Template1 (context);
				plantilla.Title = _title;
				plantilla.Author = _author;
				plantilla.Contenido = _paragraph;
				plantilla.ImageUrl = _imageurl;
				plantilla.ColorTexto = _colorS;
				//Console.WriteLine ("CREA PLANTILLAAAAAAAAA  111111");
				return plantilla;

			}
			if (_type == 2) {
				Template2 plantilla = new Template2 (context);
				plantilla.Title = _title;
				plantilla.Contenido = _paragraph;
				//Console.WriteLine ("CREA PLANTILLAAAAAAAAA  222222");
				return plantilla;

			}
			if (_type == 3) {
				Template3 plantilla = new Template3 (context);
				plantilla.Title = _title;
				/*
				string [] lista = new string[_itemize.Count];
				for (int i = 0; i < _itemize.Count; i++) {
					lista[i]=_itemize[i].Text;
				}
				*/
				string[] lista = {"HOLA"," COMO"," ESTAS"," :)"};
				//Console.WriteLine ("CREA PLANTILLAAAAAAAAA  333333");
				plantilla.ListItems = lista;
				return plantilla;
			}
			if (_type == 4) {
				Template4 plantilla = new Template4 (context);
				return plantilla;
				//Console.WriteLine ("CREA PLANTILLAAAAAAAAA  4444444444");
			}
			if (_type == 5) {
				PhraseView plantilla = new PhraseView (context);
				plantilla.Author = _author;
				plantilla.Phrase = _paragraph;
				plantilla.ImagenComilla = "icons/comillasa.png";
				plantilla.ImagenBarra = "icons/lineafraseamarilla.png";
				//Console.WriteLine ("CREA PLANTILLAAAAAAAAA  5");
				return plantilla;

			}
			if (_type == 6) {
				CustomerImageView plantilla = new CustomerImageView (context);
				plantilla.Title = _title;
				plantilla.Description = _paragraph;
				//plantilla.Imagen = _imageurl;//BitmapFactory.DecodeByteArray (_imagebytes, 0, _imagebytes.Length);
				return plantilla;
			}

			if (_type == 7) {
				CustomerVideoView plantilla = new CustomerVideoView (context);
				plantilla.Title = _title;
				//plantilla.Imagen = _imageurl;
				//plantilla.ImagenPlay = "images/playa.png";
				return plantilla;
			}
			return null;
		}