void OnCategorySelected (CategoriesViewModel model)
		{
			MessengerInstance.Send<NotifySearchBarPutText>(new NotifySearchBarPutText
				{
					Query = model.Query
				});
		}
 void OnCategorySelected(CategoriesViewModel model)
 {
     MessengerInstance.Send <NotifySearchBarPutText>(new NotifySearchBarPutText
     {
         Query = model.Query
     });
 }
Exemplo n.º 3
0
        View OnJobAdapterView(int position, CategoriesViewModel data, View convertView)
        {
            var view = convertView ?? LayoutInflater.FromContext(Activity).Inflate(Resource.Layout.CategoriesLayout, null);

            var title = view.FindViewById <TextView> (Resource.Id.title);

            var image = view.FindViewById <ImageView>(Resource.Id.image);

            title.Text = data.Title;

            using (var bitmapToDisplay = _bitmapResizer.ResizeImageFromResources(data.Image, 100, 100))
                image.SetImageBitmap(bitmapToDisplay);

            return(view);
        }
		View OnJobAdapterView (int position, CategoriesViewModel data, View convertView)
		{
			var view = convertView ?? LayoutInflater.FromContext(Activity).Inflate(Resource.Layout.CategoriesLayout, null);

			var title = view.FindViewById<TextView> (Resource.Id.title);

			var image = view.FindViewById<ImageView>(Resource.Id.image);

			title.Text = data.Title;

			using(var bitmapToDisplay = _bitmapResizer.ResizeImageFromResources(data.Image,100, 100))
				image.SetImageBitmap(bitmapToDisplay);
			
			return view;
		}