예제 #1
0
 private void InitializeViews(Bundle savedInstanceState)
 {
     SetContentView(Resource.Layout.activity_end_navigation);
     endNavigationLayout = FindViewById <ConstraintLayout>(Resource.Id.endNavigationLayout);
     navigationView      = FindViewById <NavigationView>(Resource.Id.navigationView);
     loading             = FindViewById <ProgressBar>(Resource.Id.loading);
     message             = FindViewById <TextView>(Resource.Id.message);
     launchNavigationFab = FindViewById <FloatingActionButton>(Resource.Id.launchNavigation);
     navigationView.OnCreate(savedInstanceState);
 }
 private void InitializeViews(Bundle savedInstanceState)
 {
     SetContentView(Resource.Layout.activity_dual_navigation_map);
     dualNavigationMap   = FindViewById <ConstraintLayout>(Resource.Id.dualNavigationMap);
     mapView             = FindViewById <MapView>(Resource.Id.mapView);
     navigationView      = FindViewById <NavigationView>(Resource.Id.navigationView);
     loading             = FindViewById <ProgressBar>(Resource.Id.loading);
     launchNavigationFab = FindViewById <FloatingActionButton>(Resource.Id.launchNavigation);
     navigationView.OnCreate(savedInstanceState);
     mapView.OnCreate(savedInstanceState);
     mapView.GetMapAsync(this);
 }
예제 #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            SetTheme(Resource.Style.Theme_AppCompat_Light_NoActionBar);
            InitNightMode();
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.activity_embedded_navigation);
            navigationView     = FindViewById <Mapbox.Services.Android.Navigation.UI.V5.NavigationView>(Resource.Id.navigationView);
            fabNightModeToggle = FindViewById <FloatingActionButton>(Resource.Id.fabToggleNightMode);
            fabStyleToggle     = FindViewById <FloatingActionButton>(Resource.Id.fabToggleStyle);
            speedWidget        = FindViewById <TextView>(Resource.Id.speed_limit);
            spacer             = FindViewById <View>(Resource.Id.spacer);
            SetSpeedWidgetAnchor(Resource.Id.summaryBottomSheet);

            CameraPosition initialPosition = new CameraPosition.Builder()
                                             .Target(new LatLng(ORIGIN.Latitude(), ORIGIN.Longitude()))
                                             .Zoom(INITIAL_ZOOM)
                                             .Build();

            navigationView.OnCreate(savedInstanceState);
            navigationView.Initialize(this, initialPosition);
        }