protected override void InitializeViews(View fragmentView)
 {
     selectWorkspaceFAB          = fragmentView.FindViewById <FloatingActionButton>(Resource.Id.SelectWorkspaceFAB);
     workspaceName               = fragmentView.FindViewById <TextView>(Resource.Id.ReportsFragmentWorkspaceName);
     toolbarCurrentDateRangeText = fragmentView.FindViewById <TextView>(Resource.Id.ToolbarCurrentDateRangeText);
     reportsRecyclerView         = fragmentView.FindViewById <RecyclerView>(Resource.Id.ReportsFragmentRecyclerView);
     reportsMainContainer        = fragmentView.FindViewById <ReportsLinearLayout>(Resource.Id.ReportsFragmentMainContainer);
     calendarView = fragmentView.FindViewById <ReportsCalendarView>(Resource.Id.ReportsFragmentCalendarView);
     reportsMainContainer.CalendarContainer = calendarView;
     toolbar = fragmentView.FindViewById <Toolbar>(Resource.Id.Toolbar);
 }
示例#2
0
        protected override void OnCreate(Bundle bundle)
        {
            this.ChangeStatusBarColor(Color.ParseColor("#2C2C2C"));

            base.OnCreate(bundle);
            SetContentView(Resource.Layout.ReportsActivity);

            reportsRecyclerView  = FindViewById <ReportsRecyclerView>(Resource.Id.ReportsActivityRecyclerView);
            reportsMainContainer = FindViewById <ReportsLinearLayout>(Resource.Id.ReportsActivityMainContainer);
            reportsMainContainer.CalendarContainer = FindViewById(Resource.Id.ReportsCalendarContainer);

            setupToolbar();
        }
示例#3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.ReportsActivity);
            OverridePendingTransition(Resource.Animation.abc_slide_in_right, Resource.Animation.abc_fade_out);

            reportsRecyclerView  = FindViewById <ReportsRecyclerView>(Resource.Id.ReportsActivityRecyclerView);
            reportsMainContainer = FindViewById <ReportsLinearLayout>(Resource.Id.ReportsActivityMainContainer);
            reportsMainContainer.CalendarContainer = FindViewById(Resource.Id.ReportsCalendarContainer);

            initializeViews();

            this.Bind(selectWorkspaceFAB.Rx().Tap(), ViewModel.SelectWorkspace);
            this.Bind(ViewModel.WorkspaceNameObservable, workspaceName.Rx().TextObserver());

            setupToolbar();
        }