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); }
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(); }
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(); }