public override void OnAttach(Activity activity) { base.OnAttach(activity); contactPicture = SvgUtils.GetBitmapFromSvgRes(activity.Resources, Resource.Drawable.ic_contact_picture, 80.ToPixels (), 80.ToPixels ()); }
public ActivityItemAdapter(Activity activity) { this.activity = activity; this.cache = BitmapCache.CreateCache(activity, "MapCache"); this.faceCache = BitmapCache.CreateCache(activity, "FaceCache"); var display = activity.WindowManager.DefaultDisplay; var point = new Point(); display.GetSize(point); this.mapWidth = point.X; NoFacePicture = SvgUtils.GetBitmapFromSvgRes(activity.Resources, Resource.Drawable.ic_contact_picture, 64.ToPixels (), 64.ToPixels ()); NoFaceDrawable = new VignetteDrawable(NoFacePicture, withEffect: false); NoMapPicture = PrepareNoMapPicture(Resource.Drawable.gmaps); }