public override void OnViewCreated(View view, Bundle savedInstanceState) { base.OnViewCreated(view, savedInstanceState); view.Background = AndroidExtensions.DefaultBackground; mapFragment.GetMapAsync(this); // Setup info pane ipName = pane.FindViewById <TextView> (Resource.Id.InfoViewName); ipName2 = pane.FindViewById <TextView> (Resource.Id.InfoViewSecondName); ipBikes = pane.FindViewById <TextView> (Resource.Id.InfoViewBikeNumber); ipSlots = pane.FindViewById <TextView> (Resource.Id.InfoViewSlotNumber); ipDistance = pane.FindViewById <TextView> (Resource.Id.InfoViewDistance); ipBikesImg = pane.FindViewById <ImageView> (Resource.Id.InfoViewBikeNumberImg); ipSlotsImg = pane.FindViewById <ImageView> (Resource.Id.InfoViewSlotNumberImg); if (!AndroidExtensions.IsMaterial) { bikeDrawable = DrawableCompat.Wrap(ResCompat.GetDrawable(Resources, Resource.Drawable.ic_bike, null)); rackDrawable = DrawableCompat.Wrap(ResCompat.GetDrawable(Resources, Resource.Drawable.ic_lock, null)); } else { bikeDrawable = ResCompat.GetDrawable(Resources, Resource.Drawable.ic_bike_vector, null); rackDrawable = ResCompat.GetDrawable(Resources, Resource.Drawable.ic_racks_vector, null); } ipBikesImg.SetImageDrawable(bikeDrawable); ipSlotsImg.SetImageDrawable(rackDrawable); streetViewFragment.GetStreetViewPanoramaAsync(this); fab = view.FindViewById <SwitchableFab> (Resource.Id.fabButton); fab.Click += HandleFabClicked; }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { var view = inflater.Inflate(Resource.Layout.MapLayout, container, false); mapFragment = view.FindViewById <MapView> (Resource.Id.map); mapFragment.OnCreate(savedInstanceState); lastUpdateText = view.FindViewById <TextView> (Resource.Id.UpdateTimeText); SetupInfoPane(view); flashBar = new FlashBarController(view); streetViewFragment = pane.FindViewById <StreetViewPanoramaView> (Resource.Id.streetViewPanorama); streetViewFragment.OnCreate(savedInstanceState); return(view); }