Exemple #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            FrameLayout frame        = FindViewById <FrameLayout>(Resource.Id.Common_FrameLayout);
            View        calendarPage = LayoutInflater.Inflate(Resource.Layout.DailyGoals, null);

            frame.AddView(calendarPage.FindViewById <LinearLayout>(Resource.Id.DailyGoals_Layout));
            SetUpNavBar();

            // Create your application here
            date = JsonConvert.DeserializeObject <DateTime>(Intent.GetStringExtra("Date"));
            TextView dayLabel = FindViewById <TextView>(Resource.Id.DailyGoals_DayLabel);

            dayLabel.Text = date.Day.ToString();
            TextView dayofWeekLabel = FindViewById <TextView>(Resource.Id.DailyGoals_DayOfWeekLabel);

            dayofWeekLabel.Text    = date.DayOfWeek.ToString();
            mRecyclerView          = FindViewById <RecyclerView>(Resource.Id.DailyGoals_RecyclerView);
            mLayoutManagerRecycler = new LinearLayoutManager(this);
            mRecyclerView.SetLayoutManager(mLayoutManagerRecycler);
            SetGoalData();
            mAdapter = new GoalAdapter(mGoalAlbum, this);
            mRecyclerView.SetAdapter(mAdapter);
        }
Exemple #2
0
 public void SetAdaptersForRecyclerViews()
 {
     mAdapterOverDueGoals  = new GoalAdapter(mGoalOverdueAlbum, this);
     mAdapterRecurringGoal = new GoalAdapter(mGoalAlbumRecurringGoal, this);
     mAdapterOneTimeGoal   = new GoalAdapter(mGoalAlbumNonRecurringGoal, this);
 }